-
-
Notifications
You must be signed in to change notification settings - Fork 990
/
scroll_label_default.cfg
123 lines (81 loc) · 1.91 KB
/
scroll_label_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
#textdomain wesnoth-lib
###
### Definition of a scroll label.
###
#define _GUI_RESOLUTION RESOLUTION DEFINITION FONT_SIZE FONT_STYLE FONT_COLOR_ENABLED FONT_COLOR_DISABLED
[resolution]
{RESOLUTION}
min_width = 0
min_height = 0
default_width = 0
default_height = 0
max_width = 0
max_height = 0
text_font_size = {FONT_SIZE}
text_font_style = {FONT_STYLE}
[state_enabled]
[draw]
[/draw]
[/state_enabled]
[state_disabled]
[draw]
[/draw]
[/state_disabled]
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = "true" # needed ?
vertical_grow = "true" # needed ?
[grid]
id = "_content_grid"
[row]
[column]
border = "right,bottom" # between the text and the scrollbars
border_size = 3 # intentionally smaller than normal
horizontal_grow = "true"
vertical_grow = "true"
[label]
id = "_label"
definition = {DEFINITION}
[/label]
[/column]
[/row]
[/grid]
[/column]
[column]
{GUI__VERTICAL_SCROLLBAR_GRID}
[/column]
[/row]
[row]
[column]
{GUI__HORIZONTAL_SCROLLBAR_GRID}
[/column]
[column]
[spacer]
[/spacer]
[/column]
[/row]
[/grid]
[/resolution]
#enddef
#define _GUI_DEFINITION ID DESCRIPTION DEFINITION
[scroll_label_definition]
id = {ID}
description = {DESCRIPTION}
{_GUI_RESOLUTION
({GUI_NORMAL__RESOLUTION})
({DEFINITION})
({GUI_FONT_SIZE_DEFAULT})
()
({GUI__FONT_COLOR_ENABLED__DEFAULT})
({GUI__FONT_COLOR_DISABLED__DEFAULT})
}
[/scroll_label_definition]
#enddef
{_GUI_DEFINITION "default" "The default scroll label." "default"}
{_GUI_DEFINITION "default_large" "Large font size scroll label." "default_large"}
{_GUI_DEFINITION "default_small" "Small font size scroll label." "default_small"}
#undef _GUI_DEFINITION
#undef _GUI_RESOLUTION