wesnoth/data/gui/themes/default/dialogs/addon_manager.cfg
Subhraman Sarkar 6b8c2e15e7 theme update for modern and rename themes
include new definitions and updated versions of existing definitions
"default/classic" and "modern" has been renamed to "Parchment" and "Celes" to avoid confusion
2025-01-09 09:02:42 +05:30

1343 lines
23 KiB
INI

#textdomain wesnoth-lib
###
### Definition of the window to select an addon for installation.
###
# HACK: we can't assign a tooltip to a grid
#define _GUI_SERVER_CONN_INFO:TOOLTIP_PLAIN
tooltip = _ "Traffic between the game and server is not secure"
#enddef
#define _GUI_SERVER_CONN_INFO:TOOLTIP_TLS
tooltip = _ "Traffic between the game and server is encrypted"
#enddef
#define _GUI_SERVER_CONN_INFO
[stacked_widget]
id = "server_conn_info"
# This needs to have at least two pages. Page 0 is used for plain text
# connections, while page 1 is used for TLS. Do NOT change this.
[layer]
[row]
[column]
border = "all"
border_size = 5
grow_factor = 0
horizontal_grow = false
[image]
label = "icons/action/lock_broken_ornate_30.png"
{_GUI_SERVER_CONN_INFO:TOOLTIP_PLAIN}
[/image]
[/column]
[column]
border = "all"
border_size = 5
grow_factor = 1
horizontal_grow = true
[label]
id = "server_addr"
definition = "bad_small"
#label = "Connection info label"
{_GUI_SERVER_CONN_INFO:TOOLTIP_PLAIN}
[/label]
[/column]
[/row]
[/layer]
[layer]
[row]
[column]
border = "all"
border_size = 5
grow_factor = 0
horizontal_grow = false
[image]
id = "secure_conn_icon"
label = "icons/action/lock_ornate_30.png"
{_GUI_SERVER_CONN_INFO:TOOLTIP_TLS}
[/image]
[/column]
[column]
border = "all"
border_size = 5
grow_factor = 1
horizontal_grow = true
[label]
id = "server_addr"
definition = "gold_small"
#label = "Connection info label"
{_GUI_SERVER_CONN_INFO:TOOLTIP_TLS}
[/label]
[/column]
[/row]
[/layer]
[/stacked_widget]
#enddef
#define _GUI_ADDON_DETAILS_SECTION
[grid]
[row]
grow_factor = 0
[column]
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "title"
definition = "title"
use_markup = true
[/label]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
vertical_alignment = "top"
[grid]
[row]
grow_factor = 0
[column]
border = "all"
border_size = 5
horizontal_grow = true
[scroll_label]
id = "author"
definition = "default_italic"
horizontal_scrollbar_mode = "never"
vertical_scrollbar_mode = "never"
[/scroll_label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[label]
definition = "gold_small"
label = _ "Type:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "type"
definition = "default_small"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
# Keeps this label aligned with its value label should the latter wrap
vertical_alignment = "top"
[label]
definition = "gold_small"
label = _ "Status:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
# Keeps this label aligned with its label should this wrap
vertical_alignment = "top"
[label]
id = "status"
definition = "default_small"
wrap = true
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[label]
definition = "gold_small"
label = _ "Size:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "size"
definition = "default_small"
[/label]
[/column]
[/row]
[/grid]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[label]
definition = "gold_small"
label = _ "Downloads:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "downloads"
definition = "default_small"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[label]
definition = "gold_small"
label = _ "date^Uploaded:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "created"
definition = "default_small"
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
[label]
definition = "gold_small"
label = _ "date^Updated:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "updated"
definition = "default_small"
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
vertical_alignment = "top"
#horizontal_alignment = "right"
#horizontal_grow = false
[drawing]
id = "image"
definition = "default"
width = 144
height = 144
[draw]
[image]
name = "(text)"
w = "(width)"
h = "(height)"
resize_mode = "scale_sharp"
#{GUI_CENTERED_IMAGE}
[/image]
[/draw]
[/drawing]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 5
vertical_grow = true
horizontal_grow = true
[scroll_label]
id = "description"
#definition = "default_small"
label = _ "No description available."
horizontal_scrollbar_mode = "never"
#vertical_scrollbar_mode = "always"
[/scroll_label]
[/column]
[/row]
{GUI_HORIZONTAL_SPACER_LINE}
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_grow = true
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "version_string"
definition = "gold_small"
label = _ "Version:"
linked_group = "detail_labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[menu_button]
id = "version_filter"
definition = "default"
tooltip = _"Select the add-on version"
[/menu_button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "gold_small"
label = _ "Website:"
linked_group = "detail_labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "url"
definition = "default_small"
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "gold_small"
label = _ "Id:"
linked_group = "detail_labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "id"
definition = "default_small"
[/label]
[/column]
[/row]
[/grid]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
[stacked_widget]
id = "action_stack"
[layer]
[row]
grow_factor = 1
[column]
grow_factor = 1
horizontal_alignment = "center"
[stacked_widget]
id = "install_update_stack"
[layer]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
id = "install"
definition = "addon_install_large"
tooltip = _"Install add-on"
[/button]
[/column]
[/row]
[/layer]
[layer]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
id = "update"
definition = "addon_upgrade_large"
tooltip = _"Update add-on"
[/button]
[/column]
[/row]
[/layer]
[/stacked_widget]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
id = "uninstall"
definition = "addon_uninstall_large"
tooltip = _"Uninstall add-on"
[/button]
[/column]
[/row]
[/layer]
[layer]
[row]
grow_factor = 1
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
id = "publish"
definition = "addon_publish_large"
tooltip = _"Publish add-on"
[/button]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "center"
[button]
id = "delete"
definition = "addon_delete_large"
tooltip = _"Delete add-on"
[/button]
[/column]
[/row]
[/layer]
[/stacked_widget]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "gold_small"
label = _ "Dependencies:"
linked_group = "detail_labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "dependencies"
definition = "default_small"
label = _ "addon_dependencies^None"
use_markup = true
can_shrink = true
[/label]
[/column]
[/row]
[row]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "gold_small"
label = _ "Translations:"
linked_group = "detail_labels"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
[label]
id = "translations"
definition = "default_small"
label = _ "translations^None"
can_shrink = true
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
#enddef
#define _GUI_ADDON_FILTER_BOX
[text_box]
id = "filter"
definition = "default"
tooltip = _ "Filters on addon description, version, type or author"
{FILTER_TEXT_BOX_HINT}
[/text_box]
#enddef
#define _GUI_ADDON_FILTER_OPTIONS _FILTER_BOX
[grid]
[row]
grow_factor = 1
{_FILTER_BOX}
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "State:"
[/label]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[menu_button]
id = "install_status_filter"
definition = "default"
[/menu_button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Type:"
[/label]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[multimenu_button]
id = "type_filter"
definition = "default"
maximum_shown = 2
[/multimenu_button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Tags:"
[/label]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[multimenu_button]
id = "tag_filter"
definition = "default"
[/multimenu_button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Language" + ":"
[/label]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[multimenu_button]
id = "language_filter"
definition = "default"
[/multimenu_button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "default"
label = _ "Order:"
[/label]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[menu_button]
id = "order_dropdown"
definition = "default"
[/menu_button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
# NOTE: this isn't named "help" because it conflicts with
# a titlescreen hack in gui2::twindow::get_retval_by_id().
id = "show_help"
definition = "help_30"
[/button]
[/column]
[/row]
[/grid]
#enddef
[window_definition]
id = "addon_manager"
description = "A simple window without border decorations and the ability to set a custom background."
{_GUI_RESOLUTION_BORDERLESS_BASE () 10 13 (
[image]
x = 0
y = 0
w = "(width)"
h = "(height)"
#name = "dialogs/addon_manager_bg.jpg"
[/image]
)}
[/window_definition]
[window]
id = "addon_manager"
description = "Add-on selection dialog."
[resolution]
window_width=800
window_height=600
definition = "addon_manager"
{GUI_WINDOW_FULLSCREEN}
[tooltip]
id = "tooltip_large"
[/tooltip]
[helptip]
id = "tooltip_large"
[/helptip]
[linked_group]
id = "detail_labels"
fixed_width = true
[/linked_group]
[grid]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Add-ons Manager"
[/label]
[/column]
[column]
border = "all"
border_size = 5
horizontal_alignment = "right"
{_GUI_ADDON_FILTER_BOX}
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_grow = true
[stacked_widget]
# TODO: Make a definition for this?
#definition = "box_display_no_blur_no_border"
id = "main_stack"
[layer]
[row]
grow_factor = 0
[column]
grow_factor = 0
horizontal_grow = true
vertical_grow = true
{_GUI_ADDON_FILTER_OPTIONS ()}
[/column]
[/row]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
[addon_list]
id = "addons"
definition = "default"
install_status_visibility = "visible"
install_buttons_visibility = "visible"
[/addon_list]
[/column]
[/row]
[/layer]
[layer]
[row]
grow_factor = 1
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
{_GUI_ADDON_DETAILS_SECTION}
[/column]
[/row]
[/layer]
[/stacked_widget]
[/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 = "details_toggle"
definition = "default"
label = _"Add-on Details"
[/button]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "right"
{_GUI_SERVER_CONN_INFO}
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "update_all"
definition = "really_large"
label = _ "Update All"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"
label = _ "Exit"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[resolution]
definition = "addon_manager"
window_width=1281
window_height=801
{GUI_WINDOW_FULLSCREEN}
[tooltip]
id = "tooltip_large"
[/tooltip]
[helptip]
id = "tooltip_large"
[/helptip]
[linked_group]
id = "detail_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 = _ "Add-ons Manager"
[/label]
[/column]
[/row]
[row]
grow_factor = 0
[column]
grow_factor = 0
horizontal_grow = true
vertical_grow = true
#border = "top"
#border_size = 5
{_GUI_ADDON_FILTER_OPTIONS (
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
{_GUI_ADDON_FILTER_BOX}
[/column]
)}
[/column]
[/row]
#{GUI_HORIZONTAL_SPACER_LINE}
[row]
grow_factor = 1
[column]
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
[panel]
definition = "box_display_no_blur_no_border"
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 0
border = "all"
border_size = 10
horizontal_grow = true
vertical_grow = true
[addon_list]
id = "addons"
definition = "default"
install_status_visibility = "visible"
install_buttons_visibility = "visible"
[/addon_list]
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_grow = true
vertical_grow = true
{_GUI_ADDON_DETAILS_SECTION}
[/column]
[/row]
[/grid]
[/panel]
[/column]
[/row]
#{GUI_HORIZONTAL_SPACER_LINE}
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 0
horizontal_alignment = "left"
{_GUI_SERVER_CONN_INFO}
[/column]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "update_all"
definition = "really_large"
label = _ "Update All"
[/button]
[/column]
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "cancel"
definition = "default"
label = _ "Exit"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]
#undef _GUI_ADDON_FILTER_BOX
#undef _GUI_ADDON_FILTER_OPTIONS
#undef _GUI_ADDON_DETAILS_SECTION
#undef _GUI_SERVER_CONN_INFO:TOOLTIP_TLS
#undef _GUI_SERVER_CONN_INFO:TOOLTIP_PLAIN
#undef _GUI_SERVER_CONN_INFO