WC: Convert the help dialog to WML

This commit is contained in:
Celtic Minstrel 2021-03-31 02:05:55 -04:00
parent a51271670c
commit 63aad7453c
4 changed files with 746 additions and 779 deletions

View file

@ -0,0 +1,743 @@
#textdomain wesnoth-wc
# Since this file is loaded standalone, we need to manually include these
{gui/macros}
#define formula_gui_scale_resolution size
"(max({size}, floor({size} * 265 * 2 / (3 * screen_pitch_microns))))"
#enddef
[resolution]
automatic_placement = true
maximum_width = {formula_gui_scale_resolution 1024}
maximum_height = {formula_gui_scale_resolution 800}
[helptip]
id = "tooltip_large"
[/helptip]
[tooltip]
id = "tooltip_large"
[/tooltip]
[linked_group]
id = "artifact_icon"
fixed_width = true
[/linked_group]
[linked_group]
id = "artifact_name"
fixed_width = true
[/linked_group]
[linked_group]
id = "recruit_icon"
fixed_width = true
[/linked_group]
[linked_group]
id = "recruit_name"
fixed_width = true
[/linked_group]
[grid]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _"WoCopedia"
id = "title"
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_grow = true
[grid]
[row]
[column]
border = "all"
border_size = 5
grow_factor = 0
horizontal_grow = false
vertical_grow = true
[tree_view]
id = "treeview_topics"
definition = "default"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "never"
indentation_step_size = 35
[node]
id = "subcategory"
[node_definition]
[row]
[column]
grow_factor = 1
horizontal_grow = true
[toggle_panel]
id = "tree_view_node_label"
[grid]
[row]
[column]
grow_factor = 0
horizontal_grow = false
[spacer]
width = 10
[/spacer]
[/column]
[column]
horizontal_alignment = "left"
grow_factor = 1
border = "all"
border_size = 5
[label]
id = "label_topic"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/node_definition]
[/node]
[node]
id = "category"
[node_definition]
[row]
[column]
grow_factor = 0
horizontal_grow = true
border = "all"
border_size = 5
[toggle_button]
id = "tree_view_node_toggle"
definition = "tree_view_node"
[/toggle_button]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
[toggle_panel]
id = "tree_view_node_label"
[grid]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
id = "label_topic"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/node_definition]
[/node]
[/tree_view]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
vertical_grow = true
[multi_page]
id = "details"
definition = "default"
horizontal_scrollbar_mode = "never"
[page_definition]
id="training"
[row]
[column]
horizontal_grow = true
vertical_grow = true
border = "all"
border_size = 5
[scrollbar_panel]
[definition]
[row]
[column]
horizontal_grow = true
vertical_grow = true
[tree_view]
id = "treeview_details"
definition = "default"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "never"
indentation_step_size = 20
[node]
id = "training_details"
[node_definition]
[row]
[column]
grow_factor = 1
horizontal_alignment = "left"
border = "bottom"
border_size = 10
[label]
definition = "default_large"
id = "training_caption"
label = "default description"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 1
horizontal_alignment = "left"
[label]
id = "training_description"
label = "default description"
[/label]
[/column]
[/row]
[/node_definition]
[/node]
[node]
id = "scroll_details"
[node_definition]
[row]
[column]
grow_factor = 1
horizontal_alignment = "left"
border = "bottom"
border_size = 10
[label]
definition = "default_large"
id = "training_caption"
label = "default description"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 1
horizontal_alignment = "left"
[scroll_label]
id = "training_description"
label = "default description"
[/scroll_label]
[/column]
[/row]
[/node_definition]
[/node]
[node]
id = "seperator"
[node_definition]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[spacer]
height = 20
width = 20
[/spacer]
[/column]
[/row]
[/node_definition]
[/node]
[/tree_view]
[/column]
[/row]
[/definition]
[/scrollbar_panel]
[/column]
[/row]
[/page_definition]
[page_definition]
id="simple"
[row]
[column]
horizontal_grow = true
vertical_grow = true
border = "all"
border_size = 5
[scroll_label]
id = "label_content"
label = "Text"
[/scroll_label]
[/column]
[/row]
[/page_definition]
[page_definition]
id="artifacts"
horizontal_grow = true
vertical_grow = true
[row]
[column]
horizontal_grow = true
vertical_grow = true
[grid]
#ifdef COMMENTED_OUT
[row]
[column]
grow_factor = 1
vertical_grow = true
[label]
id = "title"
label = "Artifacts"
[/label]
[/column]
[/row]
#endif
[row]
[column]
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "desc"
wrap = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow = true
grow_factor = 0
border = "all"
border_size = 5
[tree_view]
vertical_grow = true
id = "treeview_artifacts"
definition = "default"
horizontal_scrollbar_mode = "auto"
vertical_scrollbar_mode = "auto"
indentation_step_size = 0
[node]
id = "artifact"
horizontal_grow = true
[node_definition]
vertical_grow = true
[row]
horizontal_grow = true
[column]
horizontal_grow = true
[grid]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[image]
id="image"
linked_group = "artifact_icon"
[/image]
[/column]
[column]
horizontal_grow = true
grow_factor = 1
border = "all"
border_size = 5
[label]
id="label_name"
wrap = true
linked_group = "artifact_name"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/node_definition]
[/node]
[/tree_view]
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 0
vertical_grow = true
[spacer]
id = "aa"
[/spacer]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/page_definition]
[page_definition]
id="faction"
vertical_grow = true
[row]
[column]
vertical_grow = true
horizontal_grow = true
[grid]
#ifdef COMMENTED_OUT
[row]
[column]
grow_factor = 1
vertical_grow = true
[label]
id = "title"
label = "Artifacts"
[/label]
[/column]
[/row]
#endif
[row]
[column]
[scroll_label]
vertical_scrollbar_mode = "never"
id = "desc"
[/scroll_label]
[/column]
[/row]
[row]
[column]
[label]
vertical_scrollbar_mode = "never"
label = "<b>Recruits:</b>"
use_markup = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow = true
[tree_view]
id = "treeview_recruits"
definition = "default"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "always"
indentation_step_size = 35
[node]
id = "recruit_pair"
horizontal_grow = true
[node_definition]
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
[image]
id="image1"
linked_group = "recruit_icon"
[/image]
[/column]
[column]
[label]
id="label1"
linked_group = "recruit_name"
[/label]
[/column]
[column]
[label]
label="↔"
[/label]
[/column]
[column]
[image]
id="image2"
linked_group = "recruit_icon"
[/image]
[/column]
[column]
[label]
id="label2"
linked_group = "recruit_name"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/node_definition]
[/node]
[/tree_view]
[/column]
[/row]
[row]
[column]
[label]
vertical_scrollbar_mode = "never"
label = "<b>Deserters:</b>"
use_markup = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow=true
[scroll_label]
vertical_scrollbar_mode = "never"
id = "label_deserters"
use_markup = true
[/scroll_label]
[/column]
[/row]
[row]
[column]
[label]
vertical_scrollbar_mode = "never"
label = "<b>Commanders:</b>"
use_markup = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow=true
[scroll_label]
vertical_scrollbar_mode = "never"
id = "label_commanders"
use_markup = true
[/scroll_label]
[/column]
[/row]
[row]
[column]
[label]
vertical_scrollbar_mode = "never"
label = "<b>Heroes:</b>"
use_markup = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow=true
[scroll_label]
vertical_scrollbar_mode = "never"
id = "label_heroes"
use_markup = true
[/scroll_label]
[/column]
[/row]
[row]
[column]
[label]
vertical_scrollbar_mode = "never"
label = "<b>Random Leaders:</b>"
id = "title_random_leaders"
use_markup = true
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow=true
[scroll_label]
vertical_scrollbar_mode = "never"
id = "label_random_leaders"
use_markup = true
[/scroll_label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 0
vertical_grow = true
[spacer]
id = "aa"
[/spacer]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/page_definition]
[page_definition]
id="settings"
vertical_alignment = "top"
horizontal_grow = true
[row]
[column]
vertical_alignment = "top"
horizontal_grow = true
[grid]
[row]
grow_factor = 0
[column]
grow_factor = 0
vertical_grow = false
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
id = "title"
label = "<big><b>" + _ "Settings" + "</b></big>"
use_markup=true
[/label]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = "true"
vertical_alignment = "top"
grow_factor = 1
[grid]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = "Use WC2 PYA mod"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[toggle_button]
definition = "no_label"
id="checkbox_use_pya"
[/toggle_button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = "Use WC2 Unitmarkers"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[toggle_button]
definition = "no_label"
id="checkbox_use_markers"
[/toggle_button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = "Use WC2 experimental pickup"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[toggle_button]
definition = "no_label"
id="checkbox_use_pickup"
[/toggle_button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = "Show pickup confirmation"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[toggle_button]
definition = "no_label"
id="checkbox_show_pickup_confirmation"
[/toggle_button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = _ "Difficulty"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = ""
id="label_difficulty"
[/label]
[/column]
[/row]
[row]
[column]
horizontal_alignment = "left"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = "WC2 version"
[/label]
[/column]
[column]
horizontal_alignment = "center"
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = ""
id="label_version"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/page_definition]
[/multi_page]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 1
[spacer]
[/spacer]
[/column]
[column]
horizontal_alignment = "right"
border = "all"
border_size = 5
[button]
#textdomain wesnoth
label = _ "Close"
id = "ok"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]

View file

@ -18,7 +18,6 @@ wc2_training = wesnoth.require("./training.lua")
wc2_unittypedata = wesnoth.require("./unittypedata.lua")
wc2_utils = wesnoth.require("./utils.lua")
wc2_wiki_dialog = wesnoth.require("./wocopedia/help_dialog.lua")
wc2_wiki = wesnoth.require("./wocopedia/help.lua")
wc2_invest = wesnoth.require("./invest/invest.lua")

View file

@ -1,5 +1,5 @@
local _ = wesnoth.textdomain 'wesnoth-wc'
local dialog = wc2_wiki_dialog
local dialog = wml.load "campaigns/World_Conquest/gui/help_dialog.cfg"
local function make_caption(text)
return ("<big><b>%s</b></big>"):format(text)
@ -237,7 +237,8 @@ function wesnoth.wml_actions.wc2_show_wocopedia(cfg)
end
end
gui.show_dialog(dialog, preshow)
local dialog_wml = wml.get_child(dialog, 'resolution')
gui.show_dialog(dialog_wml, preshow)
end
wc2_utils.menu_item {

View file

@ -1,776 +0,0 @@
local _ = wesnoth.textdomain 'wesnoth-wc'
local T = wml.tag
local function GUI_FORCE_WIDGET_MINIMUM_SIZE(w,h, content)
return T.stacked_widget {
definition = "default",
T.stack {
T.layer {
T.row {
T.column {
T.spacer {
definition = "default",
width = w,
height = h
}
}
}
},
T.layer {
T.row {
grow_factor = 1,
T.column {
grow_factor = 1,
horizontal_grow = "true",
vertical_grow = "true",
content
}
}
}
}
}
end
--unused
local GUI_HORIZONTAL_SPACER_LINE = T.row {
grow_factor = 0,
T.column {
grow_factor = 1,
border = "all",
border_size = 10,
horizontal_grow = true,
T.drawing {
definition = "default",
width = "(width)",
height = 1,
T.draw {
T.line {
x1 = 0,
y1 = 0,
x2 = "(width - 1)",
y2 = 0,
color = "114, 79, 46, 255",
thickness = 1,
}
}
}
}
}
local function formula_gui_scale_resolution(size)
return ("(max(%d, floor(%d * 265 * 2 / (3 * screen_pitch_microns))))"):format(size, size)
end
return {
automatic_placement = true,
maximum_width = formula_gui_scale_resolution(1024),
maximum_height = formula_gui_scale_resolution(800),
T.helptip { id = "tooltip_large" }, -- mandatory field
T.tooltip { id = "tooltip_large" }, -- mandatory field
T.linked_group { id = "artifact_icon", fixed_width = true },
T.linked_group { id = "artifact_name", fixed_width = true },
T.linked_group { id = "recruit_icon", fixed_width = true },
T.linked_group { id = "recruit_name", fixed_width = true },
T.grid {
T.row {
grow_factor = 1,
T.column {
border = "all",
border_size = 5,
horizontal_alignment = "left",
T.label {
definition = "title",
label = _"WoCopedia",
id = "title"
}
}
},
T.row {
grow_factor = 1,
T.column {
horizontal_grow = true,
vertical_grow = true,
T.grid {
T.row {
T.column {
border = "all",
border_size = 5,
grow_factor = 0,
horizontal_grow = false,
vertical_grow = true,
T.tree_view {
id = "treeview_topics",
definition = "default",
horizontal_scrollbar_mode = "never",
vertical_scrollbar_mode = "never",
indentation_step_size = 35,
T.node {
id = "subcategory",
T.node_definition {
T.row {
T.column {
grow_factor = 1,
horizontal_grow = true,
T.toggle_panel {
id = "tree_view_node_label",
T.grid {
T.row {
T.column {
grow_factor = 0,
horizontal_grow = false,
T.spacer {
width = 10
}
},
T.column {
horizontal_alignment = "left",
grow_factor = 1,
border = "all",
border_size = 5,
T.label {
id = "label_topic",
},
},
},
},
},
},
},
},
},
T.node {
id = "category",
T.node_definition {
T.row {
T.column {
grow_factor = 0,
horizontal_grow = true,
border = "all",
border_size = 5,
T.toggle_button {
id = "tree_view_node_toggle",
definition = "tree_view_node",
},
},
T.column {
grow_factor = 1,
horizontal_grow = true,
T.toggle_panel {
id = "tree_view_node_label",
T.grid {
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
id = "label_topic",
},
},
},
},
},
},
},
},
},
},
},
T.column {
grow_factor = 1,
horizontal_grow = true,
vertical_grow = true,
T.multi_page {
id = "details",
definition = "default",
horizontal_scrollbar_mode = "never",
T.page_definition {
id="training",
T.row {
T.column {
horizontal_grow = true,
vertical_grow = true,
border = "all",
border_size = 5,
T.scrollbar_panel {
T.definition {
T.row {
T.column {
horizontal_grow = true,
vertical_grow = true,
T.tree_view {
id = "treeview_details",
definition = "default",
horizontal_scrollbar_mode = "never",
vertical_scrollbar_mode = "never",
indentation_step_size = 20,
T.node {
id = "training_details",
T.node_definition {
T.row {
T.column {
grow_factor = 1,
horizontal_alignment = "left",
border = "bottom",
border_size = 10,
T.label {
definition = "default_large",
id = "training_caption",
label = "default description",
},
},
},
T.row {
T.column {
grow_factor = 1,
horizontal_alignment = "left",
T.label {
id = "training_description",
label = "default description",
},
},
},
},
},
T.node {
id = "scroll_details",
T.node_definition {
T.row {
T.column {
grow_factor = 1,
horizontal_alignment = "left",
border = "bottom",
border_size = 10,
T.label {
definition = "default_large",
id = "training_caption",
label = "default description",
},
},
},
T.row {
T.column {
grow_factor = 1,
horizontal_alignment = "left",
T.scroll_label {
id = "training_description",
label = "default description",
},
},
},
},
},
T.node {
id = "seperator",
T.node_definition {
T.row {
T.column {
grow_factor = 1,
horizontal_grow = true,
border = "all",
border_size = 5,
T.spacer {
height = 20,
width = 20,
},
},
},
},
},
}
}
}
}
}
}
}
},
T.page_definition {
id="simple",
T.row {
T.column {
horizontal_grow = true,
vertical_grow = true,
border = "all",
border_size = 5,
T.scroll_label {
id = "label_content",
label = "Text",
}
}
}
},
T.page_definition {
id="artifacts",
horizontal_grow = true,
vertical_grow = true,
T.row {
T.column {
horizontal_grow = true,
vertical_grow = true,
T.grid {
--T.row {
-- T.column {
-- grow_factor = 1,
-- vertical_grow = true,
-- T.label {
-- id = "title",
-- label = "Artifacts",
-- }
-- }
--},
T.row {
T.column {
horizontal_grow = true,
border = "all",
border_size = 5,
T.label {
id = "desc",
wrap = true
}
}
},
T.row {
T.column {
horizontal_grow = true,
grow_factor = 0,
border = "all",
border_size = 5,
T.tree_view {
vertical_grow = true,
id = "treeview_artifacts",
definition = "default",
horizontal_scrollbar_mode = "auto",
vertical_scrollbar_mode = "auto",
indentation_step_size = 0,
T.node {
id = "artifact",
horizontal_grow = true,
T.node_definition {
vertical_grow = true,
T.row {
horizontal_grow = true,
T.column {
horizontal_grow = true,
T.grid {
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.image {
id="image",
linked_group = "artifact_icon",
}
},
T.column {
horizontal_grow = true,
grow_factor = 1,
border = "all",
border_size = 5,
T.label {
id="label_name",
wrap = true,
linked_group = "artifact_name",
}
},
}
}
}
}
}
}
}
}
},
T.row {
grow_factor = 1,
T.column {
grow_factor = 0,
vertical_grow = true,
T.spacer {
id = "aa",
}
}
},
}
}
}
},
T.page_definition {
id="faction",
vertical_grow = true,
T.row {
T.column {
vertical_grow = true,
horizontal_grow = true,
T.grid {
--T.row {
-- T.column {
-- grow_factor = 1,
-- vertical_grow = true,
-- T.label {
-- id = "title",
-- label = "Artifacts",
-- }
-- }
--},
T.row {
T.column {
T.scroll_label {
vertical_scrollbar_mode = "never",
id = "desc",
}
}
},
T.row {
T.column {
T.label {
vertical_scrollbar_mode = "never",
label = "<b>Recruits:</b>",
use_markup = true,
}
}
},
T.row {
T.column {
horizontal_grow = true,
T.tree_view {
id = "treeview_recruits",
definition = "default",
horizontal_scrollbar_mode = "never",
vertical_scrollbar_mode = "always",
indentation_step_size = 35,
T.node {
id = "recruit_pair",
horizontal_grow = true,
T.node_definition {
T.row {
T.column {
horizontal_grow = true,
T.grid {
T.row {
T.column {
T.image {
id="image1",
linked_group = "recruit_icon",
}
},
T.column {
T.label {
id="label1",
linked_group = "recruit_name",
}
},
T.column {
T.label {
label="",
}
},
T.column {
T.image {
id="image2",
linked_group = "recruit_icon",
}
},
T.column {
T.label {
id="label2",
linked_group = "recruit_name",
}
},
}
}
}
}
}
}
}
}
},
T.row {
T.column {
T.label {
vertical_scrollbar_mode = "never",
label = "<b>Deserters:</b>",
use_markup = true,
}
}
},
T.row {
T.column {
horizontal_grow=true,
T.scroll_label {
vertical_scrollbar_mode = "never",
id = "label_deserters",
use_markup = true,
}
}
},
T.row {
T.column {
T.label {
vertical_scrollbar_mode = "never",
label = "<b>Commanders:</b>",
use_markup = true,
}
}
},
T.row {
T.column {
horizontal_grow=true,
T.scroll_label {
vertical_scrollbar_mode = "never",
id = "label_commanders",
use_markup = true,
}
}
},
T.row {
T.column {
T.label {
vertical_scrollbar_mode = "never",
label = "<b>Heroes:</b>",
use_markup = true,
}
}
},
T.row {
T.column {
horizontal_grow=true,
T.scroll_label {
vertical_scrollbar_mode = "never",
id = "label_heroes",
use_markup = true,
}
}
},
T.row {
T.column {
T.label {
vertical_scrollbar_mode = "never",
label = "<b>Random Leaders:</b>",
id = "title_random_leaders",
use_markup = true,
}
}
},
T.row {
T.column {
horizontal_grow=true,
T.scroll_label {
vertical_scrollbar_mode = "never",
id = "label_random_leaders",
use_markup = true,
}
}
},
T.row {
grow_factor = 1,
T.column {
grow_factor = 0,
vertical_grow = true,
T.spacer {
id = "aa",
}
}
},
}
}
}
},
T.page_definition {
id="settings",
vertical_alignment = "top",
horizontal_grow = true,
T.row {
T.column {
vertical_alignment = "top",
horizontal_grow = true,
T.grid {
T.row {
grow_factor = 0,
T.column {
grow_factor = 0,
vertical_grow = false,
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
id = "title",
label = "<big><b>" .. _ "Settings" .. "</b></big>\n",
use_markup=true,
},
},
},
T.row {
grow_factor = 0,
T.column {
horizontal_grow = "true",
vertical_alignment = "top",
grow_factor = 1,
T.grid {
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "Use WC2 PYA mod",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.toggle_button {
definition = "no_label",
id="checkbox_use_pya",
},
},
},
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "Use WC2 Unitmarkers",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.toggle_button {
definition = "no_label",
id="checkbox_use_markers",
},
},
},
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "Use WC2 experimental pickup",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.toggle_button {
definition = "no_label",
id="checkbox_use_pickup",
},
},
},
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "Show pickup confirmation",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.toggle_button {
definition = "no_label",
id="checkbox_show_pickup_confirmation",
},
},
},
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = _ "Difficulty",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "",
id="label_difficulty",
},
},
},
T.row {
T.column {
horizontal_alignment = "left",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "WC2 version",
}
},
T.column {
horizontal_alignment = "center",
border = "all",
border_size = 5,
T.label {
definition = "gold_small",
label = "",
id="label_version",
},
},
},
}
}
},
}
}
}
},
},
}
}
}
}
},
T.row {
T.column {
horizontal_grow = true,
T.grid {
T.row {
T.column {
grow_factor = 1,
T.spacer {
}
},
T.column {
horizontal_alignment = "right",
border = "all",
border_size = 5,
T.button {
label = wesnoth.textdomain("wesnoth")("Close"),
id = "ok",
}
}
}
}
}
}
}
}