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

class 'HPPanel' (HPPanelBase)

function HPPanel:__init(panel)
    HPPanelBase.__init(self, panel, 3)
end

-- function HPPanel:addExit()
-- 	local size = Vector2f(672, 70)
		
-- 	self.areaExit = CreateSpriteEntity('')
-- 	self.areaExit:setName			( 'area_link_exit_from_hp' )
-- 	self.areaExit:attachTo			( self.game_scene:getHPPanel():getMainEntity() )
-- 	self.areaExit:setAnimationSize	( size )
-- 	self.areaExit:setXY				( WORK_W/2,  WORK_H - size.y/2 )
-- 	self.areaExit:setColor			( Colorf(1, 1, 1, 0.01) )
-- 	self.areaExit:setOrder			( 1500 )
-- 	self.areaExit:setCursorOverName	( 'CursorDown' )
-- 	self.areaExit.onClickBegin:add	( bind(self.onCloseClicked, self) )
-- end
-- -------------------------------------------------------------------------------

-- function HPPanel:onCloseClicked(target, screenFocus)
--     local level = self.game_scene:getPlayField()

-- 	if level.match3 and level.match3.field then
-- 		level.match3.field:unregisterEvents()
-- 	end

-- 	HOPanelBase.onCloseClicked(self, target, screenFocus)
-- end

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

function HPPanel:CreateLoaderTable()
	local objects =
	{
		{ name = 'panel_plate',  entityType = 'SpriteEntity',  x = 512,  y = 719,  order = 0,  color = {r = 1, g = 1, b = 1, a = 0.00392157},  editingLocked = false,  treeItemIsExpanded = true,  width = 653,  height = 100,  },
	}
	return objects
end
