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

class 'HelpScreen' (HelpScreenBase)

function HelpScreen:__init(name)
    HelpScreenBase.__init(self, name)
end

function HelpScreen:createText(text)
    local textEntity = CreateTextEntity()
    textEntity:attachTo( self:getMainEntity() )
    textEntity:setOrder(20)
    textEntity:setXY(512, 358)
    textEntity:setBounds(390, 330)
    textEntity:setText( StringManager:getString(text) )
    textEntity:setFont('Data/Fonts/Options.fnt')
    textEntity:setOpacity(0)
    
    return textEntity
end

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

function HelpScreen:CreateLoaderTable()
	local objects =
	{
		{ name = 'Help',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/Help/Help.png',  width = 530,  height = 450,  },
		{ name = 'bttn_ok',  entityType = 'ButtonEntity',  parentName = 'Help',  x = -5,  y = 169,  order = 2,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/GUI/Buttons/bttn_ok.png',  text = '',  activeRectX = 230,  activeRectY = 74,  },
		{ name = 'bttn_left',  entityType = 'ButtonEntity',  parentName = 'Help',  x = -207,  y = 163,  order = 2,  scaleX = -1,  scaleY = 1,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/GUI/Buttons/bttn_arrow_right.png',  text = '',  activeRectX = 74,  activeRectY = 74,  },
		{ name = 'bttn_right',  entityType = 'ButtonEntity',  parentName = 'Help',  x = 207,  y = 163,  order = 2,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/GUI/Buttons/bttn_arrow_right.png',  text = '',  activeRectX = 74,  activeRectY = 74,  },
		{ name = 'htlp_txt',  entityType = 'SpriteEntity',  parentName = 'Help',  x = 0,  y = -193,  order = 0,  isVisible = false,  isRespondable = false,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/Help/htlp_txt.png',  width = 42,  height = 16,  },
	}
	return objects
end
