wesnoth/data/gui/window/game_version.cfg
Subhraman Sarkar 92d66554dd
UI : About dialog (#8803)
* Redesigned the version dialog to serve as a general purpose About dialog.

* Credits button removed from title screen

* Moved community dialog contents to about dialog as new tab

Co-Authored-By: Pentarctagon

* Bugfixes to the tab_container widget

* Success indication mechanism on copy buttons
2024-05-21 09:43:32 +05:30

994 lines
19 KiB
INI

#textdomain wesnoth-lib
#define _GUI_GAME_PATHS_ENTRY ID_STEM LABEL
[row]
grow_factor = 0
[column]
grow_factor = 0
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
id = "label_"+{ID_STEM}
definition = "default"
label = {LABEL}
[/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]
[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_VERINFO_TAB
[toggle_panel]
linked_group = "tabs"
[grid]
[row]
{_GUI_VERINFO_TAB_PADDING}
[column]
grow_factor = 1
border = all
border_size = 8
horizontal_alignment = "left"
[label]
definition = "default_italic"
id = "tab_label"
wrap = true
[/label]
[/column]
{_GUI_VERINFO_TAB_PADDING}
[/row]
[/grid]
[/toggle_panel]
#enddef
#define _GUI_VERINFO_TAB_PAGE_GENERAL
[row]
[column]
vertical_alignment = top
horizontal_alignment = left
[grid]
[row]
[column]
border = "left,bottom"
border_size = 5
horizontal_alignment = left
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "✦ <b>Version:</b>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "left"
border_size = 5
[label]
id = version
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
border = "left,bottom"
border_size = 5
horizontal_alignment = left
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "✦ <b>Running on:</b>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "left"
border_size = 5
[label]
id = os
use_markup = yes
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
border = "left,bottom"
border_size = 5
horizontal_alignment = left
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "✦ <b>Architecture:</b>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "left"
border_size = 5
[label]
id = arch
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
border = "left,bottom"
border_size = 5
horizontal_alignment = left
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "✦ <b>Homepage:</b>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "left"
border_size = 5
[label]
label = _ "<span foreground='yellow'><u>https://www.wesnoth.org</u></span>"
use_markup = yes
link_aware = yes
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
border = "left,bottom"
border_size = 5
horizontal_alignment = left
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "✦ <b>Wiki:</b>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "left"
border_size = 5
[label]
label = _ "<span foreground='yellow'><u>https://wiki.wesnoth.org</u></span>"
use_markup = yes
link_aware = yes
[/label]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
[spacer]
height = 20
[/spacer]
[/column]
[/row]
[row]
[column]
vertical_alignment = bottom
horizontal_alignment = left
border = left
border_size = 5
[grid]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "<i>➤ Copy a full report here:</i>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = left
border = "all"
border_size = 10
[button]
id = "copy_all"
definition = copy
[/button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "<i>➤ Report an issue or request a feature:</i>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 1
horizontal_alignment = left
border = "all"
border_size = 10
[button]
id = "issue"
definition = "default"
label = _ "Report Issue"
[/button]
[/column]
[/row]
[row]
[column]
horizontal_alignment = left
[label]
label = _ "<i>➤ Re-open the version migrator dialog:</i>"
use_markup = yes
[/label]
[/column]
[column]
grow_factor = 1
horizontal_alignment = left
border = all
border_size = 10
[button]
id = "run_migrator"
#po: button to open the version migration dialog manually to re-migrate add-ons and the preferences file
label = _ "Migrate"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[/row]
#enddef
#define _GUI_VERINFO_TAB_PADDING
[column]
border = all
border_size = 7
[spacer][/spacer]
[/column]
#enddef
#define _GUI_VERINFO_TAB_PAGE_GAME_PATHS
[row]
[column]
horizontal_grow = true
vertical_alignment = top
[grid]
#
# NOTE: the following ids must follow the C++ code's expectations
# (see gui2::tgame_version::path_map_).
#
{_GUI_GAME_PATHS_ENTRY datadir ( _ "Game data:")}
{_GUI_GAME_PATHS_ENTRY config ( _ "Configuration:")}
{_GUI_GAME_PATHS_ENTRY userdata ( _ "User data:")}
{_GUI_GAME_PATHS_ENTRY saves ( _ "Saved games:")}
{_GUI_GAME_PATHS_ENTRY addons ( _ "Add-ons:")}
{_GUI_GAME_PATHS_ENTRY cache ( _ "Cache:")}
{_GUI_GAME_PATHS_ENTRY logs ( _ "Logs:")}
{_GUI_GAME_PATHS_ENTRY screenshots ( _ "Screenshots:")}
[/grid]
[/column]
[/row]
[row]
[column]
[grid]
[row]
[column]
[spacer]
height = 20
[/spacer]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
[grid]
[row]
[column]
horizontal_alignment = left
border = all
border_size = 5
[button]
id = "open_stderr"
label = _ "Log File"
tooltip = _ "Opens the log file pertaining to the current session, which may contain useful debug information"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
#enddef
#define _GUI_VERINFO_TAB_PAGE_BUILD_INFO
[row]
[column]
horizontal_grow = true
vertical_alignment = top
border = "left,right,bottom"
border_size = 5
[listbox]
id = "deps_listbox"
definition = "default"
[header]
[row]
[column]
horizontal_grow = true
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = _ "library^Name"
linked_group = "dep_name"
[/label]
[/column]
[column]
horizontal_grow = true
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = _ "library^Build version"
text_alignment = "center"
linked_group = "dep_build_version"
[/label]
[/column]
[column]
horizontal_grow = true
border = "all"
border_size = 5
[label]
definition = "gold_small"
label = _ "library^Runtime version"
text_alignment = "center"
linked_group = "dep_rt_version"
[/label]
[/column]
[/row]
[/header]
[list_definition]
[row]
[column]
horizontal_grow = true
vertical_grow = true
[toggle_panel]
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "dep_name"
definition = "default"
linked_group = "dep_name"
wrap = true
[/label]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "dep_build_version"
linked_group = "dep_build_version"
text_alignment = "center"
wrap = true
[/label]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "dep_rt_version"
linked_group = "dep_rt_version"
text_alignment = "center"
wrap = true
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[/column]
[/row]
#enddef
#define _GUI_VERINFO_TAB_PAGE_GAME_FEATURES
[row]
grow_factor = 0
[column]
horizontal_alignment = left
vertical_alignment = top
border = "all"
border_size = 5
[label]
label = _ "The following features were selected when building this version of Wesnoth:"
wrap = true
[/label]
[/column]
[/row]
[row]
grow_factor = 1
[column]
horizontal_grow = true
vertical_alignment = top
border = "all"
border_size = 5
[listbox]
id = "opts_listbox"
definition = "default"
[list_definition]
[row]
[column]
horizontal_grow = true
vertical_grow = true
[toggle_panel]
[grid]
[row]
[column]
grow_factor = 2
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "opt_name"
linked_group = "opt_name"
wrap = true
[/label]
[/column]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[label]
id = "opt_status"
definition = "default_large"
linked_group = "opt_status"
[/label]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[/column]
[/row]
#enddef
#define _GUI_VERINFO_TAB_PAGE_COMMUNITY
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "forums"
definition = "default"
#po: this is on a button that opens the Wesnoth forums webpage
label = _ "Forums"
[/button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "discord"
definition = "default"
#po: this is on a button that opens the Wesnoth Discord server webpage
label = _ "Discord"
[/button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "irc"
definition = "default"
#po: this is on a button that opens the Wesnoth IRC webpage. IRC is an acronym for Internet Relay Chat
label = _ "IRC"
[/button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "steam"
definition = "default"
#po: this is on a button that opens the Wesnoth Steam forums webpage
label = _ "Steam"
[/button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "reddit"
definition = "default"
#po: this is on a button that opens the Wesnoth Reddit webpage
label = _ "Reddit"
[/button]
[/column]
[/row]
[row]
grow_factor = 1
[column]
border = "all"
border_size = 10
[button]
id = "donate"
definition = "default"
#po: this is on a button that opens the Wesnoth SPI webpage for sending donations
label = _ "Donate"
[/button]
[/column]
[/row]
#enddef
#define _GUI_WRAP_IN_PANEL GRID_CONTENTS
[row]
[column]
horizontal_grow = true
vertical_grow = true
[panel]
definition = "box_display"
[grid]
{GRID_CONTENTS}
[/grid]
[/panel]
[/column]
[/row]
#enddef
[window]
id = "game_version"
description = "List of paths used by the game to locate resource and configuration files."
[resolution]
definition = "default"
maximum_width = 1200
maximum_height = 700
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[linked_group]
id = "tabs"
fixed_width = true
fixed_height = true
[/linked_group]
[linked_group]
id = "dep_name"
fixed_width = true
[/linked_group]
[linked_group]
id = "dep_build_version"
fixed_width = true
[/linked_group]
[linked_group]
id = "dep_rt_version"
fixed_width = true
[/linked_group]
[linked_group]
id = "opt_name"
fixed_width = true
[/linked_group]
[linked_group]
id = "opt_status"
fixed_width = true
[/linked_group]
[grid]
[row]
[column]
horizontal_alignment = center
vertical_alignment = top
border = all
border_size = 5
[image]
label = "misc/logo-bg.png~BLIT(misc/logo.png)~SCALE_INTO(400,300)"
[/image]
[/column]
[/row]
[row]
[column]
horizontal_alignment = center
vertical_alignment = top
border = all
border_size = 5
[label]
id = description
definition = default_italic
label = _ "An open source, turn-based strategy game with a high fantasy theme."
wrap = true
[/label]
[/column]
[/row]
[row]
[column]
[spacer]
height = 15
[/spacer]
[/column]
[/row]
[row]
[column]
horizontal_alignment = center
[grid]
[row]
[column]
horizontal_alignment = center
[grid]
[row]
[column]
border = "left"
border_size = 5
vertical_alignment = "top"
horizontal_alignment = "center"
[tab_container]
id = tabs
definition = "left_tabs"
[tab]
name = _ "General"
[data]
{_GUI_WRAP_IN_PANEL {_GUI_VERINFO_TAB_PAGE_GENERAL}}
[/data]
[/tab]
[tab]
name = _ "Paths"
[data]
{_GUI_WRAP_IN_PANEL {_GUI_VERINFO_TAB_PAGE_GAME_PATHS}}
[/data]
[/tab]
[tab]
name = _ "Libraries"
[data]
{_GUI_WRAP_IN_PANEL {_GUI_VERINFO_TAB_PAGE_BUILD_INFO}}
[/data]
[/tab]
[tab]
name = _ "Features"
[data]
{_GUI_WRAP_IN_PANEL {_GUI_VERINFO_TAB_PAGE_GAME_FEATURES}}
[/data]
[/tab]
[tab]
name = _ "Community"
[data]
{_GUI_WRAP_IN_PANEL {_GUI_VERINFO_TAB_PAGE_COMMUNITY}}
[/data]
[/tab]
[/tab_container]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/column]
[/row]
[row]
[column]
[spacer]
height = 15
[/spacer]
[/column]
[/row]
[row]
grow_factor = 0
[column]
horizontal_grow = true
[grid]
[row]
[column]
horizontal_alignment = left
[grid]
[row]
[column]
grow_factor = 1
horizontal_alignment = left
border = "all"
border_size = 5
[button]
id = "credits"
definition = "default"
label = _ "Credits"
[/button]
[/column]
[column]
grow_factor = 1
horizontal_alignment = left
border = "all"
border_size = 5
[button]
id = "license"
definition = "default"
label = _ "License"
[/button]
[/column]
[/row]
[/grid]
[/column]
[column]
grow_factor = 1
horizontal_alignment = right
border = "all"
border_size = 5
[button]
id = "ok"
definition = "default"
label = _ "Close"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
[/resolution]
[/window]
#undef _GUI_GAME_PATHS_ENTRY
#undef _GUI_VERINFO_TAB
#undef _GUI_VERINFO_TAB_PADDING
#undef _GUI_VERINFO_TAB_PAGE_GAME_PATHS
#undef _GUI_VERINFO_TAB_PAGE_BUILD_INFO
#undef _GUI_VERINFO_TAB_PAGE_GAME_FEATURES