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

class 'TutorialScreen' (TutorialScreenBase)

function TutorialScreen:__init(name, tutorial)
	TutorialScreenBase.__init(self, name, tutorial)
end

function TutorialScreen:createArrow(pos, angle)
	local entityName = string.format(self.arrowNameFormat, #self.arrows)

	local entity = CreateSpriteEntity('Data/Textures/Screens/Tutorial/TutorialArrow.png')
	table.insert(self.arrows, entity)

	entity:attachTo		 ( self:getMainEntity() )
	entity:setName		 ( entityName )
	entity:setColor		 ( Colorf(1, 1, 1, 1) )
	entity:setHotSpot	 ( 150, 42 )
	entity:setRotationRad( angle )
	entity:setPosition	 ( pos )
	entity:setScaleX	 ( 1.4 )
	entity:setOrder		 ( 10 )
	entity:setRespondable( false )

	return entity
end

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

function TutorialScreen:CreateLoaderTable()
	local objects =
	{
		{ name = 'TutorialWindow',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 0,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/Tutorial/TutorialWindow.png',  width = 440,  height = 237,  },
		{ name = 'interactive_help_txt',  entityType = 'SpriteEntity',  parentName = 'TutorialWindow',  x = 0,  y = -90,  order = 0,  isVisible = false,  isRespondable = false,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/Tutorial/interactive_help_txt.png',  width = 152,  height = 16,  },
		{ name = 'textMessage',  entityType = 'TextEntity',  parentName = 'TutorialWindow',  x = 0,  y = -15,  order = 30,  editingLocked = false,  treeItemIsExpanded = true,  text = 'textMessage',  font = 'Data/Fonts/Options.fnt',  height = 29,  boundsX = 364,  boundsY = 112,  },
		{ name = 'textInstruction',  entityType = 'TextEntity',  parentName = 'TutorialWindow',  x = 0,  y = 75,  order = 40,  editingLocked = false,  treeItemIsExpanded = true,  text = 'new text',  height = 20,  boundsX = 350,  boundsY = 0,  },
		{ name = 'bttn_skip_tutorial',  entityType = 'ButtonEntity',  x = 770,  y = 28,  order = 15,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/Tutorial/SkipTutorialButton.png',  text = '',  activeRectX = 179,  activeRectY = 42,  },
	}
	return objects
end
