wesnoth/data/gui/window/mp_change_control.cfg
Charles Dang 07d418f543 MP Change Control: cleaned up internal layout
This seems to have also fixed a bug... when testing before the changes, the Nickname list didn't appear, but
after these changes it does.
2017-04-25 12:41:24 +11:00

236 lines
3.5 KiB
INI

#textdomain wesnoth-lib
###
### Definition of the control panel window.
###
#define _GUI_SIDES_LISTBOX
[listbox]
id = "sides_list"
definition = "default"
[header]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "side_title"
definition = "default"
label = _ "Side"
[/label]
[/column]
[/row]
[/header]
[list_definition]
[row]
[column]
vertical_grow = true
horizontal_grow = true
[toggle_panel]
definition = "default"
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "side"
definition = "default"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
#enddef
#define _GUI_NICKS_LISTBOX
[listbox]
id = "nicks_list"
definition = "default"
[header]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "nick_title"
definition = "default"
label = _ "Nickname"
[/label]
[/column]
[/row]
[/header]
[list_definition]
[row]
[column]
vertical_grow = true
horizontal_grow = true
[toggle_panel]
definition = "default"
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "nick"
definition = "default"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
#enddef
[window]
id = "mp_change_control"
description = "Dialog used to change side's controller during MP."
[resolution]
definition = "default"
automatic_placement = true
vertical_placement = "center"
horizontal_placement = "center"
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[grid]
[row]
grow_factor = 0
[column]
grow_factor = 1
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Change Control"
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_grow = true
[grid]
[row]
[column]
grow_factor= 0
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
{_GUI_SIDES_LISTBOX}
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
{_GUI_NICKS_LISTBOX}
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "ok"
definition = "default"
label = _ "OK"
[/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_NICKS_LISTBOX
#undef _GUI_SIDES_LISTBOX