Author: alink
Date: Mon Sep 13 19:12:10 2010
New Revision: 46469

URL: http://svn.gna.org/viewcvs/wesnoth?rev=46469&view=rev
Log:
In damage type tooltip, replace the "vs" (which was repeated on each line) by 
":"
and rename the topline "Damage versus:". This better uses space and improves 
readability because the "vs" looked like a unit name (esp. when translated to a 
longer word), which slowed the eye parsing of each list.

Modified:
    trunk/src/generate_report.cpp

Modified: trunk/src/generate_report.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/generate_report.cpp?rev=46469&r1=46468&r2=46469&view=diff
==============================================================================
--- trunk/src/generate_report.cpp (original)
+++ trunk/src/generate_report.cpp Mon Sep 13 19:12:10 2010
@@ -424,7 +424,7 @@
 
                        tooltip << _("Weapon range: ") << "<b>" << range << 
"</b>\n"
                                << _("Damage type: ")  << "<b>" << lang_type << 
"</b>\n"
-                               << _("Damage: ") << "\n";
+                               << _("Damage versus: ") << "\n";
 
                        // Find all the unit types on the map, and
                        // show this weapon's bonus against all the different 
units.
@@ -458,8 +458,7 @@
                        for(std::map<int,std::set<std::string> 
>::reverse_iterator resist = resistances.rbegin(); resist != 
resistances.rend(); ++resist) {
                                int damage = round_damage(base_damage, 
damage_multiplier * resist->first, damage_divisor);
                                tooltip << "<b>" << damage << "</b>  "
-                                               << "<i>(" << 
signed_percent(resist->first-100) << ")</i> "
-                                               << _("vs") << " ";
+                                               << "<i>(" << 
signed_percent(resist->first-100) << ")</i> : ";
                                for(std::set<std::string>::const_iterator i = 
resist->second.begin(); i != resist->second.end(); ++i) {
                                        if(i != resist->second.begin()) {
                                                tooltip << ", ";


_______________________________________________
Wesnoth-commits mailing list
[email protected]
https://mail.gna.org/listinfo/wesnoth-commits

Reply via email to