UIStateItemMirror

CJFinc.UItools.UIStateItemMirror

UIStateItemMirror allows to synchronize main UIStateItem item state to another UIStateItem items

Once mirrorItems array is defined

any state change of the main item will be translated to all mirrorItems items

Details

This component require the UIStateItem to be attached to the same game object

Summary
UIStateItemMirrorUIStateItemMirror allows to synchronize main UIStateItem item state to another UIStateItem items
Variables
mirrorItemsArray of UIStateItem items to sync current item state to
Functions
ApplyCurrentState ()Synchronize current UIStateItem state to all mirrorItems

Variables

mirrorItems

public UIStateItem [] mirrorItems

Array of UIStateItem items to sync current item state to

Functions

ApplyCurrentState ()

public override void ApplyCurrentState()

Synchronize current UIStateItem state to all mirrorItems

Called automatically on UIStateItem state change.

UIStateItemExtention is a mediator class of all UIStateItem extension classes
UIStateItemMirror allows to synchronize main UIStateItem item state to another UIStateItem items
UIStateItem implements different UI item states and provides API to switch between them.
public UIStateItem [] mirrorItems
Array of UIStateItem items to sync current item state to
public override void ApplyCurrentState()
Synchronize current UIStateItem state to all mirrorItems
Close