-
-
Notifications
You must be signed in to change notification settings - Fork 991
/
default.cfg
690 lines (647 loc) · 20.9 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
#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
#define DEFAULT_FONT_NORMAL_HEIGHT
18#enddef
#define DEFAULT_FONT_SMALL_HEIGHT
16#enddef
#define DEFAULT_FONT_TINY_HEIGHT
14#enddef
#define DEFAULT_FONT_REALLYTINY_HEIGHT
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="=,=,=,+27"
xanchor=top
yanchor=fixed
[/panel]
[main_map]
id=main-map
rect="=,+0,+842,768"
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_blank
items=objectives,statistics,unitlist,statustable,save,savereplay,savemap,load,preferences,chatlog,menu-autosaves,help,stopnetwork,startnetwork,quit,quit-to-desktop
ref=top-panel
rect="=+3,=+1,+100,=-4"
xanchor=fixed
yanchor=fixed
[/menu]
[menu]
title= _ "Back to..."
id=menu-autosaves
button=false
items=AUTOSAVES
[/menu]
[menu]
id=actions-menu
title= _ "Actions"
image=button_menu/menu_blank
items=undo,redo,wbexecuteallactions,wbexecuteaction,wbdeleteaction,wbtoggle,cycle,speak,recruit,recall,showenemymoves,bestenemymoves,delayshroud,updateshroud,label_settings,command
rect="+2,=,+100,="
xanchor=fixed
yanchor=fixed
[/menu]
{STATUS_BOX_BORDERLESS +5 =+0 +75 +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 +85 +15 income upkeep-box-topright fixed fixed}
{COUNTDOWN_THEME}
[menu]
is_context_menu=true
items=wml,undo,redo,wbexecuteaction,wbdeleteaction,wbbumpupaction,wbbumpdownaction,wbsupposedead,describeterrain,describeunit,renameunit,createunit,changeside,killunit,labelterrain,clearlabels,continue,recruit,recall,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,+30,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-xp
font_size={DEFAULT_FONT_TINY}
text= _ "XP"
rect="=,+14,+60,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-mp
font_size={DEFAULT_FONT_TINY}
text= _ "MP"
rect="=,+14,=,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-def
font_size={DEFAULT_FONT_TINY}
text= _ "def"
rect="+1,=,=,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=gold-icon
icon=themes/gold.png
text= _ "gold"
ref=gold-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=villages-icon
icon=themes/villages.png
text= _ "villages"
ref=villages-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=units-icon
icon=themes/units.png
text= _ "units"
ref=units-box-center
rect="=+1,=-1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=upkeep-icon
icon=themes/upkeep.png
text= _ "upkeep"
ref=upkeep-box-center
rect="=+1,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=income-icon
icon=themes/income.png
text= _ "income"
ref=income-box-center
rect="=+1,=-1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[status]
[zoom_level]
id=zoom-level
ref=map-zoom-slider
rect="=-25,=-1,+117,+18"
xanchor=right
yanchor=fixed
font_size=8
[/zoom_level]
# 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,=+0,+95,+16"
xanchor=right
yanchor=fixed
[/position]
[terrain_info]
id=status-terrain
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_REALLYTINY}
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_NORMAL}
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="+10,=-4,1022,+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,=,+55,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/turn]
[gold]
id=gold
font_size={DEFAULT_FONT_SMALL}
ref=gold-icon
rect="+4,=,+55,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/gold]
[villages]
id=villages
font_size={DEFAULT_FONT_SMALL}
ref=villages-icon
rect="+4,=,+55,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/villages]
[num_units]
id=num-units
font_size={DEFAULT_FONT_SMALL}
ref=units-icon
rect="+4,=,+55,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/num_units]
[upkeep]
id=status-upkeep
font_size={DEFAULT_FONT_SMALL}
ref=upkeep-icon
rect="+4,=,+50,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/upkeep]
[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]
{COUNTDOWN_THEME_STATUS {DEFAULT_FONT_SMALL}}
[observers]
id=observers
font_size={DEFAULT_FONT_SMALL}
rect="+15,=,+16,+{DEFAULT_FONT_SMALL_HEIGHT}"
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,+18"
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,+16"
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= " "
font_rgb={FONT_RGB_LEVEL1}
ref=unit-type
id=unit-alignment
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_alignment]
[unit_abilities]
prefix= " "
# prefix_literal=" "
font_rgb={FONT_RGB_LEVEL1}
id=unit-abilities
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_abilities]
[unit_race]
id=unit-race
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_race]
[unit_traits]
#ref=unit-type
id=unit-traits
prefix= " "
font_size={DEFAULT_FONT_SMALL}
font_rgb={FONT_RGB_LEVEL1}
rect="=,+0,1022,+16"
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_SMALL}
ref=label-hp
rect="=,+0,+94,+14"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_hp]
[unit_xp]
id=unit-xp
font_size={DEFAULT_FONT_SMALL}
ref=label-xp
rect="=,+0,=,+14"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_xp]
[unit_moves]
ref=label-mp
id=unit-moves
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_moves]
[unit_defense]
ref=label-def
id=unit-defense
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,+30,+16"
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]
{REPLAY_THEME {DEFAULT_FONT_SMALL}}
[/resolution]
[partialresolution]
id=1024x600
inherits=1024x768
width=1024
height=600
{MINIMAP_THEME_600}
[change]
id=unit-description
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,+140,+{DEFAULT_FONT_SMALL_HEIGHT}"
[/change]
[change]
id=unit-type
font_size={DEFAULT_FONT_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
# # # placing the unit level right of the alignment
# # # doing it the other way around leads to a strange problem sometimes having the alingment not being displayed
# # # this does not happen with this order
[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_TINY}
rect="=,+0,=,+{DEFAULT_FONT_TINY_HEIGHT}"
[/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
# fix top pane at 800x600
{CHANGE_STATUS_BOX +3 =+0 +55 +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}
[change]
id=menu-main
image=button_menu/menu_button_small_copper_H20
rect="=+3,=+1,+55,=-4"
[/change]
[change]
id=actions-menu
image=button_menu/menu_button_small_copper_H20
rect="+2,=,+55,="
[/change]
[change]
id=turn
rect="+4,=+1,+55,+{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=timeout-panel
rect="+5,=,+75,="
[/change]
[change]
id=report_timeout
font_size={DEFAULT_FONT_TINY}
rect="+0,=,+55,+{DEFAULT_FONT_TINY_HEIGHT}"
[/change]
[/partialresolution]
[partialresolution]
id=800x480
inherits=800x600
width=800
height=480
{REMOVE_STATUS_BOX tod}
{CHANGE_STATUS_BOX = +5 +72 +72 unit terrain-description-box-botleft}
# use smaller fonts to display things correctly when using a vertical resolution smaller than 600px
[change]
id=unit-description
font_size={DEFAULT_FONT_SMALL}
rect="=+3,=+3,1022,+{DEFAULT_FONT_SMALL_HEIGHT}"
[/change]
[change]
id=unit-type
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
# # # placing the unit level right of the alignment
# # # doing it the other way around leads to a strange problem sometimes having the alingment not being displayed
# # # this does not happen with this order
[change]
id=unit-level
font_size={DEFAULT_FONT_REALLYTINY}
rect="+0,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
[change]
id=unit-race
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
[change]
id=unit-alignment
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
[change]
id=unit-traits
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
[change]
id=unit-abilities
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+{DEFAULT_FONT_REALLYTINY_HEIGHT}"
[/change]
[change]
id=unit-weapons
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,740"
#rect="=+0,+0,=,504"
[/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 FONT_RGB_LEVEL1