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 icon-clip: 0 0 20 20
9
10 $on:
11 image-source: /images/ui/button_top_blink
12 icon-clip: 0 20 20 20
13
14 $hover !disabled:
15 image-color: #ffffff99
16 image-clip: 26 0 26 26
17
18 $pressed:
19 image-clip: 52 0 26 26
20 icon-clip: 0 20 20 20
21
22 $disabled:
23 image-color: #ffffff44
24 icon-color: #ffffff44
25
26TopToggleButton < UIButton
27 size: 20 20
28 image-source: /images/ui/button_top
29 image-clip: 0 0 26 26
30 image-color: #ffffffff
31 image-border: 3
32 icon-clip: 0 0 20 20
33 icon-color: #ffffffff
34
35 $on:
36 icon-clip: 0 20 20 20
37
38 $hover !disabled:
39 image-color: #ffffff99
40 image-clip: 26 0 26 26
41
42 $pressed:
43 image-clip: 52 0 26 26
44 icon-clip: 0 20 20 20
45
46 $disabled:
47 image-color: #ffffff44
48 icon-color: #ffffff44
49
50TopMenuButtonsPanel < Panel
51 layout:
52 type: horizontalBox
53 spacing: 4
54 fit-children: true
55 padding: 6 4
56
57TopMenuPanel < Panel
58 height: 36
59 image-source: /images/ui/panel_top
60 image-repeated: true
61 image-border: 3
62 image-border-top: 0
63 focusable: false
64
65TopMenuFrameCounterLabel < Label
66 font: verdana-11px-rounded
67 color: white
68 margin-top: 4
69 margin-left: 5
70
71TopMenuPingLabel < Label
72 font: verdana-11px-rounded
73
74TopMenu < TopMenuPanel
75 id: topMenu
76 width: 800
77 anchors.horizontalCenter: parent.horizontalCenter
78 anchors.top: parent.top
79 &hideIngame: true
80 &reverseButtons: true
81
82 UIWidget
83 id: discord
84 anchors.top: parent.top
85 anchors.left: parent.left
86 margin-top: 3
87 margin-left: 5
88 image-source: /images/ui/discord
89
90 Label
91 id: discordLabel
92 anchors.top: parent.top
93 anchors.bottom: parent.bottom
94 anchors.left: prev.right
95 text-align: center
96 margin-left: 2
97 text-auto-resize: true
98
99 TopMenuButtonsPanel
100 id: rightButtonsPanel
101 anchors.top: parent.top
102 anchors.bottom: parent.bottom
103 anchors.left: prev.right
104
105 TopMenuButtonsPanel
106 id: rightGameButtonsPanel
107 anchors.top: parent.top
108 anchors.bottom: parent.bottom
109 anchors.left: prev.right
110 visible: false
111
112 Label
113 id: onlineLabel
114 anchors.top: parent.top
115 anchors.bottom: parent.bottom
116 anchors.horizontalCenter: parent.horizontalCenter
117 text-align: center
118 text-auto-resize: true
119
120 TopMenuButtonsPanel
121 id: leftButtonsPanel
122 anchors.top: parent.top
123 anchors.bottom: parent.bottom
124 anchors.right: parent.right
125
126 TopMenuButtonsPanel
127 id: leftGameButtonsPanel
128 anchors.top: parent.top
129 anchors.bottom: parent.bottom
130 anchors.right: prev.left
131 visible: false
132