tibia-client/modules/client_topmenu/topmenu.otui

97 lines
2.0 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: #ffffffff
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: leftGameButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.left: prev.right
visible: false
UILabel
2012-06-04 02:28:19 +02:00
id: frameCounter
text-align: right
2012-06-02 20:58:30 +02:00
text-auto-resize: true
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.left: prev.right
2011-11-17 22:41:02 +01:00
margin-top: 8
margin-right: 5
@onSetup: |
2012-06-06 22:14:53 +02:00
cycleEvent(function()
local frameCounter = rootWidget:recursiveGetChildById('frameCounter')
if frameCounter then
2012-06-08 18:58:08 +02:00
local text = 'FPS: ' .. g_app.getBackgroundPaneFps()
frameCounter:setText(text)
--print(text)
end
2012-06-06 22:14:53 +02:00
end, 250)
TopMenuButtonsPanel
id: rightButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: parent.right
TopMenuButtonsPanel
id: rightGameButtonsPanel
anchors.top: parent.top
anchors.bottom: parent.bottom
anchors.right: prev.left
visible: false