mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-01 20:31:19 +00:00
new animation disabled_ghosted for whiteboard
This commit is contained in:
parent
de72c4c573
commit
8dcdcfa3d2
@ -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();
|
||||
|
@ -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();
|
||||
|
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user