-
-
Notifications
You must be signed in to change notification settings - Fork 988
/
chatbox.cfg
183 lines (151 loc) · 3.04 KB
/
chatbox.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
#textdomain wesnoth-lib
###
### Definition of a chat area.
###
#define _GUI_ROOM_TAB_BAR
[horizontal_listbox]
id = "room_list"
definition = "default"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "never"
[header]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "room"
definition = "default"
label = _ "Rooms"
[/label]
[/column]
[/row]
[/header]
[list_definition]
[row]
[column]
horizontal_grow = true
[toggle_panel]
definition = "default"
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "room"
definition = "default_small"
[/label]
[/column]
[column]
grow_factor = 0
border = "left"
border_size = 5
[image]
definition = "default"
id = "pending_messages"
label = "lobby/sort-friend.png"
tooltip = _"Messages waiting"
[/image]
[/column]
[column]
grow_factor = 0
horizontal_alignment = "right"
border = "right"
border_size = 5
[button]
id = "close_window"
definition = "close"
label = _ "Close"
[/button]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/horizontal_listbox]
#enddef
#define _GUI_CHATLOG
[multi_page]
id = "chat_log_container"
definition = "default"
horizontal_scrollbar_mode = "never"
[page_definition]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_grow = true
border = "left,right"
border_size = 5
[scroll_label]
id = "log_text"
definition = "description_small"
vertical_scrollbar_mode = "always"
horizontal_scrollbar_mode = "never"
[/scroll_label]
[/column]
[/row]
[/page_definition]
[/multi_page]
#enddef
[chatbox_definition]
id = "default"
description = "Mp chatbox"
[resolution]
min_width = 0
min_height = 0
default_width = 0
default_height = 0
max_width = 0
max_height = 0
[background]
[draw]
[/draw]
[/background]
[foreground]
[draw]
[/draw]
[/foreground]
[grid]
[row]
grow_factor = 0
[column]
horizontal_alignment = "left"
border = "left,top,right"
border_size = 5
{_GUI_ROOM_TAB_BAR}
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_grow = true
{_GUI_CHATLOG}
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
vertical_alignment = "bottom"
border = "left,right,bottom"
border_size = 5
[text_box]
id = "chat_input"
definition = "default"
[/text_box]
[/column]
[/row]
[/grid]
[/resolution]
[/chatbox_definition]
#undef _GUI_ROOM_TAB_BAR
#undef _GUI_CHATLOG