dofile('Data/Scripts/Common/Screens/InGameMenuBase.lua')

class 'InGameMenu' (InGameMenuBase)

function InGameMenu:__init(name)
    InGameMenuBase.__init(self, name)
    
end

function InGameMenu:onScreenDestroy()
    InGameMenuBase.onScreenDestroy(self)
    
    -- current_scene:getPanel():getControlsPanel():updatePosition()
end

function InGameMenu:onExitButtonClick()
	createYesNoScreen('REALLY_QUIT_TO_MENU', bind(self.onExitToMainMenu, self), nil, true, nil, YES_NO_SCREEN_EXIT_TO_MAIN_MENU_HEADER)
end

--------------------------------------------------------------------------------
--                      GENERATED CONTENT. DO NOT EDIT.                       --
--------------------------------------------------------------------------------

function InGameMenu:CreateLoaderTable()
	local objects =
	{
		{ name = 'InGameScreenBackground',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 10,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/InGameMenu/InGameScreenBackground.png',  width = 350,  height = 442,  },
		{ name = 'menu_txt',  entityType = 'SpriteEntity',  parentName = 'InGameScreenBackground',  x = -4,  y = -208,  order = 0,  isVisible = false,  isRespondable = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/InGameMenu/menu_txt.png',  width = 52,  height = 16,  },
		{ name = 'bttn_continue',  entityType = 'ButtonEntity',  parentName = 'InGameScreenBackground',  x = 0,  y = -107,  order = 2,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/GUI/Buttons/bttn_continue.png',  text = '',  },
		{ name = 'bttn_options',  entityType = 'ButtonEntity',  parentName = 'InGameScreenBackground',  x = 0,  y = -24,  order = 2,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/InGameMenu/bttn_options.png',  text = '',  },
		{ name = 'bttn_help',  entityType = 'ButtonEntity',  parentName = 'InGameScreenBackground',  x = 0,  y = 58,  order = 2,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/GUI/Buttons/bttn_help.png',  text = '',  },
		{ name = 'bttn_exit',  entityType = 'ButtonEntity',  parentName = 'InGameScreenBackground',  x = 0,  y = 137,  order = 2,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/GUI/Buttons/bttn_quit.png',  text = '',  },
	}
	return objects
end
