mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-16 18:31:32 +00:00
247 lines
4.5 KiB
INI
247 lines
4.5 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the window to recruit units
|
|
###
|
|
|
|
#define _GUI_RECRUIT_LIST
|
|
[listbox]
|
|
id = "recruit_list"
|
|
definition = "default"
|
|
|
|
[list_definition]
|
|
[row]
|
|
[column]
|
|
vertical_grow = true
|
|
horizontal_grow = true
|
|
|
|
[toggle_panel]
|
|
definition = "default"
|
|
|
|
return_value_id = "ok"
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
grow_factor = 0
|
|
horizontal_grow = true
|
|
|
|
# Smaller border deliberately
|
|
border = "all"
|
|
border_size = 1
|
|
[image]
|
|
id = "unit_image"
|
|
definition = "default"
|
|
linked_group = "image"
|
|
[/image]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
|
|
[grid]
|
|
[row]
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
[label]
|
|
id = "unit_type"
|
|
definition = "default"
|
|
linked_group = "type"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
[column]
|
|
horizontal_alignment = "left"
|
|
[grid]
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
border = "left,bottom"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
[image]
|
|
id = "gold_icon"
|
|
definition = "default"
|
|
|
|
label = "themes/gold.png"
|
|
[/image]
|
|
[/column]
|
|
|
|
[column]
|
|
border = "left,bottom,right"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
[label]
|
|
id = "unit_cost"
|
|
definition = "default"
|
|
[/label]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
|
|
[column]
|
|
[spacer]
|
|
width = 25
|
|
[/spacer]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/toggle_panel]
|
|
[/column]
|
|
[/row]
|
|
[/list_definition]
|
|
[/listbox]
|
|
#enddef
|
|
|
|
[window]
|
|
id = "unit_recruit"
|
|
description = "Unut recruit dialog."
|
|
|
|
[resolution]
|
|
definition = "default"
|
|
automatic_placement = true
|
|
vertical_placement = "center"
|
|
horizontal_placement = "center"
|
|
|
|
maximum_height = 700
|
|
|
|
[linked_group]
|
|
id = "image"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "type"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[tooltip]
|
|
id = "tooltip"
|
|
[/tooltip]
|
|
|
|
[helptip]
|
|
id = "tooltip"
|
|
[/helptip]
|
|
|
|
[grid]
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
|
|
[label]
|
|
definition = "title"
|
|
label = _ "Recruit Unit"
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
[column]
|
|
grow_factor = 0
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[unit_preview_pane]
|
|
definition = "default"
|
|
id = "recruit_details"
|
|
[/unit_preview_pane]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
vertical_alignment = "top"
|
|
border = "all"
|
|
border_size = 5
|
|
{_GUI_RECRUIT_LIST}
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
horizontal_grow = true
|
|
[grid]
|
|
[row]
|
|
grow_factor=0
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
[button]
|
|
id = "show_help"
|
|
definition = "help"
|
|
[/button]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
[button]
|
|
id = "ok"
|
|
definition = "default"
|
|
label = _ "Recruit"
|
|
[/button]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
[button]
|
|
id = "cancel"
|
|
definition = "default"
|
|
label = _ "Cancel"
|
|
[/button]
|
|
[/column]
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
|
|
[/row]
|
|
[/grid]
|
|
|
|
[/resolution]
|
|
|
|
[/window]
|
|
|
|
#undef _GUI_RECRUIT_LIST
|
|
#undef _GUI_DETAILS_SECTION
|