wesnoth/data/gui/window/custom_tod.cfg
Charles Dang a1806c2d31 GUI2: refactored Custom ToD dialog
In addition to an interface update, this also makes the dialog work better with the editor, with improvements
such as restoring the currently selected ToD when the dialog exits (until we implement the saving of changes
made within the dialog) and opening to the same.
2017-04-19 12:53:23 +11:00

464 lines
7.5 KiB
INI

#textdomain wesnoth-lib
###
### Definition of the custom tod window in the editor.
###
#define _GUI_DATA_PATH_ENTRY ID_STEM LABEL
[row]
grow_factor = 0
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = {LABEL}
linked_group = "labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[text_box]
id = "path_" + {ID_STEM}
definition = "default"
[/text_box]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[button]
id = "copy_" + {ID_STEM}
definition = "action_copy"
label = _ "filesystem^Copy"
tooltip = _ "Copy this path to clipboard"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[button]
id = "browse_" + {ID_STEM}
definition = "action_browse"
label = _ "filesystem^Browse"
tooltip = _ "Browse this location using a file manager"
[/button]
[/column]
[/row]
#enddef
#define _GUI_COLOR_SLIDER _ID _LABEL
[row]
grow_factor = 0
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = {_LABEL}
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[slider]
id = {_ID}
definition = "default"
best_slider_length = 512
minimum_value = -255
maximum_value = 255
step_size = 1
[/slider]
[/column]
[/row]
#enddef
[window]
id = "custom_tod"
description = "Custom ToD schedules dialog."
[resolution]
definition = "default"
automatic_placement = true
vertical_placement = "center"
horizontal_placement = "center"
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[linked_group]
id = "labels"
fixed_width = true
[/linked_group]
[grid]
[row]
grow_factor = 0
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Edit Time Schedule"
[/label]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
horizontal_grow = true
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Name:"
linked_group = "labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[text_box]
id = "tod_name"
definition = "default"
[/text_box]
[/column]
[/row]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "ID:"
linked_group = "labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[text_box]
id = "tod_id"
definition = "default"
[/text_box]
[/column]
[/row]
[/grid]
[/column]
[column]
horizontal_grow = true
vertical_grow = true
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "right"
[image]
id = "current_tod_image"
definition = "default"
[/image]
[/column]
[/row]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "right"
[image]
id = "current_tod_mask"
definition = "default"
[/image]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[/row]
{GUI_FILLER_ROW HEIGHT=20}
[row]
grow_factor = 1
[column]
horizontal_grow = true
[grid]
{_GUI_DATA_PATH_ENTRY "image" ( _ "Image:")}
{_GUI_DATA_PATH_ENTRY "mask" ( _ "Mask:")}
{_GUI_DATA_PATH_ENTRY "sound" ( _ "Sound:")}
[/grid]
[/column]
[/row]
{GUI_FILLER_ROW HEIGHT=20}
[row]
grow_factor = 1
[column]
horizontal_grow = true
[grid]
[row]
grow_factor = 0
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Lawful Bonus:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[slider]
id = "lawful_bonus"
definition = "default"
best_slider_length = 512
minimum_value = -100
maximum_value = 100
step_size = 5
[/slider]
[/column]
[/row]
{_GUI_COLOR_SLIDER "tod_red" ( _ "Red:")}
{_GUI_COLOR_SLIDER "tod_green" ( _ "Green:")}
{_GUI_COLOR_SLIDER "tod_blue" ( _ "Blue:")}
[/grid]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "previous_tod"
definition = "left_arrow"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "tod_number"
definition = "default"
[/label]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "next_tod"
definition = "right_arrow"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "new"
definition = "add"
label = _ "New ToD"
[/button]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[button]
id = "delete"
definition = "delete"
label = _ "Delete ToD"
[/button]
[/column]
[column]
grow_factor = 0
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_COLOR_SLIDER
#undef _GUI_DATA_PATH_ENTRY