Many UI fixes.

This commit is contained in:
Henrique Santiago
2012-08-24 05:18:15 -03:00
parent 0c18e4ff28
commit f97fa65d37
8 changed files with 88 additions and 81 deletions

View File

@@ -37,13 +37,18 @@ TopMenuButtonsPanel < Panel
fit-children: true
padding: 6 4
TopPanel < Panel
TopMenuPanel < Panel
height: 36
image-source: images/top_panel.png
image-repeated: true
focusable: false
TopPanel
TopMenuFrameCounterLabel < FrameCounterLabel
color: white
margin-top: 10
margin-right: 5
TopMenuPanel
id: topMenu
anchors.top: parent.top
anchors.left: parent.left
@@ -62,25 +67,11 @@ TopPanel
anchors.left: prev.right
visible: false
UILabel
TopMenuFrameCounterLabel
id: frameCounter
text-align: right
text-auto-resize: true
color: white
id: frameCounter
anchors.top: parent.top
anchors.left: prev.right
margin-top: 10
margin-right: 5
@onSetup: |
cycleEvent(function()
local frameCounter = rootWidget:recursiveGetChildById('frameCounter')
if frameCounter then
local text = 'FPS: ' .. g_app.getBackgroundPaneFps()
frameCounter:setText(text)
--print(text)
end
end, 250)
TopMenuButtonsPanel
id: rightButtonsPanel