tunit_attack: few layout tweaks

This commit is contained in:
Charles Dang 2016-07-29 18:00:08 +11:00
parent 32e1d2ba45
commit db7d94f4f4
2 changed files with 5 additions and 5 deletions

View file

@ -233,7 +233,7 @@
id = "attacker_weapon"
definition = "default"
linked_group = "weapon"
characters_per_line = 15
characters_per_line = 25
[/label]
[/column]
@ -269,7 +269,7 @@
linked_group = "weapon"
text_alignment = "right"
characters_per_line = 15
characters_per_line = 25
[/label]
[/column]
@ -392,7 +392,7 @@
vertical_placement = "center"
horizontal_placement = "center"
maximum_width = 600
maximum_width = 650
# Both unit panels are the same width.
[linked_group]

View file

@ -205,9 +205,9 @@ static void set_weapon_info(twindow& window,
}
const std::string& attw_apecials =
!attacker_weapon.weapon_specials().empty() ? " " + attacker_weapon.weapon_specials() : "";
!attacker_weapon.weapon_specials().empty() ? " " + attacker_weapon.weapon_specials() : "";
const std::string& defw_specials =
!defender_weapon.weapon_specials().empty() ? " " + defender_weapon.weapon_specials() : "";
!defender_weapon.weapon_specials().empty() ? " " + defender_weapon.weapon_specials() : "";
std::stringstream attacker_stats, defender_stats;