mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-13 16:43:49 +00:00

include new definitions and updated versions of existing definitions "default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
544 lines
9.1 KiB
INI
544 lines
9.1 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the custom tod window in the editor.
|
|
###
|
|
|
|
#define _GUI_DATA_PATH_ENTRY ID_STEM LABEL PREVIEW_BUTTON
|
|
[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"
|
|
editable = false
|
|
[/text_box]
|
|
|
|
[/column]
|
|
|
|
{PREVIEW_BUTTON}
|
|
|
|
[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_DATA_PATH_ENTRY_IMAGE ID_STEM LABEL
|
|
{_GUI_DATA_PATH_ENTRY {ID_STEM} {LABEL} (
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[button]
|
|
id = "preview_" + {ID_STEM}
|
|
definition = "preview"
|
|
tooltip = _ "Preview image"
|
|
[/button]
|
|
[/column]
|
|
)}
|
|
#enddef
|
|
|
|
#define _GUI_DATA_PATH_ENTRY_SOUND ID_STEM LABEL
|
|
{_GUI_DATA_PATH_ENTRY {ID_STEM} {LABEL} (
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[button]
|
|
id = "preview_" + {ID_STEM}
|
|
definition = "play"
|
|
tooltip = _ "Play sound"
|
|
[/button]
|
|
[/column]
|
|
)}
|
|
#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_grow = true
|
|
|
|
[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 = _ "Description:"
|
|
linked_group = "labels"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[text_box]
|
|
id = "tod_desc"
|
|
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_grow = true
|
|
|
|
[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" ( _ "Image:")}
|
|
{_GUI_DATA_PATH_ENTRY_IMAGE "mask" ( _ "Mask:")}
|
|
{_GUI_DATA_PATH_ENTRY_SOUND "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 = "preview_color"
|
|
definition = "preview"
|
|
tooltip = _ "Preview color changes on map"
|
|
[/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
|