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

-----------------------------------------------------
xoffset = -30
yoffset = 100

ContinueGameButton = CreateClickableText("ContinueGameButton", "$01505", {xoffset - 2, yoffset}, "geek larger dropshadow")
ContinueGameButton.width = 382;
ContinueGameButton.height = 80;
ContinueGameButton.text_ext.autowrap = false
ContinueGameButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
ContinueGameButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

CustomButton = CreateClickableText("CustomButton", "$01506", {xoffset, yoffset + 60}, "geek larger dropshadow")
CustomButton.width = 380;
CustomButton.height = 40;
CustomButton.text_ext.autowrap = false
CustomButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
CustomButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
CustomButton.button_ext.autofocusing = true

LoadReplayButton = CreateClickableText("LoadReplayButton", "$01510", {xoffset + 2, yoffset + 100}, "geek larger dropshadow")
LoadReplayButton.width = 378;
LoadReplayButton.height = 40;
LoadReplayButton.text_ext.autowrap = false
LoadReplayButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
LoadReplayButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
LoadReplayButton.button_ext.autofocusing = true

TrophyRoomButton = CreateClickableText("TrophyRoomButton", "$01507", {xoffset + 2, yoffset + 140}, "geek larger dropshadow")
TrophyRoomButton.width = 378;
TrophyRoomButton.height = 40;
TrophyRoomButton.text_ext.autowrap = false
TrophyRoomButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
TrophyRoomButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }

BackButton = CreateClickableText("BackButton", "$01508", {xoffset + 4, yoffset + 180}, "geek larger dropshadow")
BackButton.width = 376;
BackButton.height = 40;
BackButton.text_ext.autowrap = false
BackButton.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
BackButton.text_ext.hover_colour = { r = 0, g = 255, b = 0, alpha = 255 }
BackButton.button_ext.autofocusing = true

PuzzleMapTitle = CreateImage( "PuzzleMapTitle", "GUI/puzzle_map/puzzle_map_title.anim", {0, 75-412} )

xoffset = -3-512
yoffset = -3-412

--puzzle pieces
IntroductionPiece = CreatePushButton( "$01401", "GUI/puzzle_map/Introduction.anim", {340 + 23 + xoffset, 240+10 + yoffset} )
IntroductionPiece.eventcallback_ext = {}
IntroductionPiece.button_ext.autofocusing = true;

SmoreLandPiece = CreatePushButton( "$01402", "GUI/puzzle_map/Smore Land.anim", {375+20 + xoffset, 430-15+6 + yoffset} )
SmoreLandPiece.eventcallback_ext = {}
SmoreLandPiece.button_ext.autofocusing = true;

KaboomDesertPiece = CreatePushButton( "$01403", "GUI/puzzle_map/Kaboom Desert.anim", {350+158+29 + xoffset, 420-1 + yoffset} )
KaboomDesertPiece.eventcallback_ext = {}
KaboomDesertPiece.button_ext.autofocusing = true;

GinsengHollowPiece = CreatePushButton( "$01404", "GUI/puzzle_map/Ginseng Hollow.anim", {350+140+24-1 + xoffset, 240+41+1 + yoffset} )
GinsengHollowPiece.eventcallback_ext = {}
GinsengHollowPiece.button_ext.autofocusing = true;

RevengePiece = CreatePushButton( "$01405", "GUI/puzzle_map/Marshomech Lair.anim", {350+140+185 + xoffset, 240+25 + yoffset} )
RevengePiece.eventcallback_ext = {}
RevengePiece.button_ext.autofocusing = true;

UpsideDownPiece = CreatePushButton( "$01406", "GUI/puzzle_map/Topsy Turvy World.anim", {350+25-7 + xoffset, 600-16 + yoffset} )
UpsideDownPiece.eventcallback_ext = {}
UpsideDownPiece.button_ext.autofocusing = true;

SmoreMishmashPiece = CreatePushButton( "$01407", "GUI/puzzle_map/Smore Mishmash.anim", {350+316 + xoffset, 430-26 + yoffset} )
SmoreMishmashPiece.eventcallback_ext = {}
SmoreMishmashPiece.button_ext.autofocusing = true;

PuzzlePieceHoverText = CreateStaticText("PuzzlePieceHoverText", "hub", {120, -300}, "brady largest dropshadow centre" )
PuzzlePieceHoverText.text_ext.colour = { r = 255, g = 255, b = 0, alpha = 255 }
PuzzlePieceHoverText.text_ext.autowrap = false;

PuzzleMapDialog = CreateModalDialog( "PuzzleMapDialog",
	{
		-- Static text
		PuzzlePieceHoverText,
		
		-- Buttons
		BackButton,
		CustomButton,
		LoadReplayButton,
		TrophyRoomButton,
		ContinueGameButton,
		
		IntroductionPiece,
		SmoreLandPiece,
		KaboomDesertPiece,
		GinsengHollowPiece,
		RevengePiece,
		UpsideDownPiece,
		SmoreMishmashPiece,
		
		PuzzleMapTitle,
	}, 
	"GUI/puzzle_map/box.anim", {512, 400} )
	
-----------------------------------------------------

widgets =
{
	WarrenTheWise,
	WarrenTheWiseLarge,
	WarrenTheWise2,
	WarrenTheWise2Large,
	
	LoadLevelDialog,
	PuzzleMapDialog,
	LevelMapDialog,
	LoadReplayDialog,
	ReturnToMainMenuDialog,
	
	MessageBox,
}
