Table of Contents

Class ModularPopupAnimator

Namespace
Fallencake.UI
Assembly
Fallencake.UI.dll

Animator for show/hide popup sequences using a list of PopupTweenParameters. Ensures completion callbacks fire with the longest tween of each phase.

public class ModularPopupAnimator : PopupTweenAnimator, IPopupTweenAnimator
Inheritance
object
Object
Component
Behaviour
MonoBehaviour
ModularPopupAnimator
Implements
Inherited Members

Properties

TweenParameters

Popup tweens that compose the show/hide animations.

public List<PopupTweenParameters> TweenParameters { get; }

Property Value

List<PopupTweenParameters>

Methods

AddNewItem()

Adds a new popup tween entry.

public void AddNewItem()

Hide()

Overload without completion callback.

public void Hide()

Hide(Action)

public override void Hide(Action onComplete = null)

Parameters

onComplete Action

HideInstantly(Action)

public override void HideInstantly(Action onComplete = null)

Parameters

onComplete Action

InitializeTintParameters()

Initializes tint parameters to capture current colors if UseCurrentColorAsStart is enabled

protected override void InitializeTintParameters()

RemoveItem(int)

Removes a tween entry by index.

public void RemoveItem(int index)

Parameters

index int

Zero-based index of the tween to remove.

Show()

Overload without completion callback.

public void Show()

Show(Action)

public override void Show(Action onComplete = null)

Parameters

onComplete Action