-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy paththeme.cfg
709 lines (669 loc) · 21 KB
/
theme.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
#textdomain wesnoth-Archaic_Era
# I've taken this from default theme...
# 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
[theme]
name=null
[resolution]
width=1
height=1
[/resolution]
[/theme]
[theme]
name=Archaic
#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_FONT320_NORMAL
8 #enddef
#define DEFAULT_FONT320_SMALL
7 #enddef
#define DEFAULT_FONT320_TINY
7 #enddef
{themes/macros.cfg}
[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=theme/top-bg.png
ref=screen
rect="=,=,=,+26"
xanchor=top
yanchor=fixed
[/panel]
[main_map]
id=main-map
rect="=,+0,+882,768"
xanchor=left
yanchor=top
[/main_map]
[main_map_border]
border_size = 0.5
background_image = "terrain/off-map/background.png"
# this image is processed by the terrain matching code so should be
# in the terrains directory and should ommit the 'terrain/' prefix
# and the '.png' suffix
tile_image = "off-map/alpha.png"
corner_image_top_left = "terrain/off-map/fade_corner_top_left.png"
corner_image_bottom_left = "terrain/off-map/fade_corner_bottom_left.png"
# odd means the corner is on a tile with an odd x value,
# the tile is the ingame tile not the odd in C++
corner_image_top_right_odd = "terrain/off-map/fade_corner_top_right_odd.png"
corner_image_top_right_even = "terrain/off-map/fade_corner_top_right_even.png"
corner_image_bottom_right_odd = "terrain/off-map/fade_corner_bottom_right_odd.png"
corner_image_bottom_right_even = "terrain/off-map/fade_corner_bottom_right_even.png"
border_image_left = "terrain/off-map/fade_border_left.png"
border_image_right = "terrain/off-map/fade_border_right.png"
border_image_top_odd = "terrain/off-map/fade_border_top_odd.png"
border_image_top_even = "terrain/off-map/fade_border_top_even.png"
border_image_bottom_odd = "terrain/off-map/fade_border_bottom_odd.png"
border_image_bottom_even = "terrain/off-map/fade_border_bottom_even.png"
[/main_map_border]
# rightside panel
[panel]
id=top-right-panel
image=theme/rightside.png
rect="+0,=+0,1024,+284"
xanchor=right
yanchor=fixed
[/panel]
[panel]
id=middle-right-panel
image=theme/rightside-bg.png
rect="=,+0,=,+421"
xanchor=right
yanchor=top
[/panel]
[panel]
id=bottom-right-panel
image=theme/rightside-bottom.png
rect="=,+0,=,768"
xanchor=right
yanchor=bottom
[/panel]
[menu]
id=menu-main
title= _ "Menu"
image=lite
items=objectives,statistics,unitlist,statustable,save,savereplay,savemap,load,preferences,chatlog,AUTOSAVES,help,stopnetwork,startnetwork,quit
ref=top-panel
rect="=+3,=+1,+100,=-4"
xanchor=fixed
yanchor=fixed
[/menu]
[menu]
id=actions-menu
title= _ "Actions"
image=lite
items=undo,redo,wbexecuteallactions,wbexecuteaction,wbdeleteaction,cycle,speak,recruit,recall,showenemymoves,bestenemymoves,wbtoggle,delayshroud,updateshroud,endturn
rect="+2,=,+100,="
xanchor=fixed
yanchor=fixed
[/menu]
[menu]
is_context_menu=true
items=wml,undo,redo,wbexecuteaction,wbdeleteaction,wbbumpupaction,wbbumpdownaction,describeunit,renameunit,createunit,changeside,labelteamterrain,labelterrain,clearlabels,speak,continue,recruit,recall,wbtoggle,delayshroud,updateshroud,cycle,endturn
[/menu]
[mini_map]
id=mini-map
ref=top-right-panel
rect="=+10,=+7,=-7,+143"
xanchor=right
yanchor=fixed
[/mini_map]
[menu]
id=button-endturn
title= _ "End Turn"
title2= _ "End Scenario"
items=endturn
ref=bottom-right-panel
rect="=+17,=+7,+80,+20"
xanchor=right
yanchor=bottom
[/menu]
[panel]
id=turn-panel
image=theme/status-bg.png
ref=actions-menu
rect="+5,=+1,+80,+19"
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=gold-panel
image=theme/status-bg.png
rect="+5,=,+71,="
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=villages-panel
image=theme/status-bg.png
rect="+5,=,+71,="
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=units-panel
image=theme/status-bg.png
rect="+5,=,+71,="
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=upkeep-panel
image=theme/status-bg.png
rect="+5,=,+90,="
xanchor=fixed
yanchor=fixed
[/panel]
[panel]
id=income-panel
image=theme/status-bg.png
rect="+5,=,+80,="
xanchor=fixed
yanchor=fixed
[/panel]
{COUNTDOWN_THEME}
# HP/XP
[label]
id=label-hp
font_size={DEFAULT_FONT_TINY}
text= _ "HP"
ref=top-right-panel
rect="=+84,=+209,+54,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=label-xp
font_size={DEFAULT_FONT_TINY}
text= _ "XP"
# FIXME: should be ref=unit-hp
rect="=,+14,=,+12"
xanchor=right
yanchor=fixed
[/label]
[label]
id=gold-icon
icon=themes/gold.png
text= _ "gold"
ref=gold-panel
rect="=+5,=+1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=villages-icon
icon=themes/villages.png
text= _ "villages"
ref=villages-panel
rect="=+5,=+1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=units-icon
icon=themes/units.png
text= _ "units"
ref=units-panel
rect="=+5,=+1,+17,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=upkeep-icon
icon=themes/upkeep.png
text= _ "upkeep"
ref=upkeep-panel
rect="=+5,=+1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[label]
id=income-icon
icon=themes/income.png
text= _ "income"
ref=income-panel
rect="=+5,=+1,+25,+17"
xanchor=fixed
yanchor=fixed
[/label]
[status]
# the time of day image
[time_of_day]
id=image-tod
ref=top-right-panel
rect="=+10,=+159,=-7,+39"
xanchor=right
yanchor=fixed
[/time_of_day]
#put the side playing indicator next to the turn indicator
[side_playing]
id=icon-sideplaying
ref=turn-panel
rect="=+3,=+2,+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,=,+40,+16"
xanchor=fixed
yanchor=fixed
prefix="" #wmllint: ignore
prefix_literal=""
[/income]
{COUNTDOWN_THEME_STATUS {DEFAULT_FONT_SMALL}}
# This panel encloses the location information displays and the
# observer icon. This separate container is used so that we can
# make the terrain name display stretch to fill all available space
# so that the long strings don't get cut off as easily.
[panel]
id=terrain-panel
rect="+0,=,1024,="
xanchor=left
yanchor=fixed
[/panel]
# The size of these rectangles only accommodates hex coordinates
# up to 99. If either is over that maximum the movement cost will
# be pushed off the right end.
[position]
id=status-position
font_size={DEFAULT_FONT_SMALL}
ref=terrain-panel
rect="=+15,=,+95,="
xanchor=fixed
yanchor=fixed
[/position]
[terrain]
id=status-terrain
font_size={DEFAULT_FONT_SMALL}
ref=terrain-panel
rect="=+115,=,=-24,="
xanchor=left
yanchor=fixed
[/terrain]
[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=top-right-panel
rect="=+9,=+215,+72,+72"
xanchor=right
yanchor=fixed
[/unit_image]
[unit_name]
id=unit-description
font_size={DEFAULT_FONT_NORMAL}
ref=middle-right-panel
rect="=+9,=+3,=-2,+18"
xanchor=right
yanchor=fixed
[/unit_name]
[unit_type]
id=unit-type
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_type]
[unit_race]
id=unit-race
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
prefix= " "
xanchor=right
yanchor=fixed
[/unit_race]
[unit_level]
id=unit-level
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
prefix= _ "statuspanel^level"
prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_level]
[unit_alignment]
id=unit-alignment
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_alignment]
[unit_traits]
id=unit-traits
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_traits]
[unit_abilities]
id=unit-abilities
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
xanchor=right
yanchor=fixed
[/unit_abilities]
[unit_moves]
id=unit-moves
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=+2,+16"
prefix= _ "statuspanel^moves"
prefix_literal=": "
xanchor=right
yanchor=fixed
[/unit_moves]
[unit_defense]
id=unit-defense
font_size={DEFAULT_FONT_SMALL}
rect="=,+0,=,+16"
prefix= _ "statuspanel^terrain def."
prefix_literal=": "
xanchor=right
yanchor=fixed
[/unit_defense]
[unit_hp]
id=unit-hp
font_size={DEFAULT_FONT_SMALL}
ref=label-hp
rect="=,+0,+54,+14"
#prefix=hp
#prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_hp]
[unit_xp]
id=unit-xp
font_size={DEFAULT_FONT_SMALL}
ref=label-xp
rect="=,+0,+54,+14"
#prefix=xp
#prefix_literal=" "
xanchor=right
yanchor=fixed
[/unit_xp]
# 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_side]
# id=unit-side
# font_size={DEFAULT_FONT_SMALL}
# ref=unit-xp
# rect="=,+0,=,+16"
# xanchor=right
# yanchor=fixed
# [/unit_side]
[unit_weapons]
id=unit-weapons
font_size={DEFAULT_FONT_SMALL}
ref=unit-defense
rect="=+0,+0,=,730"
xanchor=right
yanchor=top
[/unit_weapons]
[unit_status]
id=unit-status
font_size={DEFAULT_FONT_SMALL}
ref=unit-xp
rect="=+1,+3,=,+16"
xanchor=right
yanchor=fixed
[/unit_status]
[/status]
{REPLAY_THEME {DEFAULT_FONT_SMALL}}
[/resolution]
# do I need to worry about this?
# make sure not to use those if tinygui is set, otherwise it will look strange (it will look strange starting at 1024x768 this way)
#ifndef TINY
[partialresolution]
id=800x600
inherits=1024x768
width=800
height=600
# some changes to the display to have stuff look better on 800x600
# using a right pane with a smaller minimap to achieve this
# use backgound with 40px less for minimap
[change]
id=top-right-panel
image=themes/rightside-small.png
rect="+0,=+0,1024,+244"
[/change]
# increase size in middle panel since minimap is 40px smaller
# give it additional 10px and move the end-turn button down
[change]
id=middle-right-panel
rect="=,+0,=,+471"
[/change]
# reduce vertical size of minimap by 40px
[change]
id=mini-map
rect="=+10,=+7,=-7,+103"
[/change]
# shift tod image up by 40px rel to 768px
[change]
id=image-tod
rect="=+10,=+119,=-7,+39"
[/change]
# fixing this one fixes HP/XP/unit status
[change]
id=label-hp
font_size={DEFAULT_FONT_TINY}
rect="=+84,=+169,+54,+12"
[/change]
# shift unit image up by 40px rel to 768px
[change]
id=unit-image
rect="=+9,=+175,+72,+72"
[/change]
[change]
id=button-endturn
rect="=+17,=+3,+80,+20"
[/change]
# adjust allowed heigth for displaying weapon stuff
[change]
id=unit-weapons
ref=unit-defense
font_size={DEFAULT_FONT_SMALL}
rect="=+0,+0,=,738"
[/change]
# fix top pane at 800x600
[change]
id=turn-panel
rect="+5,=+1,+80,+19"
[/change]
[change]
id=gold-panel
rect="+5,=,+61,="
[/change]
[change]
id=villages-panel
rect="+5,=,+61,="
[/change]
[change]
id=units-panel
rect="+5,=,+55,="
[/change]
[change]
id=upkeep-panel
rect="+5,=,+80,="
[/change]
[change]
id=income-panel
rect="+5,=,+55,="
[/change]
[change]
id=turn
rect="+4,=,+55,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=gold
rect="+4,=,+45,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=villages
rect="+4,=,+45,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=num-units
rect="+4,=,+45,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=status-upkeep
rect="+4,=,+40,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=status-income
rect="+4,=,+30,+16"
font_size={DEFAULT_FONT_TINY}
[/change]
[change]
id=timeout-panel
rect="+5,=,+55,="
[/change]
[change]
id=report_timeout
font_size={DEFAULT_FONT_TINY}
rect="+0,=,+35,+20"
[/change]
[change]
id=status-position
rect="=+5,=,+80,="
font_size={DEFAULT_FONT_TINY}
[/change]
[/partialresolution]
[partialresolution]
id=800x480
inherits=800x600
width=800
height=480
[remove]
id=unit-race
[/remove]
# 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="=+9,=+3,=-2,+16"
[/change]
[change]
id=unit-type
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+11"
[/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="=+72,+0,=,+11"
[/change]
[change]
id=unit-alignment
font_size={DEFAULT_FONT_REALLYTINY}
rect="=-72,=,=,+11"
[/change]
[change]
id=unit-traits
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+11"
[/change]
[change]
id=unit-abilities
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+11"
[/change]
[change]
id=unit-moves
font_size={DEFAULT_FONT_REALLYTINY}
rect="=,+0,=,+11"
[/change]
[remove]
id=unit-defense
[/remove]
[change]
id=unit-weapons
ref=unit-moves
font_size={DEFAULT_FONT_REALLYTINY}
[/change]
[/partialresolution]
#endif
[/theme]