wesnoth/data/gui/window/unit_attack.cfg
Charles Dang 95d9eb7f1b Unit Attack: removed the Choose Weapon text
[ci skip]

Legacy from the GUI1 dialog, not really in line with our current UI.
Replaced it with a spacer.
2018-03-17 00:41:33 +11:00

350 lines
5.4 KiB
INI

#textdomain wesnoth-lib
###
### Definition of the window select which unit to attack
###
#define _GUI_BIG_UNIT_PANEL
[grid]
[row]
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[unit_preview_pane]
id = "attacker_pane"
definition = "unit_minimal_left"
[/unit_preview_pane]
[/column]
{GUI_VERTICAL_SPACER_LINE}
[column]
grow_factor = 1
horizontal_grow = true
border = "all"
border_size = 5
[unit_preview_pane]
id = "defender_pane"
definition = "unit_minimal_right"
image_mods = "~FL(horiz)"
[/unit_preview_pane]
[/column]
[/row]
[/grid]
#enddef
#define _GUI_BIG_WEAPON_PANEL
[grid]
[row]
[column]
horizontal_grow = true
border = "all"
border_size = 5
[listbox]
id = "weapon_list"
definition = "default"
horizontal_scrollbar_mode = "never"
[list_definition]
[row]
[column]
vertical_grow = true
horizontal_grow = true
[toggle_panel]
definition = "default"
return_value_id = "ok"
[grid]
[row]
grow_factor = 1
[column]
grow_factor = 0
horizontal_alignment = "left"
border = "all"
border_size = 5
[image]
id = "attacker_weapon_icon"
definition = "default"
[/image]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "left"
vertical_alignment = "center"
border = "all"
border_size = 5
[label]
id = "attacker_weapon"
definition = "default_small"
linked_group = "weapon"
characters_per_line = 25
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = "center"
vertical_alignment = "center"
border = "all"
border_size = 5
[label]
id = "range"
definition = "default"
text_alignment = "center"
[/label]
[/column]
[column]
grow_factor = 1
horizontal_alignment = "right"
vertical_alignment = "center"
border = "all"
border_size = 5
[label]
id = "defender_weapon"
definition = "default_small"
linked_group = "weapon"
text_alignment = "right"
characters_per_line = 25
[/label]
[/column]
[column]
grow_factor = 0
horizontal_alignment = "right"
border = "all"
border_size = 5
[image]
id = "defender_weapon_icon"
definition = "default"
[/image]
[/column]
[/row]
[/grid]
[/toggle_panel]
[/column]
[/row]
[/list_definition]
[/listbox]
[/column]
[/row]
[/grid]
#enddef
#define _GUI_BUTTON_ROW
[grid]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "damage_calculation"
definition = "default"
label = _ "Damage Calculation"
[/button]
[/column]
[/row]
[row]
[column]
grow_factor = 1
horizontal_alignment = "right"
[grid]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "right"
[button]
id = "ok"
definition = "default"
label = _ "Attack"
[/button]
[/column]
[column]
border = "all"
border_size = 5
[button]
id = "cancel"
definition = "default"
label = _ "Cancel"
[/button]
[/column]
[/row]
[/grid]
[/column]
[/row]
[/grid]
#enddef
[window]
id = "unit_attack"
description = "Unit attack dialog."
[resolution]
definition = "default"
automatic_placement = true
vertical_placement = "center"
horizontal_placement = "center"
# TODO: optimally, this should be enabled, since very long lists of weapon specials
# could make the dialog too long. However, this causes longg player names, et al
# to cause scrollbars to appear, so I'm disabling this for now
# -- vultraz 8/19/2016
#maximum_width = 650
# Both unit panels are the same width.
[linked_group]
id = "unit"
fixed_width = true
[/linked_group]
[linked_group]
id = "unit_image"
fixed_height = true
[/linked_group]
# All weapons share the same size, regardless whether attacker or
# defender.
[linked_group]
id = "weapon"
fixed_width = true
[/linked_group]
[tooltip]
id = "tooltip"
[/tooltip]
[helptip]
id = "tooltip"
[/helptip]
[grid]
[row]
[column]
grow_factor = 1
border = "all"
border_size = 5
horizontal_alignment = "left"
[label]
definition = "title"
label = _ "Attack Enemy"
[/label]
[/column]
[/row]
[row]
[column]
horizontal_grow = true
{_GUI_BIG_UNIT_PANEL}
[/column]
[/row]
{GUI_FILLER_ROW HEIGHT=10}
[row]
[column]
horizontal_grow = true
{_GUI_BIG_WEAPON_PANEL}
[/column]
[/row]
[row]
[column]
horizontal_grow = true
{_GUI_BUTTON_ROW}
[/column]
[/row]
[/grid]
[/resolution]
[/window]
#undef _GUI_BIG_UNIT_PANEL
#undef _GUI_BIG_WEAPON_PANEL
#undef _GUI_BUTTON_ROW