-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
pandora.cfg
370 lines (336 loc) · 11.1 KB
/
pandora.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
#textdomain wesnoth
# wmlscope: set export=no
# some information about how theming works (especially the coordinates
# defined with rect=):
# http://www.wesnoth.org/forum/viewtopic.php?p=213708#213708
#define DEFAULT_FONT_NORMAL
14 #enddef
#define DEFAULT_FONT_SMALL
12 #enddef
#define DEFAULT_FONT_TINY
10 #enddef
#define DEFAULT_FONT_REALLYTINY
9 #enddef
{themes/macros.cfg}
[theme]
id=Pandora
name= _ "theme^Pandora"
description= _ "An 800×480 theme optimized for Pandora devices"
[resolution]
id=800x480
width=800
height=480
[screen]
# this is only useful as a ref for other rects
id=screen
rect="0,0,800,480"
[/screen]
[panel]
ref=screen
id=sidebar-panel
image=themes/editor/classic/sidebar_borderless.png
rect="-262,0,800,480"
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
#ref=screen
id=sidebar-border-panel
image=themes/editor/classic/sidebar_border.png
rect="=-5, 0, +5, 480"
xanchor=fixed
yanchor=fixed
[/panel]
[main_map]
id=main-map
rect="0,0,=-5,480"
# xanchor=left
# yanchor=top
[/main_map]
{MAIN_MAP_BORDER}
# rightside panel
{STATUS_BOX =+1 =+3 794 271 minimap sidebar-panel fixed fixed}
[mini_map]
id=mini-map
ref=minimap-box-center
rect="=,=-1,=+1,="
xanchor=fixed
yanchor=fixed
[/mini_map]
#[slider]
# image=buttons/sliders/slider_arrow_gold@2x
# id=map-zoom-slider
# black_line=yes
# ref=mini-map
# rect="=+32,+1,+117,+18"
# xanchor=fixed
# yanchor=fixed
#[/slider]
[action]
ref=minimap-box-botright
id=zoom-default-button
items=zoomdefault
type=checkbox
image=button_square/button_square_60
auto_tooltip=yes
rect="-60,+2,+60,+60"
xanchor=fixed
yanchor=fixed
[/action]
[action]
id=cycle-button
ref=minimap-box-botleft
#ref=unit-hp
items=cycle
type=press
image=button_square/button_square_60
auto_tooltip=yes
overlay=icons/action/editor-tool-unit_60
rect="=+1,+2,+60,+60"
[/action]
{STATUS_BOX +2 =+0 +127 +30 terrain-info cycle-button fixed fixed}
{STATUS_BOX = +0 +127 +18 terrain-position terrain-info-box-botleft fixed fixed}
{STATUS_BOX =+2 +2 +72 +72 unit cycle-button fixed fixed}
[menu]
id=menu-main
title= _ "Menu"
image=button_square/button_square_60
items=objectives,statistics,unitlist,statustable,save,savereplay,load,preferences,chatlog,AUTOSAVES,help,stopnetwork,startnetwork,quit,undo,redo,wbexecuteallactions,wbexecuteaction,wbdeleteaction,speak,recruit,recall,showenemymoves,bestenemymoves,wbtoggle,delayshroud,updateshroud
#,endturn
ref=sidebar-panel
font_size=30
rect="=+2,-62,+60,+60"
xanchor=fixed
yanchor=fixed
[/menu]
{STATUS_BOX +4 =+15 +122 +36 tod menu-main fixed fixed}
{STATUS_BOX =-2 +2 +57 +15 gold zoom-default-button fixed fixed}
{STATUS_BOX = =+1 +57 +15 income gold-box-botleft fixed fixed}
{STATUS_BOX = =+1 +57 +15 countdown income-box-botleft fixed fixed}
{STATUS_BOX = =+1 +57 +15 turn countdown-box-botleft fixed fixed}
[label]
id=income-icon
icon=themes/income.png
text= _ "income"
ref=income-box-center
rect="=,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=time-icon
#icon=themes/units.png
icon=themes/sand-clock.png
ref=countdown-box-center
rect="=-2,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[action]
id=end-turn
title= _ "End
Turn"
image=button_square/button_square_60
items=endturn
ref=sidebar-panel
rect="-63,-62,+60,+60"
auto_tooltip=yes
[/action]
#[menu]
# id=actions-menu
# title= _ "Actions"
# image=button_menu/menu_button_copper_H20
# items=undo,redo,wbexecuteallactions,wbexecuteaction,wbdeleteaction,cycle,speak,recruit,recall,showenemymoves,bestenemymoves,wbtoggle,delayshroud,updateshroud,endturn
# rect="+2,=,+100,="
# xanchor=fixed
# yanchor=fixed
#[/menu]
#{COUNTDOWN_THEME}
[menu]
is_context_menu=true
items=wml,undo,redo,wbexecuteaction,wbdeleteaction,wbbumpupaction,wbbumpdownaction,wbsupposedead,describeunit,renameunit,createunit,changeside,killunit,describeterrain,labelteamterrain,labelterrain,clearlabels,speak,continue,recruit,recall,wbtoggle,delayshroud,updateshroud,cycle,endturn
[/menu]
[label]
id=gold-icon
icon=themes/gold.png
text= _ "gold"
ref=gold-box-center
rect="=+0,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[status]
## The size of these rectangles only accommodates hex coordinates
## up to 999.
[position]
id=status-position
#font_size={DEFAULT_FONT_SMALL}
ref=terrain-position-box-center
rect="=+3,=+0,=,="
xanchor=fixed
yanchor=fixed
[/position]
[terrain_info]
id=status-terrain
ref=terrain-info-box-center
rect="=,=-1,=+2,="
xanchor=fixed
yanchor=fixed
[/terrain_info]
# the time of day image
[time_of_day]
id=image-tod
ref=tod-box-center
rect="=-1,=-2,+125,+39"
xanchor=fixed
yanchor=fixed
[/time_of_day]
[tod_stats]
id=tod-stats
font_size={DEFAULT_FONT_SMALL}
rect="-34,=-17,+50,+17"
xanchor=fixed
yanchor=fixed
[/tod_stats]
#put the side playing indicator next to the turn indicator
[side_playing]
id=icon-sideplaying
ref=turn-box-center
#ref=end-turn
rect="=-1,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/side_playing]
# the game status
[turn]
id=turn
font_size={DEFAULT_FONT_SMALL}
rect="-1,=,+40,+12"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/turn]
[gold]
id=gold
font_size={DEFAULT_FONT_SMALL}
#font_size={DEFAULT_FONT_SMALL}
ref=gold-icon
rect="+1,=0,+40,+14"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/gold]
[income]
id=status-income
font_size={DEFAULT_FONT_SMALL}
ref=income-icon
rect="+4,=,+60,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/income]
[report_countdown]
id=report_timeout
font_size={DEFAULT_FONT_SMALL}
ref=time-icon
rect="+2,=,+38,+12"
xanchor=fixed
yanchor=fixed
[/report_countdown]
#[observers]
# id=observers
# font_size={DEFAULT_FONT_SMALL}
# rect="+4,=,+16,+16"
# xanchor=right
# yanchor=fixed
#[/observers]
## unit stats here
[unit_image]
id=unit-image
ref=unit-box-center
rect="=,=,+72,+72"
xanchor=fixed
yanchor=fixed
[/unit_image]
#[unit_traits]
# id=unit-traits
# font_size={DEFAULT_FONT_SMALL}
# rect="=+0,+0,+170,+16"
# xanchor=fixed
# yanchor=fixed
#[/unit_traits]
[unit_name]
id=unit-description
font_size={DEFAULT_FONT_NORMAL}
ref=unit-box-topright
rect="+3,+0,+116,+18"
xanchor=fixed
yanchor=fixed
[/unit_name]
[unit_hp]
id=unit-hp
#font_size={DEFAULT_FONT_NORMAL}
font_size={DEFAULT_FONT_SMALL}
rect="=,+3,+60,+18"
#prefix="HP "
#prefix_literal=" "
xanchor=fixed
yanchor=fixed
[/unit_hp]
[unit_xp]
id=unit-xp
font_size={DEFAULT_FONT_SMALL}
#font_size={DEFAULT_FONT_NORMAL}
rect="=,+0,+60,+18"
#prefix="XP "
#prefix_literal=" "
xanchor=fixed
yanchor=fixed
[/unit_xp]
[unit_moves]
id=unit-moves
font_size={DEFAULT_FONT_SMALL}
#font_size={DEFAULT_FONT_NORMAL}
rect="=,+0,+45,+18"
#prefix="MP "
#prefix= _ "statuspanel^moves"
#prefix_literal=": "
xanchor=fixed
yanchor=fixed
[/unit_moves]
[unit_status]
id=unit-status
font_size={DEFAULT_FONT_SMALL}
rect="+1,=+0,+64,+16"
xanchor=fixed
yanchor=fixed
[/unit_status]
[unit_alignment]
font_size={DEFAULT_FONT_SMALL}
ref=unit-moves
id=unit-alignment
rect="=-10,+0,+45,+18"
xanchor=fixed
yanchor=fixed
[/unit_alignment]
#[unit_defense]
# id=unit-defense
# font_size=16
# rect="=,+0,=,+18"
# prefix="def"
# # prefix= _ "statuspanel^terrain def."
# prefix_literal=": "
# xanchor=fixed
# yanchor=fixed
#[/unit_defense]
[/status]
#{REPLAY_THEME {DEFAULT_FONT_SMALL}}
[/resolution]
[/theme]
#undef DEFAULT_FONT_NORMAL
#undef DEFAULT_FONT_SMALL
#undef DEFAULT_FONT_TINY
#undef DEFAULT_FONT_REALLYTINY