mail[Wesnoth-commits] r43575 - in /trunk/src: unit.cpp unit.hpp unit_animation.cpp


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

Header


Content

Posted by jeremy . rosen on June 18, 2010 - 22:13:
Author: boucman
Date: Fri Jun 18 22:13:52 2010
New Revision: 43575

URL: http://svn.gna.org/viewcvs/wesnoth?rev=43575&view=rev
Log:
new animation disabled_ghosted for whiteboard

Modified:
    trunk/src/unit.cpp
    trunk/src/unit.hpp
    trunk/src/unit_animation.cpp

Modified: trunk/src/unit.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.cpp?rev=43575&r1=43574&r2=43575&view=diff
==============================================================================
--- trunk/src/unit.cpp (original)
+++ trunk/src/unit.cpp Fri Jun 18 22:13:52 2010
@@ -1698,6 +1698,13 @@
                        with_bars, true);
 }
 
+void unit::set_disabled_ghosted(bool with_bars)
+{
+       game_display *disp = game_display::get_singleton();
+       start_animation(INT_MAX, choose_animation(*disp, loc_, 
"disabled_ghosted"),
+                       with_bars, true);
+}
+
 void unit::set_idling()
 {
        game_display *disp = game_display::get_singleton();

Modified: trunk/src/unit.hpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit.hpp?rev=43575&r1=43574&r2=43575&view=diff
==============================================================================
--- trunk/src/unit.hpp (original)
+++ trunk/src/unit.hpp Fri Jun 18 22:13:52 2010
@@ -199,6 +199,7 @@
        void set_standing(bool with_bars = true);
 
        void set_ghosted(bool with_bars = true);
+       void set_disabled_ghosted(bool with_bars = true);
 
        void set_idling();
        void set_selecting();

Modified: trunk/src/unit_animation.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/unit_animation.cpp?rev=43575&r1=43574&r2=43575&view=diff
==============================================================================
--- trunk/src/unit_animation.cpp (original)
+++ trunk/src/unit_animation.cpp Fri Jun 18 22:13:52 2010
@@ -353,6 +353,10 @@
                animations.back().event_ = utils::split("ghosted");
 
                animations.push_back(*itor);
+               animations.back().unit_anim_.override(0,300,"","0.2");
+               animations.back().event_ = utils::split("disabled_ghosted");
+
+               animations.push_back(*itor);
                
animations.back().unit_anim_.override(0,300,"","0.0~0.3:100,0.3~0.0:200",display::rgb(255,255,255));
                animations.back().event_ = utils::split("selected");
 




Related Messages


Powered by MHonArc, Updated Fri Jun 18 23:00:15 2010