bn::blending_transparency_top_weight_toggle_action class

Changes the weight of the transparency blending for the top layer when the action is updated a given number of times.

Base classes

template<typename Property, class PropertyManager>
class toggle_template_action<fixed, blending_transparency_top_weight_manager>
Changes the property when the action is updated a given number of times.

Constructors, destructors, conversion operators

blending_transparency_top_weight_toggle_action(int duration_updates, fixed new_transparency_top_weight)
Constructor.

Public functions

auto new_transparency_top_weight() const -> fixed
Returns the weight of the transparency blending for the top layer when the action is updated the given number of times.

Function documentation

bn::blending_transparency_top_weight_toggle_action::blending_transparency_top_weight_toggle_action(int duration_updates, fixed new_transparency_top_weight)

Constructor.

Parameters
duration_updates How much times the action has to be updated to change the weight of the transparency blending for the top layer.
new_transparency_top_weight New weight of the transparency blending for the top layer when the action is updated duration_updates times.

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.