scenes = scenes or {}
dialogs = dialogs or {}

scenes.defaultTransition = {
	class = "FadeBlackTransition",
	time = 500,
}

scenes.splashTransition = {
	class = "FadeBlackTransition",
	time = 500,
	wait = false,
}

scenes.splash = {
	class = "SceneSplash",
	background = "SPLASH_BACKGROUND:splash",
}

scenes.load = {
	class = "SceneLoad",
	sceneComponents = {
		{class="Sprite", name="LOADING_TEXT", x=512, y=715, image="LOADING_PLEASE_WAIT:default", anchor="top"},
	},
	onShow = function(self)
		local vid = self:newChild({class="TheoraVideo", file="movies/intro.ogv", autoSize=false, width=1024, height=768})
		vid:sendToBack()
		vid:play()
		vid.onEndReached = function()
			self.videoEnded = true
		end

		local black = self:newChild({class="Sprite", color="black", draw="color", width=1024, height=768})
		black:sendToBack()
	end
}

scenes.selection = {
	class = "SceneSelection",
	sceneComponents = {
		{class="Sprite", x=0, y=768, image="BAR:sceneselection", anchor="bottomleft"},
		{class="Button", name="SETTINGS", x=10, y=715, image="BUTTON_SETTINGS:sceneselection", clickSound="SOUND_BUTTON", soundSection="default"},
		{class="Button", name="TROPHIES", x=715, y=715, image="TROPHIES:sceneselection", clickSound="SOUND_BUTTON", soundSection="default"},
		{class="Button", name="PLAY", x=425, y=710, image="BUTTON_PLAY:sceneselection", clickSound="SOUND_BUTTON", soundSection="default"},
		{class="Button", name="QUIT", x=872, y=715, image="BUTTON_QUIT:sceneselection", clickSound="SOUND_BUTTON", soundSection="default"},
	},
}

scenes.trophy = {
	class = "SceneTrophy",
	sceneComponents = {
		{class="Sprite", x=0, y=768, image="BAR:trophy", anchor="bottomleft"},
		{class="Button", name="BACK", x=11, y=715, image="BUTTON_BACK:trophy", clickSound="SOUND_BUTTON", soundSection="default"},
		{class="Sprite", name="BOX", x=512, y=758, image="DIALOG:trophy", anchor="bottom"},
		{class="Label", name="BOX_HEADER", x=512, y=629, anchor="center", align="center", font="FONT_DIALOG_HEADER:default"},
		{class="Label", name="BOX_TEXT", x=512, y=691, anchor="center", maxWidth=310, maxHeight=1500, wrapStyle="wordwrap", align="center", font="FONT_SHOP_BUY_DIALOG_INFO_TEXT:default"},
	},
}

scenes.game = {
	class = "SceneGame",
	name = "SCENE_GAME",
	gui = {
		class = "GameNode",
		name = "NODE_GUI",
		children = {
			{class="Sprite", name="BAR_GUI", image="BAR_GUI:scenegame", x=0, y=768, anchor="bottomleft" },
			{class="Button", name="BUTTON_MENU", command="menu", image="BUTTON_MENU:scenegame", clickSound="SOUND_BUTTON", soundSection="default", x=9, y=716, anchor="topleft"},
			{class="Sprite", name="BAR_SCORE", image="BAR_SCORE:scenegame", x=616, y=746 },
			{class="EventBar", name="EVENTBAR",
				children = {
					{class="Sprite", name="BAR_EVENT", image="BAR_EVENT:scenegame", x=246, y=746 },
					{class="Sprite", name="SPRITE_ICON", x=168, y=701 },
					{class="Sprite", name="SPRITE_CURTAIN", image="CURTAIN:scenegame", x=168, y=701 },
					{class="Label", name="LABEL_EVENT", font="FONT_WELCOME", x=241, y=713, textId="TEXT_EVENT" },
					{class="Label", name="LABEL_EVENT_VALUE", font="FONT_GUI_SCORE", x=416, y=713, anchor="topright", pivot="center", text="0/0" },
				},
			},
			{class="Sprite", image="CLOCK_FRAME:scenegame", x=512, y=731, anchor="center"},
			{class="Sprite", name="CLOCK_ALERT", image="CLOCK_FRAME_RED:scenegame", x=512, y=731, anchor="center", alpha=0},
			{class="ThresholdSprite", name="CLOCK_FILL", image="CLOCK_FRAME_ORANGE:scenegame", x=512, y=731, anchor="center"},
			{class="Sprite", image="CLOCK_FRONT:scenegame", x=512, y=731, anchor="center" },
			{class="Sprite", name="CLOCK_POINTER", image="CLOCK_POINTER:scenegame", x=512, y=731, anchor="center" },
			{class="Sprite", name="CLOCK_POINTER_SHADOW", image="CLOCK_POINTER_SHADOW:scenegame", x=513, y=735, anchor="center" },
			{class="Sprite", image="CLOCK_SHINE:scenegame", x=512, y=731, anchor="center" },
			{class="Label", font="FONT_WELCOME", x=612, y=713, textId="TEXT_SCORE" },
			{class="Label", name="LABEL_SCORE_VALUE", font="FONT_GUI_SCORE", x=671, y=713, text="0", anchor="topleft", pivot="center" },

			{class="Sprite", name="SPRITE_ARROW_TARGET", image="TARGET_NORMAL:scenegame", y=710, anchor="top", },
			{class="Label", name="LABEL_SCORE_TARGET", font="FONT_GUI_SCORE", y=713 },
			{class="Sprite", name="SPRITE_ARROW_EXPERT", image="TARGET_EXPERT:scenegame", y=710, anchor="top", },
			{class="Label", name="LABEL_SCORE_EXPERT", font="FONT_GUI_SCORE", y=713 },

			{class="Label", name="SHIFT_INDICATOR", font="FONT_WELCOME", x=10, y=6 },
		},
	},
}

dialogs.yes_no = {
	class = "DialogYesNo",
	minWidth = 400, minHeight = 180,
	movable = false,
	autoCenter = true,
	doDarkenBackground = true,
	painter = "DEFAULT_PAINTER",
	modal = true,
	components = {
		{class="Label", name="HEADER", x=200, y=25, anchor="top", align="center", font="FONT_DIALOG_HEADER:default"},
		{class="Label", name="MESSAGE", x=200, y=80, maxWidth=370, anchor="top", align="center", wrapStyle="wordwrap", font="FONT_TEXT:default"},
		{class="Button", name="BUTTON_YES", x=160, y=110, image="BUTTON_YES:default", anchor="topright", clickSound="SOUND_BUTTON", soundSection="default"},
		{class="Button", name="BUTTON_NO", x=240, y=110, image="BUTTON_NO:default", anchor="topleft", clickSound="SOUND_BUTTON", soundSection="default"},
	},
}

dialogs.hint = {
	class = "DialogHint",
	name = "DIALOG_HINT",
	minWidth = 424, minHeight = 200,
	movable = false,
	lty1 = 158, lty2 = 168,
	autoCenter = false,
	painter = {
		class = "DialogPainter",
		section = "default",
		centerColor = 0xffffff,
		images = {
			"BORDER_HINT_TOP_LEFT", "BORDER_HINT_TOP_CENTER", "BORDER_HINT_TOP_RIGHT",
			"BORDER_HINT_CENTER_LEFT", "", "BORDER_HINT_CENTER_RIGHT",
			"BORDER_HINT_BOTTOM_LEFT", "BORDER_HINT_BOTTOM_CENTER", "BORDER_HINT_BOTTOM_RIGHT",
		},
	},
	components = {
		{ class="Label", name="TIP_HEADER", x=212, y=44, anchor="top", font="FONT_DIALOG_HEADER:default"},
		{ class="Label", name="TIP_TEXT", x=212, y=84, maxWidth=300, align="center", wrapStyle="wordwrap", anchor="top", lineHeight=18, font="FONT_TEXT:default"},
		{ class="Button", name="BUTTON_OK", x=212, y=105, image="BALLOON_OK", section="default", anchor="top"},
		{ class="Switch", name="SWITCH", x=117, y=71, soundSection="default", onSound="SOUND_CHECKBOX_ON", offSound="SOUND_CHECKBOX_OFF", section="default", anchor="topright"},
		{ class="Label", name="DONT_SHOW", x=222, y=81, anchor="top", textId="TEXT_HINT_SHOW"},
	},
}

dialogs.room_details = {
	class = "RoomDialog",
	name = "room_details",
	minWidth = 400, minHeight = 600,
	movable = false,
	autoCenter = true,
	background = "SHIFT_DIALOG:sceneselection",
	playShowHideSound = false,
	doDarkenBackground = true,
	components = {
		{class="Label", x=268, y=18, name="ROOM", anchor="top", font="FONT_POPUP_TROPHY_HEADER:default"},
		{class="Sprite", x=268, y=57, name="PREVIEW", anchor="top"},
		{class="Sprite", x=83, y=37, name="DOC", anchor="top"},
		{class="Label", x=268, y=267, textId="SEL_ROOM_SHIFTS", anchor="top", font="FONT_WELCOME:default"},
		{class="Label", x=268, y=396, textId="SEL_ROOM_INFO", anchor="top", font="FONT_POPUP_TROPHY_HEADER:default"},
		{class="Label", x=54, y=445, textId="SEL_ROOM_HEART", font="FONT_WELCOME:default"},
		{class="Label", x=54, y=483, textId="SEL_ROOM_MINIGAME", font="FONT_WELCOME:default"},
		{class="Label", x=54, y=519, textId="SEL_ROOM_GUINEAPIG", font="FONT_WELCOME:default"},
		{class="Label", x=54, y=557, textId="SEL_ROOM_SPECIAL", font="FONT_WELCOME:default"},
		{class="Label", x=372, y=445, name="HEARTS", font="FONT_GUI_SCORE:default"},
		{class="Label", x=372, y=483, name="MINIGAME", font="FONT_GUI_SCORE:default"},
		{class="Label", x=372, y=519, name="GUINEAPIG", font="FONT_GUI_SCORE:default"},
		{class="Label", x=372, y=557, name="SPECIAL", font="FONT_GUI_SCORE:default"},
		{class="Button", x=98, y=610, name="BACK", image="BACK_SHIFT:sceneselection", anchor="top"},
		{class="Button", x=268, y=610, name="DECORATE", image="DECORATE:sceneselection", anchor="top"},
		{class="Button", x=438, y=610, name="PLAY", image="PLAY_SHIFT:sceneselection", anchor="top"},
		{class="GameNode", x=268, y=301, name="BOXES"},
	},
}

dialogs.gamehouse_object = {
	class="DialogCare", autoCenter=true, doDarkenBackground=true, movable=false, background="GH_DIALOG:objects",
	components = {
		{ class="Sprite", name="STAR", x=262, y=200, image="GH_GLOW:objects", anchor="center", scale=0, },
		{ class="Label", x=262, y=-30, anchor="top", font="FONT_MINIGAME_HEADING:default", textId="GH_FOUND", },
		{ class="Label", name="HEAD", x=262, y=20, anchor="top", font="FONT_POPUP_TROPHY_HEADER:default", },
		{ class="Sprite", name="PIC", x=262, y=200, anchor="center" },
		{ class="Label", name="TEXT", x=262, y=370, anchor="center", align="center", font="FONT_GUI_SCORE:default", maxWidth=460, wrapStyle="wordwrap", },
		{ class="Button", name="OK", x=262, y=420, anchor="top", image="BUTTON_OK:default", clickSound="SOUND_BUTTON", soundSection="default", },
	},
}

dialogs.DIALOG_PLAYERSELECT = {
	class="DialogPlayerSelect", name="DIALOG_PLAYERSELECT", autoCenter=true, minWidth=400, minHeight=440, doDarkenBackground=true, movable=false, painter="DEFAULT_PAINTER",
	nameButton = { class="Button", y=80, image="NAME_SELECT_BUTTON", anchor="top", spacing=40, clickSound="SOUND_BUTTON", section="default", soundSection="default", },
	nameLabel = { class="Label", y=12, anchor="top", tooltip="CTOOLTIP_NAMESELECT_PLAYER", align="center", font="FONT_SHOP_BUY_DIALOG_INFO_TEXT", section="default", },
	components = {
		{ class="Label", x=200, y=25, anchor="top", textId="CTEXT_PLAYER_SELECT", align="center", font="FONT_DIALOG_HEADER", section="default", },
		{ class="Sprite", name="BORDER", x=50, y=0, image="PLAYER_BORDER", section="default", },
		{ class="Button", name="BUTTON_ADD", x=173, y=302, image="BUTTON_ADD", anchor="topright", tooltip="CTOOLTIP_NAMESELECT_ADD", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Button", name="BUTTON_REMOVE", x=227, y=302, image="BUTTON_REMOVE", anchor="topleft", tooltip="CTOOLTIP_NAMESELECT_DELETE", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Button", name="BUTTON_OK", x=200, y=367, image="BUTTON_OK", anchor="top", tooltip="CTOOLTIP_NAMESELECT_OK", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
	},
}

dialogs.new_player = {
	class="DialogNameInput", name="new_player", background="NAME_DIALOG:default", autoCenter=true, doDarkenBackground=true, movable=false,
	components = {
		{ class="Label", x=265, y=13, anchor="top", textId="CTEXT_ENTER_NAME", font="FONT_POPUP_TROPHY_HEADER:default", },
		{ class="LabelInput", name="INPUT_NAME", x=265, y=78, anchor="top",
			cursorImage="CARET",
			maxWidth=340,
			durationOn=300, durationOff=300,
			selectionColor=0x0099ee, borderColor=0x000044,
			label = { class="Label", x=0, y=0, tooltip="CTOOLTIP_NAMESELECT_NAME", anchor="top", font="FONT_SHIFT_SCORE:default", },
		},

		{ class="Label", x=265, y=129, anchor="top", textId="CTEXT_CHOOSE_DIFFICULTY", font="FONT_WELCOME:default", },
		{ class="Label", name="LABEL_D0", x=100, y=180, anchor="top", textId="EASY", font="FONT_WELCOME:default", },
		{ class="Switch", name="D0", x=100, y=214, anchor="top", image="RADIO:default", group=782, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },
		{ class="Label", name="LABEL_D1", x=265, y=180, anchor="top", textId="MEDIUM", font="FONT_WELCOME:default", },
		{ class="Switch", name="D1", x=265, y=214, anchor="top", image="RADIO:default", group=782, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },
		{ class="Label", name="LABEL_D2", x=430, y=180, anchor="top", textId="HARD", font="FONT_WELCOME:default", },
		{ class="Switch", name="D2", x=430, y=214, anchor="top", image="RADIO:default", group=782, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },

		{ class="Label", name="DIFFICULTY", x=265, y=312, anchor="center", wrapStyle="wordwrap", maxWidth=420, font="FONT_GUI_SCORE:default", },

		{ class="Button", name="BUTTON_OK", x=155, y=380, image="BUTTON_OK", anchor="topright", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Button", name="BUTTON_CANCEL", x=375, y=380, image="BUTTON_CANCEL", anchor="topleft", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
	},
}

dialogs.DIALOG_SETTINGS = {
	class="DialogSettings", name="DIALOG_SETTINGS", autoCenter=true, minWidth=500, minHeight=530, doDarkenBackground=true, movable=false, painter="DEFAULT_PAINTER",
	components = {
		{ class="Label", x=250, y=23, textId="CTEXT_SETTINGS_HEADER", anchor="top", align="center", font="FONT_DIALOG_HEADER", section="default", },
		{ class="Label", x=57, y=93, textId="CTEXT_SETTINGS_MUSIC", tooltip="CTOOLTIP_SETTINGS_MUSIC", align="center", font="FONT_WELCOME", section="default", },
		{ class="Slider", name="SLIDER_MUSICVOL", x=117, y=93, image="SLIDER_BACK", section="default", tooltip="CTOOLTIP_SETTINGS_MUSIC", minX=20, minY=14, maxX=285, maxY=14,
			button = { class="Button", image="SLIDER_BUTTON", section="default", tooltip="CTOOLTIP_SETTINGS_MUSIC", anchor="center", },
		},
		{ class="Sprite", name="YELLOW_BACK_1", image="SLIDER_BACK_FILLED", section="default", },
		
		{ class="Label", x=57, y=133, textId="CTEXT_SETTINGS_SOUND", tooltip="CTOOLTIP_SETTINGS_FX", align="center", font="FONT_WELCOME", section="default", },
		{ class="Slider", name="SLIDER_FXVOL", x=117, y=133, image="SLIDER_BACK", section="default", tooltip="CTOOLTIP_SETTINGS_FX", minX=20, minY=14, maxX=285, maxY=14,
			button = { class="Button", image="SLIDER_BUTTON", section="default", tooltip="CTOOLTIP_SETTINGS_FX", anchor="center", },
		},
		{ class="Sprite", name="YELLOW_BACK_2", image="SLIDER_BACK_FILLED", section="default", },
		
		{ class="Label", name="LABEL_FULLSCREEN", x=57, y=211, textId="CTEXT_SETTINGS_FULLSCREEN", tooltip="CTOOLTIP_SETTINGS_FULLSCREEN", align="center", font="FONT_WELCOME", section="default", },
		{ class="Switch", name="SWITCH_FULLSCREEN", x=190, y=204, image="CHECKBOX", tooltip="CTOOLTIP_SETTINGS_FULLSCREEN", offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", section="default", soundSection="default", },
		{ class="Label", name="LABEL_SHOWHINTS", x=57, y=261, textId="CTEXT_SETTINGS_SHOWHINTS", tooltip="CTOOLTIP_SETTINGS_HINTS", align="center", font="FONT_WELCOME", section="default", },
		{ class="Switch", name="SWITCH_SHOWHINTS", x=190, y=254, image="CHECKBOX", tooltip="CTOOLTIP_SETTINGS_HINTS", offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", section="default", soundSection="default", },

		{ class="Label", x=57, y=322, textId="DIFFICULTY", font="FONT_WELCOME:default", },
		{ class="Switch", name="D0", x=190, y=322, image="RADIO:default", group=783, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },
		{ class="Label", name="LABEL_D0", x=240, y=327, textId="EASY", font="FONT_WELCOME:default", },
		{ class="Switch", name="D1", x=190, y=362, image="RADIO:default", group=783, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },
		{ class="Label", name="LABEL_D1", x=240, y=367, textId="MEDIUM", font="FONT_WELCOME:default", },
		{ class="Switch", name="D2", x=190, y=402, image="RADIO:default", group=783, offSound="SOUND_CHECKBOX_OFF", onSound="SOUND_CHECKBOX_ON", soundSection="default", },
		{ class="Label", name="LABEL_D2", x=240, y=407, textId="HARD", font="FONT_WELCOME:default", },

		{ class="Button", name="BUTTON_OK", x=160, y=460, image="BUTTON_OK", anchor="topright", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Button", name="BUTTON_CREDITS", x=250, y=460, image="BUTTON_CREDITS", tooltip="CTOOLTIP_SETTINGS_INFO", anchor="top", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Button", name="BUTTON_CANCEL", x=340, y=460, image="BUTTON_CANCEL", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
	},
}

dialogs.DIALOG_CREDITS = {
	class="DialogCredits", name="DIALOG_CREDITS", doDarkenBackground=false, movable=false,
	clipHeight=250, clipY=60,
	startDelay=2000, endDelay=2000, scrollDuration=60000,
	startSpacing=400,
	preNameSpacing=36,
	noClickDelay=4000,
	nameSpacing=28,
	postNameSpacing=60,
	postHeadSpacing=60,
	slope=0,
	backgroundInterval=14000,
	backgroundFadeDuration=4000,
	components = {
		{ class="Sprite", name="BACK" },
		{ class="GameNode", name="LABELS", x=732, y=768/2,
			children={
				{ class="Sprite", x=0, y=0, anchor="center", image="GAME_LOGO", section="default", },
			},
		},
		--{ class="Button", name="BUTTON_OK", x=512, y=710, image="BUTTON_OK", anchor="top", clickSound="SOUND_BUTTON", section="default", soundSection="default", },
		{ class="Label", name="VERSION", x=336, y=366, },
	},
}

dialogs.DIALOG_MENU = {
	class="DialogMenu", name="DIALOG_MENU", autoCenter=true, minWidth=280, minHeight=460, doDarkenBackground=true, movable=false, painter="DEFAULT_PAINTER",
	components = {
		{ class="Label", x=140, y=29, anchor="top", textId="CTEXT_MAKE_CHOICE", align="center", font="FONT_DIALOG_HEADER", section="default", },
		{ class="Button", name="BUTTON_SETTINGS", x=140, y=80, image="BUTTON_SETTINGS", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_SETTINGS", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_HELP", command="map", x=140, y=140, image="BUTTON_HELP", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_HELP", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_STOP", command="map", x=140, y=200, image="BUTTON_STOP", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_STOP", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_QUIT", x=140, y=260, image="BUTTON_QUIT", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_SETTINGS", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_RESTART", x=140, y=320, image="BUTTON_RESTART", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_CONTINUE", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_RESUME", x=140, y=380, image="BUTTON_RESUME", section="dialogmenu", anchor="top", tooltip="CTOOLTIP_MENU_CONTINUE", clickSound="SOUND_BUTTON", soundSection="default", },
	},
}

dialogs.DIALOG_HELP = {
	class="DialogHelp", name="DIALOG_HELP", autoCenter=true, width=1024, height=768, movable=false, doDarkenBackground=false,
	components = {
		{ class="Sprite", name="BACK_1", x=0, y=0, image="HELP1", section="dialogmenu", },
		{ class="Sprite", name="BACK_2", x=0, y=0, image="HELP2", section="dialogmenu", alpha=0, },
		{ class="Button", name="BUTTON_PREV", x=166, y=700,image="BUTTON_PREV", section="dialogmenu", anchor="topright", },
		{ class="Button", name="BUTTON_OK", x=512, y=700, image="BUTTON_OK", section="default", anchor="top", },
		{ class="Button", name="BUTTON_NEXT", x=844, y=700, image="BUTTON_NEXT", section="dialogmenu", anchor="topleft", },
	},
}

dialogs.DIALOG_SHIFTBEGIN = {
	class="DialogShiftBegin", name="DIALOG_SHIFTBEGIN", autoCenter=true, width=1024, height=768, movable=false, doDarkenBackground=true,
	components = {
		{ class="Sprite", name="MAP", image="SHIFT_START_MAP", section="shift", pivot="center", x=361, y=157, },
		{ class="Sprite", name="HEAD", image="SHIFT_START", section="shift", pivot="center", x=304, y=212, },
	},
}

dialogs.DIALOG_SHIFTEND = {
	class="DialogShiftEnd", name="DIALOG_SHIFTEND", autoCenter=true, width=1024, height=768, movable=false, doDarkenBackground=true,
	components = {
		{ class="Sprite", name="MAP", image="SHIFT_END_MAP", section="shift", pivot="center", x=260, y=38, },
		{ class="Sprite", name="HEAD", image="SHIFT_END", section="shift", pivot="center", x=208, y=59, },
		{ class="Sprite", name="PIC", pivot="center", x=649, y=152, },

		{ class="Label", name="ROOM", x=360, y=193, font="FONT_SHIFT_SCORE" },
		{ class="Label", name="SHIFT", x=360, y=226, font="FONT_GUI_SCORE" },

		{ class="Sprite", name="HIGH_SCORE_STAR", image="HEALTH_BG_ADD:icons", anchor="center", x=596, y=214, scale=1.7},
		{ class="Sprite", name="HIGH_SCORE", image="HIGH_SCORE:shift", anchor="center", x=596, y=214, },

		{ class="Label", name="LABEL_PATIENTS", x=360, y=268, align="right", font="FONT_SHIFT_TARGET", textId="TEXT_SHIFTEND_PATIENTS", },
		{ class="Label", name="LABEL_PATIENTSVALUE", x=555, y=268, align="left", font="FONT_SHIFT_SCORE", text="0", },
		{ class="Label", name="LABEL_SCORE", x=360, y=301, align="right", font="FONT_SHIFT_TARGET", textId="TEXT_SHIFTEND_SCORE", },
		{ class="Label", name="LABEL_SCOREVALUE", x=555, y=301, align="left", font="FONT_SHIFT_SCORE", text="0", },
		{ class="Label", name="LABEL_TARGETSCORE", x=360, y=334, align="right", font="FONT_SHIFT_TARGET", textId="TEXT_SHIFTEND_TARGETSCORE", },
		{ class="Label", name="LABEL_TARGETSCOREVALUE", x=555, y=334, align="left", font="FONT_SHIFT_SCORE", text="0", },
		{ class="Label", name="LABEL_EXPERTSCORE", x=360, y=367, align="right", font="FONT_SHIFT_TARGET", textId="TEXT_SHIFTEND_EXPERTSCORE", },
		{ class="Label", name="LABEL_EXPERTSCOREVALUE", x=555, y=367, align="left", font="FONT_SHIFT_SCORE", text="0", },

		{ class="Sprite", name="SPRITE_CHECKTARGETSCORE", pivot="center", x=603, y=327, },
		{ class="Sprite", name="SPRITE_CHECKEXPERTSCORE", pivot="center", x=603, y=361, },

		{ class="Label", name="LABEL_MINIGAME", x=360, y=423, align="right", font="FONT_WELCOME", textId="TEXT_SHIFTEND_MINIGAME", },
		{ class="Label", name="LABEL_MINIGAMEVALUE", x=555, y=423, align="left", font="FONT_GUI_SCORE", },
		{ class="Label", name="LABEL_GUINEAPIG", x=360, y=458, align="right", font="FONT_WELCOME", textId="SEL_ROOM_GUINEAPIG", },
		{ class="Label", name="LABEL_GUINEAPIGVALUE", x=555, y=458, align="left", font="FONT_GUI_SCORE", },
		{ class="Label", name="LABEL_SPECIAL", x=360, y=493, align="right", font="FONT_WELCOME", textId="SEL_ROOM_SPECIAL", },
		{ class="Label", name="LABEL_SPECIALVALUE", x=555, y=493, align="left", font="FONT_GUI_SCORE", },

		{ class="Label", name="LABEL_SHIFT", x=490, y=549, anchor="top", align="center", font="FONT_DIALOG_HEADER", },

		{ class="Button", name="BUTTON_REPLAY", image="BUTTON_REPLAY", section="shift", anchor="topright", x=480, y=592, },
		{ class="Button", name="BUTTON_CONTINUE", image="BUTTON_CONTINUE", section="shift", anchor="topleft", x=500, y=592, },
		{ class="Button", name="BUTTON_YES", image="BUTTON_YES", section="shift", anchor="topright", x=480, y=592, },
		{ class="Button", name="BUTTON_NO", image="BUTTON_NO", section="shift", anchor="topleft", x=500, y=592, },
	},
}

dialogs.DIALOG_SHOP_INFO = {
	class="DialogShopInfo", name="DIALOG_SHOP_INFO",
	components = {
		{ class="Sprite", name="OBJECT", x=0, y=-160, anchor="top", image="SHOP_DIALOG_ROLLOVER", section="shop"},
		{ class="Label", name="HEADER", x=0, y=-155, anchor="top", align="center", font="FONT_SHOP_ROLLDIALOG_POINTS", section="default", },
		{ class="Label", name="MESSAGE", maxWidth=160, x=0, y=-130, anchor="top", align="center", wrapStyle="wordwrap", font="FONT_SHOP_BUY_DIALOG_INFO_TEXT", section="default", },
		{ class="Label", name="POINTS", x=0, y=-60, anchor="bottom", align="center", font="FONT_GUI_SCORE", section="default", },
		{ class="Sprite", name="ARROW", x=0, y=0, anchor="top", image="SHOP_ARROW", section="shop"},
	},
}

dialogs.DIALOG_SHOP_BUY = {
	class="DialogShopBuy", name="DIALOG_SHOP_BUY", autoCenter=true, background="SHOP_DIALOG_BUY", section="shop", movable=false,
	components = {
		{ class="Label", name="HEADER", x=170, y=16, anchor="top", align="center", font="FONT_DIALOG_HEADER", section="default", },
		{ class="Sprite", name="OBJECT", x=170, y=166, anchor="center", },
		{ class="Label", name="MESSAGE", maxWidth=270, x=170, y=321, anchor="center", align="center", wrapStyle="wordwrap", font="FONT_SHOP_BUY_DIALOG_INFO_TEXT", section="default", },
		{ class="Label", name="POINTS", x=170, y=362, anchor="top", align="center", font="FONT_SHOP_GUI_SCORE", section="default", },

		{ class="Button", name="BUTTON_CANCEL", x=160, y=447, image="SHOP_BUTTON_CANCEL", section="shop", anchor="bottomright", clickSound="SOUND_BUTTON", soundSection="default", },
		{ class="Button", name="BUTTON_BUY", x=180, y=447, image="SHOP_BUTTON_BUY", section="shop", anchor="bottomleft", clickSound="SOUND_BUTTON", soundSection="default", },
	},
}

dialogs.DIALOG_UNLOCKED = {
	class="DialogUnlocked", name="DIALOG_UNLOCKED", x=239, y=4, background="UNLOCK_DIALOG", section="default", movable=false,
	components = {
		{ class="Sprite", name="STAR", x=275, y=331, image="GH_GLOW:objects", anchor="center", scale=0, },
		{ class="Label", name="TOPHEADER", x=271, y=144, anchor="top", align="center", font="FONT_POPUP_TROPHY_HEADER", section="default", textId="TEXT_UNLOCK_TOP_HEADER", },
		{ class="Sprite", name="UNLOCK", x=275, y=331, anchor="center", },
		{ class="Label", name="HEADER", x=275, y=471, anchor="top", align="center", font="FONT_POPUP_TROPHY_HEADER", section="default", },
		{ class="Label", name="MESSAGE", maxWidth=500, x=275, y=506, anchor="top", align="center", wrapStyle="wordwrap", font="FONT_WELCOME", section="default", },
		{ class="Label", name="TIP", maxWidth=500, x=275, y=557, anchor="top", align="center", wrapStyle="wordwrap", font="FONT_GUI_SCORE", section="default", },
		{ class="Button", name="BUTTON_OK", x=275, y=646, image="BUTTON_OK", section="default", anchor="bottom", clickSound="SOUND_BUTTON", soundSection="default", },
	},
}