#include "ui/menudef.h"

// Defines //

#define WINDOW_X		16
#define WINDOW_Y		16
#define WINDOW_WIDTH	608
#define WINDOW_HEIGHT	448
#define GROUP_NAME	"grpCreditsSilEnT"

// Macros //

#include "ui/menumacros.h"

// System Menu //

menuDef {
	name		"credits_silEnT"
	visible	0
	fullscreen	0
	rect		WINDOW_X WINDOW_Y WINDOW_WIDTH WINDOW_HEIGHT
	style		WINDOW_STYLE_FILLED

	onESC {
		close credits_silEnT ;
		open main
	}

// Window //

	itemDef {
		name		"window"
		group		GROUP_NAME
		rect		0 0 WINDOW_WIDTH WINDOW_HEIGHT
		style		WINDOW_STYLE_FILLED
		backcolor	0 0 0 .9
		border	WINDOW_BORDER_FULL
		bordercolor	.5 .5 .5 .5
		visible	1
		decoration
	}

// Logo //

	itemDef {
		name		"logoShadow"
		rect		$evalfloat(.5*(WINDOW_WIDTH-64)+1) $evalfloat(8+1) 64 64
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_silEnT"
		forecolor	0 0 0 1
		visible	1
		decoration
	}

	itemDef {
		name		"logo"
		rect		$evalfloat(.5*(WINDOW_WIDTH-64)-1) $evalfloat(8-1) 64 64
		style		WINDOW_STYLE_SHADER
		background	"ui/assets/logo_silEnT"
		forecolor	1 1 1 1
		visible	1
		decoration
	}

	itemDef {
		name		"headerLogo"
		group		GROUP_NAME
		rect		6 80 $evalfloat(WINDOW_WIDTH-12) 16
		text		"silEnT"
		textfont	UI_FONT_ARIBLK_16
		textstyle	ITEM_TEXTSTYLE_SHADOWED
		textscale	.3
		textalign	ITEM_ALIGN_CENTER
		textalignx	$evalfloat(.5*(WINDOW_WIDTH-12))
		textaligny	14
		forecolor	1 1 1 1
		visible	1
		decoration
	}

// Credits //

#define CREDITS_Y	108

	itemDef {
		name		"headerDevelopers"
		group		GROUP_NAME
		rect		6 $evalfloat(CREDITS_Y) $evalfloat(WINDOW_WIDTH-12) 12
		text		"DEVELOPED BY THE SILENT MOD TEAM:"
		textfont	UI_FONT_ARIBLK_16
		textstyle	ITEM_TEXTSTYLE_SHADOWED
		textscale	.19
		textalign	ITEM_ALIGN_CENTER
		textalignx	$evalfloat(.5*(WINDOW_WIDTH-12))
		textaligny	10
		forecolor	1 1 1 1
		visible		1
		decoration
	}

// Developers //

	LABELWHITE( 6, CREDITS_Y+28, .5*(WINDOW_WIDTH-24), 10, "^7TheSilencerPL, ^7gaoesa, ^7hellreturn, ^7JamesPlock, ^7jowish", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-24)), 8 )

//thanks

	LABELWHITE( 6, CREDITS_Y+84, WINDOW_WIDTH-24, 10, "Thanks to ^7Krauersaut for building the Mac OS X binaries.", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-24)), 8 )
	LABELWHITE( 6, CREDITS_Y+96, WINDOW_WIDTH-24, 10, "Big thank you to all the players and admins that reported bugs for us to know.", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-24)), 8 )
	LABELWHITE( 6, CREDITS_Y+108, WINDOW_WIDTH-24, 10, "Special thanks to etpub.org team & community.", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-24)), 8 )
	LABELWHITE( 6, CREDITS_Y+120, WINDOW_WIDTH-24, 10, "Their effort allowed us to have the place to start from (etpub v0.9.1).", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-24)), 8 )

// URLs //

	LABELWHITE( 6, CREDITS_Y+256, WINDOW_WIDTH-12, 10, "Community Website: http://mygamingtalk.com/forums/", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-12)), 8 )
	LABELWHITE( 6, CREDITS_Y+268, WINDOW_WIDTH-12, 10, "Project Website: http://mygamingtalk.com", .2, ITEM_ALIGN_CENTER, (.5*(WINDOW_WIDTH-12)), 8 )
	LABEL( 6, CREDITS_Y+300, WINDOW_WIDTH-12, 10, "2010 - 2013 silEnT", .15, ITEM_ALIGN_CENTER, .5*(WINDOW_WIDTH-24), 8 )

// Buttons //

	BUTTON( 6, WINDOW_HEIGHT-24, .33*(WINDOW_WIDTH-24), 18, "BACK", .3, 14, close credits_silEnT ; open main )
	BUTTON( 6+.33*(WINDOW_WIDTH-24)+6+.34*(WINDOW_WIDTH-24)+6, WINDOW_HEIGHT-24, .33*(WINDOW_WIDTH-24), 18, "ET 2.60 UPDATE", .3, 14, close credits_silEnT ; open credits_et260 )
}
