pick_advance whitespace

This commit is contained in:
Celtic Minstrel 2023-05-01 13:53:34 -04:00 committed by Celtic Minstrel
parent 3ba31d532f
commit 497e6b7ca6
2 changed files with 54 additions and 54 deletions

View file

@ -22,7 +22,7 @@ function pickadvance.show_dialog_unsynchronized(advance_info, unit)
local pick_advance_dialog = wml.load "modifications/pick_advance/gui/pick_advance.cfg"
local dialog_wml = wml.get_child(pick_advance_dialog, 'resolution')
-- dialog preshow function
local function preshow(window)
window.apply_to_all.visible = not unit.canrecruit

View file

@ -18,62 +18,62 @@
#enddef
#define LIST_ROW_DEFINITION
[grid]
[row]
[column]
border = "all"
border_size = 5
grow_factor = 0
horizontal_alignment = "left"
[image]
id = "the_icon"
linked_group = "image"
[/image]
[/column]
[column]
border = "all"
border_size = 5
grow_factor = 1
horizontal_alignment = "left"
[label]
use_markup = true
id = "the_label"
linked_group = "type"
[/label]
[/column]
[column]
border = "all"
border_size = 5
horizontal_alignment = "center"
vertical_alignment = "center"
[image]
id = "global_icon"
linked_group = "global_icon"
label = "icons/action/editor-tool-unit_30-pressed.png"
tooltip = _ "This advancement is currently the default for all units of the same type"
[/image]
[/column]
[/row]
[/grid]
[grid]
[row]
[column]
border = "all"
border_size = 5
grow_factor = 0
horizontal_alignment = "left"
[image]
id = "the_icon"
linked_group = "image"
[/image]
[/column]
[column]
border = "all"
border_size = 5
grow_factor = 1
horizontal_alignment = "left"
[label]
use_markup = true
id = "the_label"
linked_group = "type"
[/label]
[/column]
[column]
border = "all"
border_size = 5
horizontal_alignment = "center"
vertical_alignment = "center"
[image]
id = "global_icon"
linked_group = "global_icon"
label = "icons/action/editor-tool-unit_30-pressed.png"
tooltip = _ "This advancement is currently the default for all units of the same type"
[/image]
[/column]
[/row]
[/grid]
#enddef
#define LISTBOX
[listbox]
id = "the_list"
has_minimum = true
[list_definition]
[row]
[column]
horizontal_grow = true
vertical_grow = true
[toggle_panel]
return_value = {SINGLE_UNIT_CODE}
{LIST_ROW_DEFINITION}
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[listbox]
id = "the_list"
has_minimum = true
[list_definition]
[row]
[column]
horizontal_grow = true
vertical_grow = true
[toggle_panel]
return_value = {SINGLE_UNIT_CODE}
{LIST_ROW_DEFINITION}
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
#enddef
# main dialog definition