20-topmenu.otui

main 116 lines · 2.3 KB Raw
Alex Alex Commit Client Upload Part 1 19/10/2026 00:04
1TopButton < UIButton
2 size: 26 26
3 image-source: /images/ui/button_top
4 image-clip: 0 0 26 26
5 image-border: 3
6 image-color: #ffffffff
7 icon-color: #ffffffff
8
9 $on:
10 image-source: /images/ui/button_top_blink
11
12 $hover !disabled:
13 image-color: #ffffff99
14 image-clip: 26 0 26 26
15
16 $pressed:
17 image-clip: 52 0 26 26
18
19 $disabled:
20 image-color: #ffffff44
21 icon-color: #ffffff44
22
23TopToggleButton < UIButton
24 size: 26 26
25 image-source: /images/ui/button_top
26 image-clip: 0 0 26 26
27 image-color: #ffffffff
28 image-border: 3
29 icon-color: #ffffffff
30
31 $hover !disabled:
32 image-color: #ffffff99
33 image-clip: 26 0 26 26
34
35 $pressed:
36 image-clip: 52 0 26 26
37
38 $disabled:
39 image-color: #ffffff44
40 icon-color: #ffffff44
41
42TopMenuButtonsPanel < Panel
43 layout:
44 type: horizontalBox
45 spacing: 4
46 fit-children: true
47 padding: 6 4
48
49TopMenuPanel < Panel
50 height: 36
51 image-source: /images/ui/panel_top
52 image-repeated: true
53 focusable: false
54
55TopMenuFrameCounterLabel < Label
56 font: verdana-11px-rounded
57 color: white
58 margin-top: 4
59 margin-left: 5
60
61TopMenuPingLabel < Label
62 font: verdana-11px-rounded
63
64TopMenu < TopMenuPanel
65 id: topMenu
66 anchors.top: parent.top
67 anchors.left: parent.left
68 anchors.right: parent.right
69
70 TopMenuButtonsPanel
71 id: leftButtonsPanel
72 anchors.top: parent.top
73 anchors.bottom: parent.bottom
74 anchors.left: parent.left
75
76 TopMenuButtonsPanel
77 id: leftGameButtonsPanel
78 anchors.top: parent.top
79 anchors.bottom: parent.bottom
80 anchors.left: prev.right
81 visible: false
82
83 TopMenuFrameCounterLabel
84 id: fpsLabel
85 text-auto-resize: true
86 anchors.top: parent.top
87 anchors.left: leftGameButtonsPanel.right
88
89 TopMenuPingLabel
90 color: white
91 id: pingLabel
92 text-auto-resize: true
93 anchors.top: fpsLabel.bottom
94 anchors.left: fpsLabel.left
95
96 Label
97 id: onlineLabel
98 anchors.top: parent.top
99 anchors.bottom: parent.bottom
100 anchors.horizontalCenter: parent.horizontalCenter
101 font: verdana-11px-antialised
102 text-align: center
103 text-auto-resize: true
104
105 TopMenuButtonsPanel
106 id: rightButtonsPanel
107 anchors.top: parent.top
108 anchors.bottom: parent.bottom
109 anchors.right: parent.right
110
111 TopMenuButtonsPanel
112 id: rightGameButtonsPanel
113 anchors.top: parent.top
114 anchors.bottom: parent.bottom
115 anchors.right: prev.left
116 visible: false
Top