mail[Wesnoth-commits] r43173 - /trunk/src/generate_report.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by alinktomine on June 04, 2010 - 20:59:
Author: alink
Date: Fri Jun  4 20:59:20 2010
New Revision: 43173

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43173&view=rev
Log:
Test tooltip->help feature: Clicking on ToD image or alignement open the help 
page about ToD

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=43173&r1=43172&r2=43173&view=diff
==============================================================================
--- trunk/src/generate_report.cpp (original)
+++ trunk/src/generate_report.cpp Fri Jun  4 20:59:20 2010
@@ -191,7 +191,7 @@
                tooltip << _("Alignement: ")
                        << "<b>" << align << "</b>\n"
                        << string_table[align_id + "_description"];
-               return report(str.str(), "", tooltip.str());
+               return report(str.str(), "", tooltip.str(), "time_of_day");
        }
        case UNIT_ABILITIES: {
                report res;
@@ -491,7 +491,7 @@
                else if (tod.bonus_modified < 0) tod_image += "~DARKEN()";
                if (preferences::flip_time()) tod_image += "~FL(horiz)";
 
-               return report("",tod_image,tooltip.str());
+               return report("",tod_image,tooltip.str(),"time_of_day");
        }
        case TURN: {
                str << resources::tod_manager->turn();




Related Messages


Powered by MHonArc, Updated Fri Jun 04 21:00:10 2010