/
default.cfg
738 lines (692 loc) · 22.3 KB
/
default.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
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
#textdomain wesnoth
# wmlscope: set export=no
# some information about how theming works (especially the coordinates
# defined with rect=):
# https://www.wesnoth.org/forum/viewtopic.php?p=213708#213708
#define DEFAULT_FONT_NORMAL
17#enddef
#define DEFAULT_FONT_SMALL
15#enddef
#define DEFAULT_FONT_TINY
13#enddef
#define DEFAULT_FONT_REALLYTINY
11#enddef
#define DEFAULT_FONT_NORMAL_HEIGHT
22#enddef
#define DEFAULT_FONT_SMALL_HEIGHT
19#enddef
#define DEFAULT_FONT_TINY_HEIGHT
17#enddef
#define DEFAULT_FONT_REALLYTINY_HEIGHT
15#enddef
#define DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER
13#enddef
#define FONT_RGB_LEVEL1
245,230,193#enddef
[theme]
id=Default
name= _ "theme^Default"
description= _ "The default theme"
[resolution]
id=1024x768
width=1024
height=768
[screen]
# this is only useful as a ref for other rects
id=screen
rect="0,0,1024,768"
[/screen]
[panel]
id=top-panel
image=themes/classic/menubar.png
ref=screen
rect="=,=,+842,+27"
xanchor=top
yanchor=fixed
[/panel]
[panel]
id=map-area
ref=top-panel
rect="=,+0,+842,768"
xanchor=left
yanchor=top
[/panel]
[main_map]
id=main-map
ref=map-area
rect="=,=,=,="
xanchor=left
yanchor=top
[/main_map]
{MAIN_MAP_BORDER}
# rightside panel
[panel]
id=sidebar-panel
image=themes/classic/sidebar.png
rect="+0,0,1024,768"
xanchor=right
yanchor=top
[/panel]
{MINIMAP_THEME}
{STATUS_BOX =+0 +3 +122 +36 tod terrain-description-box-botleft right fixed}
{STATUS_BOX =+0 +5 +72 +72 unit tod-box-botleft right fixed}
[menu]
id=menu-main
title= _ "Menu"
image=button_menu/menu_button_copper_H20
items=objectives,achievements,statustable,statistics,unitlist,load,menu-autosaves,menu-quickreplay,save,savereplay,savemap,chatlog,preferences,help,stopnetwork,startnetwork,surrender,quit,quit-to-desktop
ref=top-panel
rect="=,=+1,+100,=-4"
xanchor=fixed
yanchor=fixed
[/menu]
[menu]
title= _ "Load Turn..."
id=menu-autosaves
button=false
items=AUTOSAVES,help-about-saveload
[/menu]
[menu]
title= _ "Replay Turn..."
id=menu-quickreplay
button=false
items=QUICKREPLAY,help-about-saveload
[/menu]
[menu]
id=actions-menu
title= _ "Actions"
image=button_menu/menu_button_copper_H20
items=undo,redo,wbexecuteallactions,wbexecuteaction,wbdeleteaction,wbtoggle,cycle,speak,recruit,recall,showenemymoves,bestenemymoves,delayshroud,updateshroud,label_settings,command
rect="+0,=,+100,="
xanchor=fixed
yanchor=fixed
[/menu]
{STATUS_BOX_BORDERLESS +5 =+0 +95 +15 turn actions-menu fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +75 +15 gold turn-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +70 +15 villages gold-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +65 +15 units villages-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +85 +15 upkeep units-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +60 +15 income upkeep-box-topright fixed fixed}
{STATUS_BOX_BORDERLESS +3 =+0 +85 +15 battery income-box-topright fixed fixed}
{COUNTDOWN_THEME}
[menu]
is_context_menu=true
# Basic commands
items="continue,recruit,recall,wml,undo,redo," +
# Whiteboard commands
"wbexecuteaction,wbdeleteaction,wbbumpupaction,wbbumpdownaction,wbsupposedead," +
# Information
"describeterrain,describeunit,renameunit," +
# Zoom
"zoomin,zoomout,zoomdefault," +
# Debug commands
"createunit,changeside,killunit,teleportunit," +
# Labels
"labelterrain,clearlabels," +
# Shroud updates
"delayshroud,updateshroud"
[/menu]
[action]
id=button-endturn
image=large-button
title= _ "End Turn"
title2= _ "End Scenario"
items=endturn
ref=sidebar-panel
rect="-173,-50,+168,+44"
xanchor=right
yanchor=bottom
[/action]
# HP/XP
[label]
id=label-hp
font_size={DEFAULT_FONT_TINY}
text= _ "HP"
ref=unit-box-topright
rect="+4,=-1,+60,+14"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-xp
font_size={DEFAULT_FONT_TINY}
text= _ "XP"
rect="=,+14,+65,+14"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-mp
font_size={DEFAULT_FONT_TINY}
text= _ "MP"
rect="=,+14,=,+14"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-def
font_size={DEFAULT_FONT_TINY}
text= _ "def"
rect="+1,=,+25,+14"
xanchor=right
yanchor=fixed
[/label]
[label]
id=gold-icon
icon=themes/gold.png
ref=gold-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=villages-icon
icon=themes/villages.png
ref=villages-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=units-icon
icon=themes/units.png
ref=units-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=upkeep-icon
icon=themes/upkeep.png
ref=upkeep-box-center
rect="=+1,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=income-icon
icon=themes/income.png
ref=income-box-center
rect="=+1,=-1,+25,+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-info-box-center
rect="=+2,=-2,+95,+16"
xanchor=right
yanchor=fixed
[/position]
[terrain_info]
id=status-terrain
font_size={DEFAULT_FONT_SMALL}
rect="+2,=+1,+70,+16"
xanchor=right
yanchor=fixed
[/terrain_info]
[terrain]
id=terrain-description
ref=terrain-description-box-center
rect="=+1,=-1,+165,+16"
font_size={DEFAULT_FONT_TINY}
xanchor=right
yanchor=fixed
[/terrain]
# the time of day image
[time_of_day]
id=image-tod
ref=tod-box-center
rect="=-1,=-2,+125,+39"
xanchor=right
yanchor=fixed
[/time_of_day]
[tod_stats]
id=tod-stats
font_size={DEFAULT_FONT_SMALL}
rect="+3,=+8,+64,+{DEFAULT_FONT_NORMAL_HEIGHT}"
xanchor=right
yanchor=fixed
[/tod_stats]
# TODO think about alignment right of tod image
# [unit_alignment]
# ref=tod-stats
# id=unit-alignment
# font_size={DEFAULT_FONT_SMALL}
# rect="=,+0,=,+16"
# xanchor=right
# yanchor=fixed
# [/unit_alignment]
[unit_status]
id=unit-status
font_size={DEFAULT_FONT_SMALL}
ref=label-hp
rect="+0,=-4,+32,+16"
xanchor=right
yanchor=fixed
[/unit_status]
#put the side playing indicator next to the turn indicator
[side_playing]
id=icon-sideplaying
ref=turn-box-center
rect="=+1,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/side_playing]
# the game status
[turn]
id=turn
font_size={DEFAULT_FONT_SMALL}
rect="+4,=-2,+65,+16"
xanchor=fixed
yanchor=fixed
[/turn]
[gold]
id=gold
font_size={DEFAULT_FONT_SMALL}
ref=gold-icon
rect="+4,=-2,+55,+16"
xanchor=fixed
yanchor=fixed
[/gold]
[villages]
id=villages
font_size={DEFAULT_FONT_SMALL}
ref=villages-icon
rect="+4,=-2,+55,+16"
xanchor=fixed
yanchor=fixed
[/villages]
[num_units]
id=num-units
font_size={DEFAULT_FONT_SMALL}
ref=units-icon
rect="+4,=-2,+55,+16"
xanchor=fixed
yanchor=fixed
[/num_units]
[upkeep]
id=status-upkeep
font_size={DEFAULT_FONT_SMALL}
ref=upkeep-icon
rect="+4,=-2,+50,+16"
xanchor=fixed
yanchor=fixed
[/upkeep]
[income]
id=status-income
font_size={DEFAULT_FONT_SMALL}
ref=income-icon
rect="+4,=-2,+60,+16"
xanchor=fixed
yanchor=fixed
[/income]
[battery]
id=status-battery
font_size={DEFAULT_FONT_SMALL}
ref=battery-box-center
rect="=+5,=-3,+80,+18"
xanchor=fixed
yanchor=fixed
[/battery]
{COUNTDOWN_THEME_STATUS {DEFAULT_FONT_SMALL}}
[observers]
id=observers
font_size={DEFAULT_FONT_SMALL}
ref=sidebar-panel
rect="=-22,=+4,+16,+16" # x = 16 + 6
xanchor=right
yanchor=fixed
[/observers]
#unit stats here
[unit_image]
id=unit-image
ref=unit-box-center
rect="=+0,=+0,+72,+72"
xanchor=right
yanchor=fixed
[/unit_image]
[unit_name]
id=unit-description
font_size={DEFAULT_FONT_NORMAL}
ref=unit-box-botleft
rect="=+3,+5,+128,+20"
xanchor=right
yanchor=fixed
[/unit_name]
[unit_side]
id=unit-side
font_size={DEFAULT_FONT_SMALL}
rect="+0,=,+50,+16"
xanchor=right
yanchor=fixed
[/unit_side]
[unit_type]
ref=unit-description
id=unit-type
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,+140,+18"
xanchor=right
yanchor=fixed
[/unit_type]
[unit_level]
id=unit-level
font_size={DEFAULT_FONT_SMALL}
rect="+0,=+0,+50,+16"
prefix= _ "statuspanel^lvl"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_level]
[unit_alignment]
prefix_literal=" "
font_rgb={FONT_RGB_LEVEL1}
ref=unit-type
id=unit-alignment
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=+50,+18"
xanchor=right
yanchor=fixed
[/unit_alignment]
[unit_abilities]
prefix_literal=" "
# prefix_literal=" "
font_rgb={FONT_RGB_LEVEL1}
id=unit-abilities
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+18"
xanchor=right
yanchor=fixed
[/unit_abilities]
[unit_race]
id=unit-race
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+18"
xanchor=right
yanchor=fixed
[/unit_race]
[unit_traits]
#ref=unit-type
id=unit-traits
prefix_literal=" "
font_size={DEFAULT_FONT_SMALL}
font_rgb={FONT_RGB_LEVEL1}
rect="=,+0,1022,+18"
xanchor=right
yanchor=fixed
[/unit_traits]
[unit_vision]
id=unit-vision
font_size={DEFAULT_FONT_TINY}
ref=label-xp
rect="+0,=,=+60,+40"
xanchor=right
yanchor=fixed
[/unit_vision]
[unit_hp]
id=unit-hp
font_size={DEFAULT_FONT_TINY}
ref=label-hp
rect="=,+0,+94,+14"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_hp]
[unit_xp]
id=unit-xp
font_size={DEFAULT_FONT_TINY}
ref=label-xp
rect="=,+0,+94,+14"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_xp]
[unit_moves]
ref=label-mp
id=unit-moves
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=-5,+14"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_moves]
[unit_defense]
ref=label-def
id=unit-defense
font_size={DEFAULT_FONT_TINY}
rect="=-5,+0,+30,+14"
xanchor=right
yanchor=fixed
[/unit_defense]
# current position not usable, overlays with the status indication (like slow)
# please find a better place (yes, I know that this is barely possible...)
[unit_weapons]
id=unit-weapons
font_size={DEFAULT_FONT_SMALL}
ref=unit-traits
rect="=+0,+12,=,705"
xanchor=right
yanchor=top
[/unit_weapons]
[/status]
# If the device has no battery, remove the battery charge indicator
# and move the timer to its position.
[no_battery]
[remove]
id=battery
[/remove]
# Give the battery box the same dimensions as the countdown box
{CHANGE_STATUS_BOX +3 =+0 +90 +15 battery income-box-topright}
[change]
id=report_countdown
ref=battery-box-center
rect="=+5,=-3,+80,+18"
[/change]
[/no_battery]
{REPLAY_THEME {DEFAULT_FONT_SMALL}}
[/resolution]
[partialresolution]
id=1024x600
inherits=1024x768
width=1024
height=600
{MINIMAP_THEME_600}
[change]
id=screen
rect="0,0,1024,600"
[/change]
[change]
id=sidebar-panel
rect="+0,0,1024,600"
[/change]
[change]
id=map-area
rect="=,+0,+842,600"
[/change]
[change]
id=label-hp
font_size={DEFAULT_FONT_REALLYTINY}
rect="+4,=-1,+60,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=label-xp
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+14,+65,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=label-mp
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+14,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=label-def
font_size={DEFAULT_FONT_REALLYTINY}
rect="+1,=,+25,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-hp
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,+94,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-xp
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-moves
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=-5,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-defense
font_size={DEFAULT_FONT_REALLYTINY}
rect="=-5,+0,+30,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-description
font_size={DEFAULT_FONT_SMALL}
rect="=,+1,+128,+{DEFAULT_FONT_SMALL_HEIGHT}"
[/change]
[change]
id=unit-type
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-level
font_size={DEFAULT_FONT_TINY}
rect="+0,=+0,+50,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-alignment
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-traits
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-abilities
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-vision
font_size={DEFAULT_FONT_REALLYTINY}
rect="+0,=,=+60,+{DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER}"
[/change]
[change]
id=unit-race
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[change]
id=unit-weapons
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,740"
[/change]
[change]
id=button-endturn
image=button_normal/button_H22
rect="-140,-24,+80,+22"
[/change]
[/partialresolution]
[partialresolution]
id=800x600
inherits=1024x600
width=800
height=600
[change]
id=screen
rect="0,0,800,600"
[/change]
[change]
id=top-panel
rect="=,=,+618,+27"
[/change]
[change]
id=sidebar-panel
rect="+0,0,800,600"
[/change]
[change]
id=map-area
rect="=,+0,+618,600"
[/change]
# fix top pane at 800x600
{CHANGE_STATUS_BOX +3 =+0 +85 +15 turn actions-menu}
{CHANGE_STATUS_BOX +1 =+0 +56 +15 gold turn-box-topright}
{CHANGE_STATUS_BOX +1 =+0 +51 +15 villages gold-box-topright}
{CHANGE_STATUS_BOX +1 =+0 +45 +15 units villages-box-topright}
{CHANGE_STATUS_BOX +1 =+0 +60 +15 upkeep units-box-topright}
{CHANGE_STATUS_BOX +1 =+0 +55 +15 income upkeep-box-topright}
# Actually the countdown box at this resolution since the battery is
# never displayed below 1152 px horizontal.
# HACK: 3 px shift downwards to align the text baseline to the rest
# because we can't change the rects in [change] when the [no_battery]
# rule in the the main resolution exists. Currently this hack isn't a
# cause for concern, but if the status boxes regain borders/backgrounds
# we are going to need a different solution.
{CHANGE_STATUS_BOX +1 =+3 +75 +15 battery income-box-topright}
[change]
id=menu-main
image=button_menu/menu_button_small_copper_H20
rect="=,=+1,+55,=-4"
[/change]
[change]
id=actions-menu
image=button_menu/menu_button_small_copper_H20
rect="+0,=,+55,="
[/change]
[change]
id=turn
rect="+4,=+1,+65,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=gold
rect="+4,=+1,+45,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=villages
rect="+4,=+1,+45,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=num-units
rect="+4,=+1,+45,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=status-upkeep
rect="+4,=+1,+40,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=status-income
rect="+4,=+1,+50,+{DEFAULT_FONT_TINY_HEIGHT}"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=report_countdown
font_size={DEFAULT_FONT_TINY}
[/change]
[/partialresolution]
[/theme]
#undef DEFAULT_FONT_NORMAL
#undef DEFAULT_FONT_SMALL
#undef DEFAULT_FONT_TINY
#undef DEFAULT_FONT_REALLYTINY
#undef DEFAULT_FONT_NORMAL_HEIGHT
#undef DEFAULT_FONT_SMALL_HEIGHT
#undef DEFAULT_FONT_TINY_HEIGHT
#undef DEFAULT_FONT_REALLYTINY_HEIGHT
#undef DEFAULT_FONT_REALLYTINY_HEIGHT_SHORTER
#undef FONT_RGB_LEVEL1