1MinimapFlag < UIWidget
2 size: 11 11
3 focusable: false
4
5MinimapCross < UIWidget
6 focusable: false
7 phantom: true
8 image: /images/game/minimap/cross
9 size: 16 16
10
11MinimapFloorUpButton < Button
12 size: 20 20
13 margin-right: 28
14 margin-bottom: 28
15 anchors.right: parent.right
16 anchors.bottom: parent.bottom
17 icon-source: /images/game/minimap/floor_up
18 icon-clip: 0 32 16 16
19 $pressed:
20 icon-clip: 0 0 16 16
21 $hover !pressed:
22 icon-clip: 0 16 16 16
23
24MinimapFloorDownButton < Button
25 size: 20 20
26 margin-right: 28
27 margin-bottom: 4
28 anchors.right: parent.right
29 anchors.bottom: parent.bottom
30 icon-source: /images/game/minimap/floor_down
31 icon-clip: 0 32 16 16
32 $pressed:
33 icon-clip: 0 0 16 16
34 $hover !pressed:
35 icon-clip: 0 16 16 16
36
37MinimapZoomInButton < Button
38 text: +
39 size: 20 20
40 margin-right: 4
41 margin-bottom: 28
42 anchors.right: parent.right
43 anchors.bottom: parent.bottom
44 //icon-source: /images/game/minimap/zoom_in
45
46MinimapZoomOutButton < Button
47 text: -
48 size: 20 20
49 margin-right: 4
50 margin-bottom: 4
51 anchors.right: parent.right
52 anchors.bottom: parent.bottom
53 //icon-source: /images/game/minimap/zoom_out
54
55MinimapResetButton < Button
56 !text: tr('Center')
57 size: 44 20
58 anchors.left: parent.left
59 anchors.top: parent.top
60 margin: 4
61
62Minimap < UIMinimap
63 draggable: true
64 focusable: false
65 cross: true
66 color: black
67
68 MinimapFloorUpButton
69 id: floorUpWidget
70 @onClick: self:getParent():floorUp(1)
71
72 MinimapFloorDownButton
73 id: floorDownWidget
74 @onClick: self:getParent():floorDown(1)
75
76 MinimapZoomInButton
77 id: zoomInWidget
78 @onClick: self:getParent():zoomIn()
79
80 MinimapZoomOutButton
81 id: zoomOutWidget
82 @onClick: self:getParent():zoomOut()
83
84 MinimapResetButton
85 id: resetWidget
86 @onClick: self:getParent():reset()
87
88
89// Minimap Flag Create Window
90
91
92MinimapFlagCheckBox < CheckBox
93 size: 15 15
94 margin-left: 2
95 image-source: /images/game/minimap/flagcheckbox
96 image-size: 15 15
97 image-border: 3
98 icon-source: /images/game/minimap/mapflags
99 icon-size: 11 11
100 icon-offset: 2 4
101 anchors.left: prev.right
102 anchors.top: prev.top
103 $!checked:
104 image-clip: 26 0 26 26
105 $hover !checked:
106 image-clip: 78 0 26 26
107 $checked:
108 image-clip: 0 0 26 26
109 $hover checked:
110 image-clip: 52 0 26 26
111
112MinimapFlagWindow < MainWindow
113 !text: tr('Create Map Mark')
114 size: 196 185
115
116 Label
117 !text: tr('Position') .. ':'
118 text-auto-resize: true
119 anchors.top: parent.top
120 anchors.left: parent.left
121 margin-top: 2
122
123 Label
124 id: position
125 text-auto-resize: true
126 anchors.top: parent.top
127 anchors.right: parent.right
128 margin-top: 2
129
130 Label
131 !text: tr('Description') .. ':'
132 anchors.left: parent.left
133 anchors.top: prev.bottom
134 margin-top: 7
135
136 TextEdit
137 id: description
138 margin-top: 3
139 anchors.left: parent.left
140 anchors.top: prev.bottom
141 anchors.right: parent.right
142
143 MinimapFlagCheckBox
144 id: flag0
145 icon-source: /images/game/minimap/flag0
146 anchors.left: parent.left
147 anchors.top: prev.bottom
148 margin-top: 6
149 margin-left: 0
150
151 MinimapFlagCheckBox
152 id: flag1
153 icon-source: /images/game/minimap/flag1
154
155 MinimapFlagCheckBox
156 id: flag2
157 icon-source: /images/game/minimap/flag2
158
159 MinimapFlagCheckBox
160 id: flag3
161 icon-source: /images/game/minimap/flag3
162
163 MinimapFlagCheckBox
164 id: flag4
165 icon-source: /images/game/minimap/flag4
166
167 MinimapFlagCheckBox
168 id: flag5
169 icon-source: /images/game/minimap/flag5
170
171 MinimapFlagCheckBox
172 id: flag6
173 icon-source: /images/game/minimap/flag6
174
175 MinimapFlagCheckBox
176 id: flag7
177 icon-source: /images/game/minimap/flag7
178
179 MinimapFlagCheckBox
180 id: flag8
181 icon-source: /images/game/minimap/flag8
182
183 MinimapFlagCheckBox
184 id: flag9
185 icon-source: /images/game/minimap/flag9
186
187 MinimapFlagCheckBox
188 id: flag10
189 icon-source: /images/game/minimap/flag10
190 anchors.left: parent.left
191 anchors.top: prev.bottom
192 margin-top: 6
193 margin-left: 0
194
195 MinimapFlagCheckBox
196 id: flag11
197 icon-source: /images/game/minimap/flag11
198
199 MinimapFlagCheckBox
200 id: flag12
201 icon-source: /images/game/minimap/flag12
202
203 MinimapFlagCheckBox
204 id: flag13
205 icon-source: /images/game/minimap/flag13
206
207 MinimapFlagCheckBox
208 id: flag14
209 icon-source: /images/game/minimap/flag14
210
211 MinimapFlagCheckBox
212 id: flag15
213 icon-source: /images/game/minimap/flag15
214
215 MinimapFlagCheckBox
216 id: flag16
217 icon-source: /images/game/minimap/flag16
218
219 MinimapFlagCheckBox
220 id: flag17
221 icon-source: /images/game/minimap/flag17
222
223 MinimapFlagCheckBox
224 id: flag18
225 icon-source: /images/game/minimap/flag18
226
227 MinimapFlagCheckBox
228 id: flag19
229 icon-source: /images/game/minimap/flag19
230
231 Button
232 id: okButton
233 !text: tr('Ok')
234 width: 64
235 anchors.right: next.left
236 anchors.bottom: parent.bottom
237 margin-right: 10
238
239 Button
240 id: cancelButton
241 !text: tr('Cancel')
242 width: 64
243 anchors.right: parent.right
244 anchors.bottom: parent.bottom
245
246MinimapWindow < MiniWindow
247 height: 150
248
249 Label
250 text: ?
251 text-align: center
252 phantom: false
253 !tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks\nPress Ctrl+Shift+M to view the entire game map')
254 anchors.top: lockButton.top
255 anchors.right: lockButton.left
256 margin-right: 3
257 size: 14 14
258
259 MiniWindowContents
260 Minimap
261 id: minimap
262 anchors.fill: parent
263
264 ResizeBorder
265 anchors.right: parent.right
266 anchors.top: parent.top
267 anchors.bottom: parent.bottom
268 enabled: true