LoadFile( "DATA:GUI/Creator_Screen.lua" )

-----------------------------------------------------

ClearButtonBackground = CreateImage( "ClearButtonBackground", [[GUI\control menu\button_background.anim]], { 408, 63 +30} )
ClearButton = CreatePushButton( "ClearButton", [[GUI\control menu\ctrl_menu_clear.anim]], { 408 - 5, 63 - 1 +30} )
ClearButton.button_ext.over_growth = 1.15
ClearButton.button_ext.autofocusing = true;
AddTooltipText(ClearButton, "$00261", "$00262")

TestButtonBackground = CreateImage( "TestButtonBackground", [[GUI\control menu\button_background.anim]], { 408 - 64, 63 +30} )
TestButton = CreatePushButton( "TestButton", [[GUI\control menu\ctrl_menu_test_mode.anim]], { 408 - 64, 63 +30} )
TestButton.button_ext.over_growth = 1.15
TestButton.button_ext.autofocusing = true;
AddTooltipText(TestButton, "$00263", "$00264")

UndoButtonBackground = CreateImage( "UndoButtonBackground", [[GUI\control menu\button_background.anim]], { 408 - 64, 63 - 25 } )
UndoButton = CreatePushButton( "UndoButton", [[GUI\control menu\ctrl_menu_undo.anim]], { 408 - 64, 63 - 25} )
UndoButton.button_ext.over_growth = 1.15
AddTooltipText(UndoButton, "$00265", "$00266")

HelpButtonBackground = CreateImage( "HelpButtonBackground", [[GUI\control menu\button_background.anim]], { 408 - 64 - 64, 63 - 25 } )
HelpButton = CreatePushButton( "HelpButton", [[GUI\control menu\ctrl_menu_help.anim]], { 408 - 64 - 64, 63 - 25 } )
HelpButton.button_ext.over_growth = 1.15
HelpButton.button_ext.autofocusing = true;
AddTooltipText(HelpButton, "$00275", "$00276")

SolnButtonBackground = CreateImage( "SolnButtonBackground", [[GUI\control menu\button_background.anim]], { 408 - 64 - 64, 63 +30 } )
SolnButton = CreatePushButton( "SolnButton", [[GUI\control menu\ctrl_menu_no_soln.anim]], { 408 - 64 - 64 - 1, 63 +30 } )
SolnButton.button_ext.over_growth = 1.18
SolnButton.button_ext.autofocusing = true;
AddTooltipText(SolnButton, "$00277", "$00278")

PropertiesButtonBackground = CreateImage( "PropertiesButtonBackground", [[GUI\control menu\button_background.anim]], { 408, 63 - 25 } )
PropertiesButton = CreatePushButton( "PropertiesButton", [[GUI\control menu\ctrl_menu_properties.anim]], { 408, 63 - 25 } )
PropertiesButton.button_ext.over_growth = 1.15
PropertiesButton.button_ext.autofocusing = true;
AddTooltipText(PropertiesButton, "$00267", "$00268")

table.insert( BottomGroup.parent_ext.children, PropertiesButton )
table.insert( BottomGroup.parent_ext.children, PropertiesButtonBackground )
table.insert( BottomGroup.parent_ext.children, ClearButton )
table.insert( BottomGroup.parent_ext.children, ClearButtonBackground )
table.insert( BottomGroup.parent_ext.children, TestButton )
table.insert( BottomGroup.parent_ext.children, TestButtonBackground )
table.insert( BottomGroup.parent_ext.children, UndoButton )
table.insert( BottomGroup.parent_ext.children, UndoButtonBackground )
table.insert( BottomGroup.parent_ext.children, HelpButton )
table.insert( BottomGroup.parent_ext.children, HelpButtonBackground )
table.insert( BottomGroup.parent_ext.children, SolnButton )
table.insert( BottomGroup.parent_ext.children, SolnButtonBackground )


--------------------------------------------------------
-- Save As dialog
---------------------------------------------------------
local SaveAsTitle = CreateStaticText("SaveAsTitle", "$00306", {-50, -70}, "geek larger dropshadow centre", {16, 1})
SaveAsTitle.width = 300;
SaveAsTitle.height = 30;
SaveAsTitle.text_ext.colour = { r = 255, g = 160, b = 0, alpha = 255 }

local SaveAsAcceptButton = CreatePushButton("SaveAsAcceptButton", [[GUI/generic/okay.anim]], {83-256+40, 135-128+16} )
SaveAsAcceptButton.button_ext.additional_scale = 0.8

local SaveAsCancelButton = CreatePushButton("SaveAsCancelButton", [[GUI/generic/cancel.anim]], {260-256+25, 135-128+16} )
SaveAsCancelButton.button_ext.additional_scale = 0.8

local SaveAsEditBox = CreateEditText("SaveAsEditBox", "filename",  {90-256+10, 110-128}, 210 )
SaveAsEditBox.width = 200;
SaveAsEditBox.height = 20;
SaveAsEditBox.text_ext.autowrap = false
SaveAsDialog = CreateModalDialog("SaveAsDialog",
	{SaveAsEditBox, SaveAsAcceptButton, SaveAsCancelButton, SaveAsTitle},
	[[GUI\generic\confirm_file_new.anim]], {300+256+20, 100+128+40} )

--------------------------------------------------------
-- Level Properties Dialog
--------------------------------------------------------
level_prop_offset = 65
local LevelPropertiesBackgroundButton = CreateClickableText("LevelPropertiesBackgroundButton", "$00269", {-80, -170+level_prop_offset}, "geek larger dropshadow" )
LevelPropertiesBackgroundButton.width = 170;
LevelPropertiesBackgroundButton.height = 30;
LevelPropertiesBackgroundButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesBackgroundButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesForegroundButton = CreateClickableText("LevelPropertiesForegroundButton", "$00270", {-76, -135+level_prop_offset}, "geek larger dropshadow" )
LevelPropertiesForegroundButton.width = 170;
LevelPropertiesForegroundButton.height = 30;
LevelPropertiesForegroundButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesForegroundButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesTimeOfDayButton = CreateClickableText("LevelPropertiesTimeOfDayButton", "$00271", {-82, -100+level_prop_offset}, "geek larger dropshadow" )
LevelPropertiesTimeOfDayButton.width = 170;
LevelPropertiesTimeOfDayButton.height = 30;
LevelPropertiesTimeOfDayButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesTimeOfDayButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesAmbientButton = CreateClickableText("LevelPropertiesAmbientButton", "$00272", {-80+25, -65+level_prop_offset}, "geek larger dropshadow" )
LevelPropertiesAmbientButton.width = 110;
LevelPropertiesAmbientButton.height = 30;
LevelPropertiesAmbientButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesAmbientButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesMusicButton = CreateClickableText("LevelPropertiesMusicButton", "$00273", {-86, -30+level_prop_offset}, "geek larger dropshadow" )
LevelPropertiesMusicButton.width = 170;
LevelPropertiesMusicButton.height = 30;
LevelPropertiesMusicButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesMusicButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesTypeButton = CreateClickableText("LevelPropertiesTypeButton", "$00274", {0, 5+level_prop_offset}, "geek larger dropshadow centre" )
LevelPropertiesTypeButton.width = 170;
LevelPropertiesTypeButton.height = 30;
LevelPropertiesTypeButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelPropertiesTypeButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelPropertiesReturnButton = CreatePushButton("LevelPropertiesReturnButton", [[GUI/generic/back.anim]], {100, 150} )

local LevelPropertiesTitle = CreateImage("LevelPropertiesTitle", [[GUI/properties/properties_title.anim]], {0, -155} )

LevelPropertiesDialog = CreateModalDialog("LevelPropertiesDialog",
	{LevelPropertiesTitle, LevelPropertiesBackgroundButton, LevelPropertiesForegroundButton, LevelPropertiesTimeOfDayButton,
	LevelPropertiesMusicButton, LevelPropertiesAmbientButton, LevelPropertiesReturnButton, LevelPropertiesTypeButton},
	[[GUI\generic\medium_dialog.anim]], {512, 320} )
	
	
--------------------------------------------------------
-- Level Type Dialog
--------------------------------------------------------
level_prop_offset = 65
local LevelTypePuzzleButton = CreateClickableText("LevelTypePuzzleButton", "$00361", {0, -170+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypePuzzleButton.width = 90;
LevelTypePuzzleButton.height = 30;
LevelTypePuzzleButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypePuzzleButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypeActionButton = CreateClickableText("LevelTypeActionButton", "$00362", {0, -135+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypeActionButton.width = 90;
LevelTypeActionButton.height = 30;
LevelTypeActionButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypeActionButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypeChainButton = CreateClickableText("LevelTypeChainButton", "$00363", {0, -100+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypeChainButton.width = 90;
LevelTypeChainButton.height = 30;
LevelTypeChainButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypeChainButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypePreciseButton = CreateClickableText("LevelTypePreciseButton", "$00364", {0, -65+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypePreciseButton.width = 100;
LevelTypePreciseButton.height = 30;
LevelTypePreciseButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypePreciseButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypeSuperHardButton = CreateClickableText("LevelTypeSuperHardButton", "$00365", {0, -30+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypeSuperHardButton.width = 90;
LevelTypeSuperHardButton.height = 30;
LevelTypeSuperHardButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypeSuperHardButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypeOtherButton = CreateClickableText("LevelTypeOtherButton", "$00366", {0, 5+level_prop_offset}, "geek larger dropshadow centre" )
LevelTypeOtherButton.width = 90;
LevelTypeOtherButton.height = 30;
LevelTypeOtherButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LevelTypeOtherButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local LevelTypeReturnButton = CreatePushButton("LevelTypeReturnButton", [[GUI/generic/back.anim]], {100, 150} )

LevelTypeDialog = CreateModalDialog("LevelTypeDialog",
	{LevelTypePuzzleButton, LevelTypeActionButton, LevelTypeChainButton,
	LevelTypeSuperHardButton, LevelTypePreciseButton, LevelTypeOtherButton, LevelTypeReturnButton },
	[[GUI\generic\medium_dialog.anim]], {512+70, 320+70} )
	
--------------------------------------------------------
-- Time Of Day Select Dialog
--------------------------------------------------------
local SelectTimeOfDaySelectDayButton = CreateClickableText("SelectTimeOfDaySelectDayButton", "$00381", {-30, -80+15}, "geek largest dropshadow")
SelectTimeOfDaySelectDayButton.width = 70;
SelectTimeOfDaySelectDayButton.height = 40;
SelectTimeOfDaySelectDayButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
SelectTimeOfDaySelectDayButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local SelectTimeOfDaySelectSunsetButton = CreateClickableText("SelectTimeOfDaySelectSunsetButton", "$00382", {-60, -40+15}, "geek largest dropshadow" )
SelectTimeOfDaySelectSunsetButton.width = 120;
SelectTimeOfDaySelectSunsetButton.height = 40;
SelectTimeOfDaySelectSunsetButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
SelectTimeOfDaySelectSunsetButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local SelectTimeOfDaySelectNightButton = CreateClickableText("SelectTimeOfDaySelectNightButton", "$00383", {-43, 15}, "geek largest dropshadow" )
SelectTimeOfDaySelectNightButton.width = 90;
SelectTimeOfDaySelectNightButton.height = 40;
SelectTimeOfDaySelectNightButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
SelectTimeOfDaySelectNightButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

local SelectTimeOfDayReturnButton = CreatePushButton("SelectTimeOfDayReturnButton", [[GUI/generic/back.anim]], {100, 110} )

local SelectTimeOfDayTitle = CreateImage("SelectTimeOfDayTitle", [[GUI/properties/time_of_day.anim]], {0, -115} )

SelectTimeOfDayDialog = CreateModalDialog("SelectTimeOfDayDialog",
	{ SelectTimeOfDayTitle, SelectTimeOfDaySelectDayButton, SelectTimeOfDaySelectSunsetButton, SelectTimeOfDaySelectNightButton,	SelectTimeOfDayReturnButton },
	[[GUI\generic\small_dialog.anim]], {512+50, 320+70} )
	
	
--------------------------------------------------------
-- Background/Foreground Image Dialog
--------------------------------------------------------
local CurrentImageText = CreateStaticText("CurrentImageText", "", {-110, 183}, "large")
CurrentImageText.width = 300;
CurrentImageText.height = 20;
local ImageSelectScroller = CreateScrollerButton( "ImageSelectScroller", [[GUI\generic_buttons\vertical_scroller]], {0, 0} )
ImageSelectScrollbar = CreateScrollBar( "ImageSelectScrollbar", nil, nil, ImageSelectScroller, {285, 30 } )
ImageSelectScrollbar.width = 60
ImageSelectScrollbar.height = 250
ImageSelectScrollbar.scrollbar_ext.scroller_offset = {0, -20}
ImageSelectListBox = CreateListBox( "ImageSelectListBox", 320, 260, ImageSelectScrollbar, {-110, -175+40} )

local AcceptImageSelectButton = CreatePushButton( "AcceptImageSelectButton", [[GUI\generic\okay.anim]], {-100, 240} )
local CancelImageSelectButton = CreatePushButton( "CancelImageSelectButton", [[GUI\generic\cancel.anim]], {145, 240 } )

ImageSelectDialog = CreateModalDialog( "ImageSelectDialog",
  { CurrentImageText, AcceptImageSelectButton, CancelImageSelectButton, ImageSelectListBox },
  [[GUI\generic\file_select.anim]], {512, 320} )

--------------------------------------------------------
-- Platform Image Dialog
--------------------------------------------------------

local PlatformPropertiesHubTabButton1 = CreateRadioButton("PlatformPropertiesHubTabButton1", [[GUI\platform_select\hub1_selected.anim]], [[GUI\platform_select\hub1.anim]], {0, 0} )
local PlatformPropertiesHubTabButton2 = CreateRadioButton("PlatformPropertiesHubTabButton2", [[GUI\platform_select\hub2_selected.anim]], [[GUI\platform_select\hub2.anim]], {50, 0} )
local PlatformPropertiesHubTabButton3 = CreateRadioButton("PlatformPropertiesHubTabButton3", [[GUI\platform_select\hub3_selected.anim]], [[GUI\platform_select\hub3.anim]], {100, 0} )
local PlatformPropertiesHubTabButton4 = CreateRadioButton("PlatformPropertiesHubTabButton4", [[GUI\platform_select\hub4_selected.anim]], [[GUI\platform_select\hub4.anim]], {150, 0} )
--]]
--[[local PlatformPropertiesHubTabButton1 = CreatePushButton("PlatformPropertiesHubTabButton1", [[GUI\platform_select\hub1.anim]], {0, 0} )
local PlatformPropertiesHubTabButton2 = CreatePushButton("PlatformPropertiesHubTabButton2", [[GUI\platform_select\hub2.anim]], {50, 0} )
local PlatformPropertiesHubTabButton3 = CreatePushButton("PlatformPropertiesHubTabButton3", [[GUI\platform_select\hub3.anim]], {100, 0} )
local PlatformPropertiesHubTabButton4 = CreatePushButton("PlatformPropertiesHubTabButton4", [[GUI\platform_select\hub4.anim]], {150, 0} )
]]
local PlatformPropertiesHubRadioGroup = CreateRadioGroup("PlatformPropertiesHubRadioGroup",
	{PlatformPropertiesHubTabButton1, PlatformPropertiesHubTabButton2, PlatformPropertiesHubTabButton3, PlatformPropertiesHubTabButton4},
	{-70,-220} )
PlatformPropertiesHubRadioGroup.width = 1;
PlatformPropertiesHubRadioGroup.height = 1;

local PlatformPropertiesDecorFilterButton = CreateClickableText("PlatformPropertiesDecorFilterButton", "$00391", {55, 0}, "geek larger dropshadow")
PlatformPropertiesDecorFilterButton.width = 80;
PlatformPropertiesDecorFilterButton.height = 30;
PlatformPropertiesDecorFilterButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
PlatformPropertiesDecorFilterButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
PlatformPropertiesDecorFilterButton.text_ext.selected_colour = { 0, 255, 0, 255}

local PlatformPropertiesPlatformFilterButton = CreateClickableText("PlatformPropertiesPlatformFilterButton", "$00392", {-120, 0}, "geek larger dropshadow")
PlatformPropertiesPlatformFilterButton.width = 140;
PlatformPropertiesPlatformFilterButton.height = 30;
PlatformPropertiesPlatformFilterButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
PlatformPropertiesPlatformFilterButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
PlatformPropertiesPlatformFilterButton.text_ext.selected_colour = { 0, 255, 0, 255}

local PlatformPropertiesDecorPlatformRadioGroup = CreateRadioGroup("PlatformPropertiesDecorPlatformRadioGroup",
	{PlatformPropertiesPlatformFilterButton, PlatformPropertiesDecorFilterButton},
	{0,-190} )
PlatformPropertiesDecorPlatformRadioGroup.width = 1;
PlatformPropertiesDecorPlatformRadioGroup.height = 1;
local PlatformPropertiesListBoxScroller = CreateScrollerButton( "PlatformPropertiesListBoxScroller", [[GUI\Generic_buttons\vertical_scroller]], {100, 0} )
local PlatformPropertiesListBoxScrollbar = CreateScrollBar( "PlatformPropertiesListBoxScrollbar", nil, nil, PlatformPropertiesListBoxScroller, {115, 0} )
PlatformPropertiesListBoxScrollbar.width = 60;
PlatformPropertiesListBoxScrollbar.height = 256;
local PlatformPropertiesCancelButton = CreatePushButton( "PlatformPropertiesCancelButton", [[GUI\generic\back.anim]], {105, 245 } )
local PlatformPropertiesListBox = CreateListBox("PlatformPropertiesListBox", 256, 256, PlatformPropertiesListBoxScrollbar, {10, -102} )
PlatformPropertiesListBox.listbox_ext.item_width = 256;
PlatformPropertiesListBox.listbox_ext.item_height = 128;
PlatformPropertiesDialog = CreateModalDialog( "PlatformPropertiesDialog", 
  { PlatformPropertiesHubRadioGroup, PlatformPropertiesDecorPlatformRadioGroup, PlatformPropertiesCancelButton, PlatformPropertiesListBox },
  [[GUI\platform_select\background.anim]], {512, 320} )
  
--MUSIC SELECT Dialog
local CurrentMusicText = CreateStaticText("CurrentMusicText", "fubar", {-110, 183}, "large")
CurrentMusicText.width = 400;
CurrentMusicText.height = 20;
local MusicSelectScrollbarButton = CreateScrollerButton( "MusicSelectScrollbarButton", [[GUI\profile\profile_scroller]])
local MusicSelectScrollbar = CreateScrollBar( "MusicSelectScrollbar", nil, nil, MusicSelectScrollbarButton, {260, 0 }, {0, -20} )
MusicSelectScrollbar.width = 60
MusicSelectScrollbar.height = 250
MusicSelectScrollbar.scrollbar_ext.scroller_offset = {0, -20}
local MusicSelectListbox = CreateListBox( "MusicSelectListbox", 320, 260, MusicSelectScrollbar, {-110, -175+40} )

local MusicSelectAcceptButton = CreatePushButton( "MusicSelectAcceptButton", [[GUI\generic\okay.anim]], {-100, 240} )
local MusicSelectCancelButton = CreatePushButton( "MusicSelectCancelButton", [[GUI\generic\cancel.anim]], {145, 240 } )

MusicSelectDialog = CreateModalDialog( "MusicSelectDialog",
 { CurrentMusicText, MusicSelectListbox, MusicSelectAcceptButton, MusicSelectCancelButton},
 [[GUI\generic\file_select.anim]], {512, 320} )

-------------------------
  
local TestDialogOk = CreatePushButton( "TestDialogOk", [[GUI/generic/okay.anim]], {-134, -20} )
TestDialogOk.button_ext.additional_scale = 1.2

local TestDialogCancel = CreatePushButton( "TestDialogCancel", [[GUI/generic/cancel.anim]], {0, 14} )
TestDialogCancel.button_ext.additional_scale = 1.2

TestDialog = CreateModalDialog( "TestDialog",
  { TestDialogOk, TestDialogCancel },
  [[GUI/test_level/test_level.anim]], {490, 350} )
  
--PUZZLE MAKER HELP BOX
local LevelEditorHelpBoxStaticText = CreateStaticText("LevelEditorHelpBoxStaticText", "$01901", {-160, -175}, "large")
LevelEditorHelpBoxStaticText.width = 340;
LevelEditorHelpBoxStaticText.height = 400;
LevelEditorHelpBoxStaticText.text_ext.colour = {r = 0, g = 0, b = 0, alpha = 255 }

local LevelEditorHelpBoxWebPageLink = CreateClickableText("LevelEditorHelpBoxWebPageLink", "www.eetsgame.com", {-110, 164}, "large dropshadow")
LevelEditorHelpBoxWebPageLink.width = 220;
LevelEditorHelpBoxWebPageLink.height = 40;
LevelEditorHelpBoxWebPageLink.text_ext.colour = { r = 82, g = 174, b = 234, alpha = 255 }
LevelEditorHelpBoxWebPageLink.text_ext.hover_colour = { r = 255, g = 100, b = 30, alpha = 255 }
LevelEditorHelpBoxWebPageLink.text_ext.dropshadow_distance = 1

local LevelEditorHelpBoxCloseButton = CreatePushButton( "LevelEditorHelpBoxCloseButton", [[gui/help/close_window.anim]], { 0, 245 } )

local xpos = 0
local ypos = -88

local LevelEditorHelpUnlockButton = CreateImage( "LevelEditorHelpUnlockButton", [[GUI/radial_menu/unlocked.anim]], {xpos -15, ypos - 20} )
LevelEditorHelpUnlockButton.anim_ext.additional_scale = 0.7

local LevelEditorHelpHintButton = CreateImage( "LevelEditorHelpHintButton", [[GUI/radial_menu/hint_on.anim]], {xpos - 15, ypos + 60} )
LevelEditorHelpHintButton.anim_ext.additional_scale = 0.7

local LevelEditorHelpBoxOffSoln = CreateImage( "LevelEditorHelpBoxOffSoln", [[GUI/control menu/ctrl_menu_off_soln.anim]], {xpos - 57, ypos + 120} )
LevelEditorHelpBoxOffSoln.anim_ext.additional_scale = 0.7
local LevelEditorHelpBoxButton1 = CreateImage( "LevelEditorHelpBoxButton1", [[GUI/control menu/button_background.anim]], {xpos - 57, ypos + 120} )
LevelEditorHelpBoxButton1.anim_ext.additional_scale = 0.8

local LevelEditorHelpBoxTestMode = CreateImage( "LevelEditorHelpBoxTestMode", [[GUI/control menu/ctrl_menu_test_mode.anim]], {xpos - 57, ypos + 180} )
LevelEditorHelpBoxTestMode.anim_ext.additional_scale = 0.7
local LevelEditorHelpBoxButton2 = CreateImage( "LevelEditorHelpBoxButton2", [[GUI/control menu/button_background.anim]], {xpos - 57, ypos + 180} )
LevelEditorHelpBoxButton2.anim_ext.additional_scale = 0.8

local LevelEditorHelpTitle = CreateImage("LevelEditorHelpTitle", [[GUI/level_editor/quick_reference_title.anim]], {-20, -230}, {15,-1} )

LevelEditorHelpBox = CreateModalDialog( "LevelEditorHelpBox",
		{
			LevelEditorHelpBoxWebPageLink,
			LevelEditorHelpTitle,
			LevelEditorHelpBoxStaticText, 
			LevelEditorHelpBoxCloseButton,
			LevelEditorHelpBoxTestMode,
			LevelEditorHelpBoxButton2,
			LevelEditorHelpUnlockButton,
			LevelEditorHelpHintButton,
			LevelEditorHelpBoxOffSoln,
			LevelEditorHelpBoxButton1,
		},

		[[GUI\help\background.anim]], 	{512, 344} )

------------------------------------------------

NoOfficialSolutionText = CreateClickableText( "NoOfficialSolutionText", "$00295", { 10, 3 }, "large dropshadow" )
NoOfficialSolutionText.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
NoOfficialSolutionText.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
NoOfficialSolutionText.width = 210
NoOfficialSolutionText.height = 22
NoOfficialSolutionText.text_ext.dropshadow_distance = 2
NoOfficialSolutionText.button_ext.autofocusing = true

------------------------------------------------
widgets =
{
  WarrenTheWise,
  WarrenTheWiseLarge,

  -- Radial
  RadialMenu,
  
  BottomGroup,
  GameMenuReturn,

  -- Dialogs
  LoadLevelDialog,
  LoadConfirmDialog,
  MerchLoadDialog,
  GameMenuDialog,
  QuitDialog,
  MessageBox,
  ReturnToMainMenuDialog,
  SaveAsDialog,
  SelectTimeOfDayDialog,
  TestDialog,
  ReturnToPuzzleMapDialog,
  LevelEditorHelpBox,
  
  OptionsDialog,
  SaveReplayDialog,
  LevelTypeDialog,
  LevelPropertiesDialog,
  ImageSelectDialog,
  PlatformPropertiesDialog,
  MusicSelectDialog,
  
  WinDialog,
  EetsDeadDialog,
  WarrenTheWiseDialog,
  WarrenTheWiseDialogLarge,
  WarrenTheWise2Dialog,
  WarrenTheWise2DialogLarge,
  
  LoadedHubTitle,
  LoadedLevelTitle,
  LoadedLevelTitleBG,
  
  TooltipWidget,
  ClickCursor,
  ReplayingText,
  NoOfficialSolutionText
}

tooltip = "TooltipWidget"