enable skills and vip window on right panel

This commit is contained in:
Eduardo Bart
2011-11-03 10:17:10 -02:00
parent 101f608d40
commit 14ce1c8183
19 changed files with 115 additions and 30 deletions

View File

@@ -17,7 +17,8 @@ end
-- public functions
function Game.create()
Game.gameUi = loadUI('/game/ui/gameinterface.otui', UI.root)
Game.gameMapUi = Game.gameUi:getChildById('gameMap')
Game.gameMapPanel = Game.gameUi:getChildById('mapPanel')
Game.gameRightPanel = Game.gameUi:getChildById('rightPanel')
Game.gameUi.onKeyPress = onGameKeyPress
TextMessage.create()
@@ -33,7 +34,7 @@ end
function Game.show()
Game.gameUi:show()
Game.gameUi:focus()
Game.gameMapUi:focus()
Game.gameMapPanel:focus()
end
function Game.hide()

View File

@@ -22,10 +22,10 @@ local messageTypes = {
-- public functions
function TextMessage.create()
bottomLabelWidget = UILabel.create()
Game.gameMapUi:addChild(bottomLabelWidget)
Game.gameMapPanel:addChild(bottomLabelWidget)
centerLabelWidget = UILabel.create()
Game.gameMapUi:addChild(centerLabelWidget)
Game.gameMapPanel:addChild(centerLabelWidget)
end
-- hooked events

View File

@@ -6,11 +6,12 @@ UIWidget
InterfacePanel
id: rightPanel
width: 200
layout: verticalBox
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom
InterfacePanel
InterfacePanel2
id: bottomPanel
height: 140
anchors.left: parent.left
@@ -18,7 +19,7 @@ UIWidget
anchors.bottom: parent.bottom
MapPanel
id: gameMap
id: mapPanel
anchors.left: parent.left
anchors.right: rightPanel.left
anchors.top: parent.top

View File

@@ -11,6 +11,7 @@ BottomLabel < Label
font: verdana-11px-rounded
height: 16
align: center
margin.bottom: 2
anchors.bottom: parent.bottom
anchors.left: parent.left
anchors.right: parent.right