class
#include <bn_blending_actions.h>
blending_transparency_top_weight_loop_action Modifies the weight of the transparency blending for the top layer from a minimum to a maximum. When the weight is equal to the given final state, it goes back to its initial state and vice versa.
Base classes
-
template<typename Property, class PropertyManager>class loop_template_action<fixed, blending_transparency_top_weight_manager>
- Modifies the property by delta from a minimum to a maximum. When the property is equal to the given final state, it goes back to its initial state and vice versa.
Constructors, destructors, conversion operators
- blending_transparency_top_weight_loop_action(int duration_updates, fixed final_transparency_top_weight)
- Constructor.
Public functions
- auto final_transparency_top_weight() const -> fixed
- When the weight of the transparency blending for the top layer is equal to this parameter, it goes back to its initial state and vice versa.
Function documentation
bn:: blending_transparency_top_weight_loop_action:: blending_transparency_top_weight_loop_action(int duration_updates,
fixed final_transparency_top_weight)
Constructor.
Parameters | |
---|---|
duration_updates | How much times the action has to be updated before changing the direction of the weight delta. |
final_transparency_top_weight | When the weight of the transparency blending for the top layer is equal to this parameter, it goes back to its initial state and vice versa. |
This weight must be in the range [0..1].
Keep in mind that transparency and fade blendings can't be enabled at the same time.