class
#include <bn_sprite_palettes_actions.h>
sprite_palettes_fade_toggle_action Changes the intensity of the fade effect applied to all sprite color palettes when the action is updated a given number of times.
Base classes
-
template<typename Property, class PropertyManager>class toggle_template_action<fixed, sprite_palettes_fade_manager>
- Changes the property when the action is updated a given number of times.
Constructors, destructors, conversion operators
- sprite_palettes_fade_toggle_action(int duration_updates, fixed new_intensity)
- Constructor.
Public functions
- auto new_intensity() const -> fixed
- Returns the intensity when the action is updated the given number of times.
Function documentation
bn:: sprite_palettes_fade_toggle_action:: sprite_palettes_fade_toggle_action(int duration_updates,
fixed new_intensity)
Constructor.
Parameters | |
---|---|
duration_updates | How much times the action has to be updated to change the intensity. |
new_intensity | New intensity when the action is updated duration_updates times. |
This intensity must be in the range [0..1].