tibia-client/modules/client_topmenu/topmenu.otui

88 lines
1.7 KiB
Plaintext
Raw Normal View History

2012-01-07 18:36:58 +01:00
TopButton < UIButton
size: 26 26
image-source: images/top_button.png
image-clip: 0 0 26 26
image-border: 3
image-color: #ffffffff
icon-color: #ffffffff
2012-01-07 18:36:58 +01:00
2012-02-06 02:44:47 +01:00
$hover !disabled:
image-color: #ffffff99
image-clip: 26 0 26 26
2012-01-07 18:36:58 +01:00
$pressed:
image-clip: 52 0 26 26
2011-11-01 17:41:15 +01:00
2012-01-07 18:36:58 +01:00
$disabled:
image-color: #ffffff44
icon-color: #ffffff44
TopToggleButton < UIButton
size: 26 26
image-source: images/top_game_button.png
image-clip: 26 0 26 26
image-color: #ffffff22
image-border: 3
icon-color: #ffffffff
$on:
image-clip: 0 0 26 26
image-color: #ffffffff
icon-color: #ffffffff
TopMenuButtonsPanel < Panel
layout:
type: horizontalBox
spacing: 4
fit-children: true
padding: 6 4
TopPanel < Panel
height: 36
image-source: images/top_panel.png
image-repeated: true
focusable: false
2012-01-07 18:36:58 +01:00
TopPanel
id: topMenu
anchors.top: parent.top
anchors.left: parent.left
anchors.right: parent.right
TopMenuButtonsPanel
2012-01-07 18:36:58 +01:00
id: leftButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: parent.left
TopMenuButtonsPanel
id: gameButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: prev.right
visible: false
2012-01-07 18:36:58 +01:00
TopMenuButtonsPanel
2012-01-07 18:36:58 +01:00
id: rightButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
UILabel
size: 68 16
text-align: right
color: white
2011-11-17 01:12:11 +01:00
id: frameCounter
2011-11-12 01:33:03 +01:00
anchors.top: parent.top
anchors.right: prev.left
2011-11-17 22:41:02 +01:00
margin-top: 8
margin-right: 5
@onSetup: |
local updateFunc
updateFunc = function()
self:setText('FPS: ' .. g_app.getBackgroundPaneFps())
scheduleEvent(updateFunc, 250)
end
updateFunc()