mail[Wesnoth-commits] r43302 - /trunk/src/whiteboard/manager.cpp


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

Header


Content

Posted by gabrielmorin on June 12, 2010 - 08:23:
Author: gabba
Date: Sat Jun 12 08:23:07 2010
New Revision: 43302

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43302&view=rev
Log:
Whiteboard: experiment with bright team colors instead of white for 
highlighted arrows.

Modified:
    trunk/src/whiteboard/manager.cpp

Modified: trunk/src/whiteboard/manager.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/whiteboard/manager.cpp?rev=43302&r1=43301&r2=43302&view=diff
==============================================================================
--- trunk/src/whiteboard/manager.cpp (original)
+++ trunk/src/whiteboard/manager.cpp Sat Jun 12 08:23:07 2010
@@ -70,8 +70,10 @@
                {
                        display *screen = (display*) resources::screen;
                        move_arrow_.reset(new arrow(screen));
-                       move_arrow_->set_color("white");
-                       move_arrow_->set_alpha(0.5);
+                       //move_arrow_->set_color("white");
+                       int current_side = 
resources::controller->current_side();
+                       
move_arrow_->set_color(team::get_side_color_index(current_side));
+                       move_arrow_->set_alpha(2.0);
                        screen->add_arrow(*move_arrow_);
                }
 
@@ -88,7 +90,7 @@
                        << " from " << subject.get_location()
                        << " to " << route_.back() << "\n";
 
-       move_arrow_->set_color(team::get_side_color_index(current_side));
+       move_arrow_->set_alpha(0.6);
 
        current_team.get_side_actions().queue_move(subject, route_.back(),
                        *(move_arrow_.release()) /* ownership of the arrow 
transferred to the new move action */);




Related Messages


Powered by MHonArc, Updated Sat Jun 12 10:00:11 2010