mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-17 16:34:34 +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
641 lines
14 KiB
INI
641 lines
14 KiB
INI
#textdomain wesnoth-lib
|
|
###
|
|
### Definition of the window to display scenario or campaign statistics
|
|
###
|
|
|
|
#define _GUI_MAIN_STATS_LIST
|
|
[listbox]
|
|
id = "stats_list_main"
|
|
definition = "default"
|
|
|
|
horizontal_scrollbar_mode = "never"
|
|
|
|
[list_definition]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
vertical_grow = true
|
|
horizontal_grow = true
|
|
|
|
[toggle_panel]
|
|
definition = "default"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = "stat_type"
|
|
definition = "default"
|
|
linked_group = "type"
|
|
[/label]
|
|
[/column]
|
|
|
|
# In order to keep the stat_cost label aligned with the 'cost' group linked value in the
|
|
# damage list, we keep the gold icon in a grid with the stat_detail label. Similarly, since
|
|
# border sizes aren't considered in linked group size calculations, we give the border to
|
|
# the grid instead of excluding borders from certain sides of the child cells.
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[grid]
|
|
linked_group = "detail"
|
|
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = "stat_detail"
|
|
definition = "default_small"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
horizontal_grow = true
|
|
|
|
[image]
|
|
id = "cost_icon"
|
|
definition = "default"
|
|
label = "themes/gold.png"
|
|
[/image]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = "stat_cost"
|
|
definition = "default_small"
|
|
linked_group = "cost"
|
|
[/label]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/toggle_panel]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/list_definition]
|
|
|
|
[/listbox]
|
|
#enddef
|
|
|
|
#define _GUI_DAMAGE_STATS_LIST TOP_LEFT_LABEL THIS_TURN_HEADER_ID OVERALL_ID COLID_TYPE COLID_OVERALL COLID_THIS_TURN RATIO_TOOLTIP PERCENT_TOOLTIP
|
|
[listbox]
|
|
id = {OVERALL_ID}
|
|
definition = "default"
|
|
|
|
horizontal_scrollbar_mode = "never"
|
|
|
|
[header]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
definition = "gold_small"
|
|
label = {TOP_LEFT_LABEL}
|
|
linked_group = "type"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
definition = "gold_small"
|
|
label = _ "Overall"
|
|
linked_group = "detail"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
border = "all"
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = {THIS_TURN_HEADER_ID}
|
|
definition = "gold_small"
|
|
linked_group = "cost"
|
|
[/label]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/header]
|
|
|
|
[list_definition]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
vertical_grow = true
|
|
horizontal_grow = true
|
|
|
|
[toggle_panel]
|
|
definition = "default"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "left"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = {COLID_TYPE}
|
|
definition = "default"
|
|
linked_group = "type"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "left"
|
|
border_size = 0
|
|
horizontal_grow = true
|
|
[grid]
|
|
linked_group = "detail"
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = {COLID_OVERALL}
|
|
definition = "default_small"
|
|
tooltip = {RATIO_TOOLTIP}
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = false
|
|
|
|
[label]
|
|
id = "overall_score"
|
|
definition = "default_small"
|
|
text_alignment = "right"
|
|
use_markup = true
|
|
tooltip = {PERCENT_TOOLTIP}
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
|
|
# Spacer to make up for showing only one percentage, not two as in the next table
|
|
[spacer]
|
|
width=10 # TODO: Wild guess. Feel free to adjust
|
|
[/spacer]
|
|
[/column]
|
|
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 0
|
|
horizontal_grow = true
|
|
[grid]
|
|
linked_group = "cost"
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = {COLID_THIS_TURN}
|
|
definition = "default_small"
|
|
tooltip = {RATIO_TOOLTIP}
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = false
|
|
|
|
[label]
|
|
id = "this_turn_score"
|
|
definition = "default_small"
|
|
text_alignment = "right"
|
|
use_markup = true
|
|
tooltip = {PERCENT_TOOLTIP}
|
|
[/label]
|
|
[/column]
|
|
|
|
[/row]
|
|
[/grid]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/toggle_panel]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/list_definition]
|
|
|
|
[/listbox]
|
|
#enddef
|
|
|
|
#define _GUI_UNIT_COUNT_LIST
|
|
[listbox]
|
|
id = "stats_list_units"
|
|
definition = "default"
|
|
has_minimum = false
|
|
|
|
horizontal_scrollbar_mode = "never"
|
|
|
|
[list_definition]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
vertical_grow = true
|
|
horizontal_grow = true
|
|
|
|
[toggle_panel]
|
|
definition = "default"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[image]
|
|
id = "unit_image"
|
|
definition = "default"
|
|
linked_group = "unit_image"
|
|
[/image]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
|
|
[label]
|
|
id = "unit_name"
|
|
definition = "default"
|
|
linked_group = "unit_name"
|
|
[/label]
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
|
|
[spacer]
|
|
width = 10
|
|
[/spacer]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/toggle_panel]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/list_definition]
|
|
|
|
[/listbox]
|
|
#enddef
|
|
|
|
#define _GUI_STATS_TAB_BAR
|
|
[toggle_panel]
|
|
linked_group = "tabs"
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
{_GUI_STATS_TAB_PADDING}
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = all
|
|
border_size = 5
|
|
|
|
[label]
|
|
id = "tab_label"
|
|
wrap = true
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
{_GUI_STATS_TAB_PADDING}
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/toggle_panel]
|
|
#enddef
|
|
|
|
#define _GUI_STATS_TAB_PADDING
|
|
[column]
|
|
border = all
|
|
border_size = 5
|
|
|
|
[spacer]
|
|
width = 10
|
|
[/spacer]
|
|
|
|
[/column]
|
|
#enddef
|
|
|
|
[window]
|
|
id = "statistics_dialog"
|
|
description = "Statistics dialog."
|
|
|
|
[resolution]
|
|
definition = "default"
|
|
|
|
automatic_placement = true
|
|
vertical_placement = "center"
|
|
horizontal_placement = "center"
|
|
|
|
maximum_height = 500
|
|
|
|
[linked_group]
|
|
id = "tabs"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
# Primary groups
|
|
[linked_group]
|
|
id = "type"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "detail"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "cost"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
# Unit groups
|
|
[linked_group]
|
|
id = "unit_image"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "unit_name"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[linked_group]
|
|
id = "unit_count"
|
|
fixed_width = true
|
|
[/linked_group]
|
|
|
|
[tooltip]
|
|
id = "tooltip"
|
|
[/tooltip]
|
|
|
|
[helptip]
|
|
id = "tooltip"
|
|
[/helptip]
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "left"
|
|
|
|
[label]
|
|
id = "title"
|
|
definition = "title"
|
|
|
|
label = _ "Statistics"
|
|
[/label]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
|
|
[menu_button]
|
|
id = "scenario_menu"
|
|
definition = "default"
|
|
[/menu_button]
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
|
|
[column]
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
[grid]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
grow_factor = 1
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
{_GUI_MAIN_STATS_LIST}
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
{_GUI_DAMAGE_STATS_LIST
|
|
(_ "Damage") damage_this_turn_header stats_list_damage damage_type damage_overall damage_this_turn
|
|
(_"stats dialog^Difference of actual outcome to expected outcome, as a percentage.
|
|
The first number in parentheses is the expected number of hitpoints inflicted/taken.
|
|
The sum (or difference) of the two numbers in parentheses is the actual number of hitpoints inflicted/taken.")
|
|
(_"stats dialog^Ratio of actual to expected")}
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 1
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
{_GUI_DAMAGE_STATS_LIST
|
|
(_ "Hits") hits_this_turn_header stats_list_hits hits_type hits_overall hits_this_turn
|
|
# The tooltips are in statistics_dialog::add_hits_row because dynamic data is appended to them
|
|
""
|
|
(_"stats dialog^The <i>a priori</i> probability of inflicting/taking at most this many hits, in percent.
|
|
|
|
Intuitively, this is a measure of how randomness affected this side.
|
|
Values between 0 and 50 suggest the number of hits was less than expected.
|
|
Values between 50 and 100 suggest the number of hits was more than expected.
|
|
|
|
Green values indicate this side fared better than expected.
|
|
Red values indicate this side fared worse than expected.")}
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[column]
|
|
grow_factor = 0
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_grow = true
|
|
vertical_grow = true
|
|
|
|
{_GUI_UNIT_COUNT_LIST}
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[row]
|
|
grow_factor = 0
|
|
|
|
[column]
|
|
border = "all"
|
|
border_size = 5
|
|
horizontal_alignment = "right"
|
|
|
|
[button]
|
|
id = "cancel"
|
|
label = _ "Close"
|
|
[/button]
|
|
|
|
[/column]
|
|
|
|
[/row]
|
|
|
|
[/grid]
|
|
|
|
[/resolution]
|
|
|
|
[/window]
|
|
|
|
#undef _GUI_MAIN_STATS_LIST
|
|
#undef _GUI_DAMAGE_STATS_LIST
|
|
#undef _GUI_UNIT_COUNT_LIST
|
|
#undef _GUI_STATS_TAB_BAR
|
|
#undef _GUI_STATS_TAB_PADDING
|