new animation disabled_ghosted for whiteboard

This commit is contained in:
Jérémy Rosen 2010-06-18 20:13:52 +00:00
parent de72c4c573
commit 8dcdcfa3d2
3 changed files with 12 additions and 0 deletions

View File

@ -1698,6 +1698,13 @@ void unit::set_ghosted(bool with_bars)
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();

View File

@ -199,6 +199,7 @@ public:
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();

View File

@ -352,6 +352,10 @@ void unit_animation::fill_initial_animations( std::vector<unit_animation> & anim
animations.back().unit_anim_.override(0,300,"","0.5");
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");