1#textdomain wesnoth-lib
2###
3### Definition of the window to create units in debug mode.
4###
5
6[window]
7	id = "unit_create"
8	description = "Debug-mode unit creation dialog."
9
10	[resolution]
11		definition = "default"
12		automatic_placement = true
13		vertical_placement = "center"
14		horizontal_placement = "center"
15
16		maximum_height = 800
17
18		[linked_group]
19			id = "race"
20			fixed_width = true
21		[/linked_group]
22		[linked_group]
23			id = "unit_type"
24			fixed_width = true
25		[/linked_group]
26
27		[tooltip]
28			id = "tooltip"
29		[/tooltip]
30
31		[helptip]
32			id = "tooltip"
33		[/helptip]
34
35		[grid]
36			[row]
37				grow_factor = 0
38
39				[column]
40					grow_factor = 1
41					border = "all"
42					border_size = 5
43					horizontal_alignment = "left"
44
45					[label]
46						definition = "title"
47						label = _ "Create Unit (Debug!)"
48					[/label]
49
50				[/column]
51
52			[/row]
53
54			[row]
55				grow_factor = 1
56
57				[column]
58					horizontal_grow = true
59					vertical_grow = true
60
61					[grid]
62
63						[row]
64
65							[column]
66								grow_factor = 0
67								vertical_grow = true
68								border = "all"
69								border_size = 5
70
71								[unit_preview_pane]
72									definition = "default"
73									id = "unit_details"
74								[/unit_preview_pane]
75
76							[/column]
77
78							[column]
79								grow_factor = 1
80								horizontal_grow = true
81
82								[grid]
83
84									[row]
85
86										[column]
87											border = "all"
88											border_size = 5
89											horizontal_alignment = "left"
90
91											[text_box]
92												id = "filter_box"
93												definition = "default"
94												{FILTER_TEXT_BOX_HINT}
95											[/text_box]
96
97										[/column]
98
99									[/row]
100
101									[row]
102
103										[column]
104											grow_factor = 1
105											border = "all"
106											border_size = 5
107											horizontal_grow = true
108
109											[listbox]
110												id = "unit_type_list"
111												definition = "default"
112												[header]
113													[row]
114														[column]
115															grow_factor = 1
116															horizontal_grow = true
117
118															# No border by design
119															[toggle_button]
120																id = "sort_0"
121																definition = "listbox_header"
122																linked_group = "race"
123
124																label = _ "Race"
125															[/toggle_button]
126														[/column]
127														[column]
128															grow_factor = 1
129															horizontal_grow = true
130
131															# No border by design
132															[toggle_button]
133																id = "sort_1"
134																definition = "listbox_header"
135																linked_group = "unit_type"
136
137																label = _ "Type"
138															[/toggle_button]
139														[/column]
140													[/row]
141												[/header]
142
143												[list_definition]
144													[row]
145														[column]
146															vertical_grow = true
147															horizontal_grow = true
148
149															[toggle_panel]
150																definition = "default"
151
152																return_value_id = "ok"
153																[grid]
154																	[row]
155																		[column]
156																			grow_factor = 1
157																			horizontal_grow = true
158																			border = "all"
159																			border_size = 5
160																			[label]
161																				id = "race"
162																				definition = "default"
163																				linked_group = "race"
164																			[/label]
165																		[/column]
166																		[column]
167																			grow_factor = 1
168																			horizontal_grow = true
169																			border = "all"
170																			border_size = 5
171																			[label]
172																				id = "unit_type"
173																				definition = "default"
174																				linked_group = "unit_type"
175																			[/label]
176																		[/column]
177																	[/row]
178																[/grid]
179															[/toggle_panel]
180														[/column]
181													[/row]
182												[/list_definition]
183											[/listbox]
184
185										[/column]
186
187									[/row]
188
189									[row]
190										grow_factor = 0
191
192										[column]
193											grow_factor = 1
194											horizontal_grow = true
195											[grid]
196												[row]
197													grow_factor=0
198													[column]
199														border = "all"
200														border_size = 5
201														horizontal_alignment = "left"
202
203														[label]
204															definition = "default"
205															label= _ "Gender:"
206														[/label]
207													[/column]
208
209													[column]
210														border = "all"
211														border_size = 5
212														horizontal_alignment = "right"
213
214														[toggle_button]
215															id = "male_toggle"
216															definition = "radio"
217															label= _ "Male"
218														[/toggle_button]
219													[/column]
220
221													[column]
222														border = "all"
223														border_size = 5
224														horizontal_alignment = "right"
225
226														[toggle_button]
227															id = "female_toggle"
228															definition = "radio"
229															label= _ "Female"
230														[/toggle_button]
231
232													[/column]
233												[/row]
234
235											[/grid]
236
237										[/column]
238
239									[/row]
240
241								[/grid]
242
243							[/column]
244
245						[/row]
246
247					[/grid]
248
249				[/column]
250
251			[/row]
252
253			[row]
254				grow_factor = 0
255
256				[column]
257					grow_factor = 0
258					horizontal_alignment = "right"
259					[grid]
260						[row]
261							grow_factor=0
262							[column]
263								border = "all"
264								border_size = 5
265								horizontal_alignment = "right"
266								[button]
267									id = "ok"
268									definition = "default"
269									label = _ "OK"
270								[/button]
271							[/column]
272
273							[column]
274								border = "all"
275								border_size = 5
276								horizontal_alignment = "right"
277								[button]
278									id = "cancel"
279									definition = "default"
280									label = _ "Cancel"
281								[/button]
282							[/column]
283						[/row]
284					[/grid]
285				[/column]
286
287			[/row]
288
289		[/grid]
290
291	[/resolution]
292
293[/window]
294