#ifdef NQUI
#include "ui/menudef2.h"
#else
#include "ui/menudef.h"
#endif

// Defines //

#define WINDOW_X	0
#define WINDOW_Y	0
#define WINDOW_WIDTH	640
#define WINDOW_HEIGHT	480
#define GROUP_NAME	"grpCreditsQuit"

// Macros //

// Quit Credits Menu //
	
#ifdef NQUI

#include "ui/menumacros2.h"
menuDef {
	name		"credits_quit"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_SCROLL_FILLED
	
	onESC {
		uiScript Quit;
	}
#include "ui/credits.h"

#else	// NQUI

// Additional Menu //
menuDef {
	name		"credits_quit"
	visible		0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED
	
	onESC {
		uiScript Quit;
	}

// Window //
	itemDef {
		name		"window"
		group		GROUP_NAME
		rect		0 0 WINDOW_WIDTH WINDOW_HEIGHT
		style		WINDOW_STYLE_FILLED
		backcolor	0.01 0.01 0.01 .95
		border		WINDOW_BORDER_FULL
		bordercolor	0.01 0.01 0.01 1
		visible		1
		decoration
	}
	
// Logo //
#define LOGOBAR_WIDTH 96+16+96+16+64+16+64

	
	itemDef {
		name		"logoNQShadow"
		rect		$evalfloat(.5*(WINDOW_WIDTH-(LOGOBAR_WIDTH))+57+1) $evalfloat(10+1) 216 27
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_nq"
		forecolor	0 0 0 1
		visible		1
		decoration
	}

	itemDef {
		name		"logoNQ"
		rect		$evalfloat(.5*(WINDOW_WIDTH-(LOGOBAR_WIDTH))+57-1) $evalfloat(10-1) 246 27
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_nq"
		forecolor	1 1 1 1
		visible		1
		decoration
	}


    itemDef {
		name			"labelwhiteJames '^>S.S.jetPilot^7' Morrow Valentine"
      	group			GROUP_NAME
		rect			6 63 302 10
		type			ITEM_TYPE_TEXT
		text			"James '^>S.S.jetPilot^7' Morrow Valentine"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteProject Founder, Programming, Design, HUD,"
      	group			GROUP_NAME
		rect			288 63 302 10
		type			ITEM_TYPE_TEXT
		text			"Project Founder, Programming, Design, HUD,"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteConcept, Research, UI"
      	group			GROUP_NAME
		rect			288 75 302 10
		type			ITEM_TYPE_TEXT
		text			"Concept, Research, UI"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteChris '^>S.S.Meyerinchains^7' Meyer"
      	group			GROUP_NAME
		rect			6 93 302 10
		type			ITEM_TYPE_TEXT
		text			"Chris '^>S.S.Meyerinchains^7' Meyer"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteProject Leader, Models, Skins, Animations,"
      	group			GROUP_NAME
		rect			288 93 302 10
		type			ITEM_TYPE_TEXT
		text			"Project Leader, Models, Skins, Animations,"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteUI, 2D Art, Weapon Sounds, Research"
      	group			GROUP_NAME
		rect			288 105 302 10
		type			ITEM_TYPE_TEXT
		text			"UI, 2D Art, Weapon Sounds, Research"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteJakub '^9Jaqubo^1SS^7' Bartosh"
      	group			GROUP_NAME
		rect			6 123 287 10
		type			ITEM_TYPE_TEXT
		text			"Jakub '^9Jaqubo^1SS^7' Bartosh"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteProgrammer, Design, Concept"
      	group			GROUP_NAME
		rect			288 123 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Design, Concept"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteOfficial No Quarter Nagman"
      	group			GROUP_NAME
		rect			288 135 302 10
		type			ITEM_TYPE_TEXT
		text			"Official No Quarter Nagman"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteRichard '^9snl^7/^2/^7lucel^7' Deighton"
      	group			GROUP_NAME
		rect			6 153 287 10
		type			ITEM_TYPE_TEXT
		text			"Richard '^9snl^7/^2/^7lucel^7' Deighton"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteProgrammer, Optimization, Mac Freak"
      	group			GROUP_NAME
		rect			288 153 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Optimization, Mac Freak"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteBud '^8Jay^4Bird^7' Byrd"
      	group			GROUP_NAME
		rect			6 175 287 10
		type			ITEM_TYPE_TEXT
		text			"Bud '^8Jay^4Bird^7' Byrd"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteDebugging, Optimization, Linux Guy"
      	group			GROUP_NAME
		rect			288 175 287 10
		type			ITEM_TYPE_TEXT
		text			"Debugging, Optimization, Linux Guy"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteIRATA [*]"
      	group			GROUP_NAME
		rect			6 219 287 10
		type			ITEM_TYPE_TEXT
		text			"IRATA [*]"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteProgrammer, Debugging, Optimization,"
      	group			GROUP_NAME
		rect			288 219 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Debugging, Optimization,"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteGirl Friday"
      	group			GROUP_NAME
		rect			288 231 287 10
		type			ITEM_TYPE_TEXT
		text			"Girl Friday"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhite^9.::^1red^0eye^9::."
      	group			GROUP_NAME
		rect			6 249 287 10
		type			ITEM_TYPE_TEXT
		text			"^9.::^1red^0eye^9::."
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhite2Programmer, Debugging, Optimization,"
      	group			GROUP_NAME
		rect			288 249 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Debugging, Optimization,"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteLinux Guy"
      	group			GROUP_NAME
		rect			288 261 287 10
		type			ITEM_TYPE_TEXT
		text			"Linux Guy"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhitecrapsh^?oo^7t"
      	group			GROUP_NAME
		rect			6 307 287 10
		type			ITEM_TYPE_TEXT
		text			"crapsh^?oo^7t"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhite3Programmer, Debugging, Optimization"
      	group			GROUP_NAME
		rect			288 307 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Debugging, Optimization"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhite^2Il^7Du^1ca"
      	group			GROUP_NAME
		rect			6 325 287 10
		type			ITEM_TYPE_TEXT
		text			"^2Il^7Du^1ca"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhite4Programmer, Debugging, Optimization"
      	group			GROUP_NAME
		rect			288 325 287 10
		type			ITEM_TYPE_TEXT
		text			"Programmer, Debugging, Optimization"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteBerzerkr (GER)"
      	group			GROUP_NAME
		rect			6 343 302 10
		type			ITEM_TYPE_TEXT
		text			"Berzerkr (GER)"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_RIGHT
		textalignx		270
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

    itemDef {
		name			"labelwhiteAssets, 2D Art"
      	group			GROUP_NAME
		rect			288 343 302 10
		type			ITEM_TYPE_TEXT
		text			"Assets, 2D Art"
		textfont		UI_FONT_COURBD_21
		textstyle		ITEM_TEXTSTYLE_SHADOWED
		textscale		.2
		textalign		ITEM_ALIGN_LEFT
		textalignx		0
		textaligny		8
		forecolor		1 1 1 1
		visible			1
		decoration
		autowrapped
    }

	itemDef {
		name		"headerBetaTester"
		group		GROUP_NAME
		rect		6 201 628 12
		text		"^?Since 1.2.0"
		textfont	UI_FONT_ARIBLK_16
		textstyle	ITEM_TEXTSTYLE_SHADOWED
		textscale	.25
		textalign	ITEM_ALIGN_CENTER
		textalignx	314
		textaligny	10
		forecolor	1 1 1 1
		visible		1
		decoration
	}

	itemDef {
		name		"headerBetaTester"
		group		GROUP_NAME
		rect		6 289 628 12
		text		"^?Since 1.2.3"
		textfont	UI_FONT_ARIBLK_16
		textstyle	ITEM_TEXTSTYLE_SHADOWED
		textscale	.25
		textalign	ITEM_ALIGN_CENTER
		textalignx	314
		textaligny	10
		forecolor	1 1 1 1
		visible		1
		decoration
	}

	itemDef {
		name		"headerBetaTester"
		group		GROUP_NAME
		rect		6 394 628 12
		text		"Visit www.shitstorm.org or No Quarter Online Documentation Pages (WIKI) for more infos."
		textfont	UI_FONT_ARIBLK_16
		textstyle	ITEM_TEXTSTYLE_SHADOWED
		textscale	.20
		textalign	ITEM_ALIGN_CENTER
		textalignx	314
		textaligny	10
		forecolor	1 1 1 1
		visible		1
		decoration
	}

#endif	// NQUI
		
// Buttons //

	itemDef {
		name		"quitButton"
		group		GROUP_NAME
		rect		0 0 WINDOW_WIDTH WINDOW_HEIGHT
		type		ITEM_TYPE_BUTTON
		style		WINDOW_STYLE_EMPTY
		visible		1

		action {
			uiScript quit
		}
	}
}
