mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
enable skills and vip window on right panel
This commit is contained in:
@@ -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()
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user