PixelCrushers.DialogueSystem.UIShowHideController Class Reference

Public Types

enum  TransitionMode { TransitionMode.State, TransitionMode.Trigger }
 
enum  State {
  State.Undefined, State.Showing, State.Shown, State.Hiding,
  State.Hidden
}
 

Public Member Functions

 UIShowHideController (GameObject gameObjectToControl, Component panelToControl, TransitionMode animationMode=TransitionMode.Trigger, bool debug=false)
 
void Show (string showState, bool pauseAfterAnimation, System.Action callback, bool wait=true)
 
void Hide (string hideState, System.Action callback)
 
void ClearTrigger (string triggerName)
 

Static Public Attributes

static float maxWaitDuration = 5
 Maximum number of seconds to wait for show/hide animation. More...
 

Properties

Component panel [get, set]
 
State state [get, set]
 
bool debug [get, set]
 

Member Enumeration Documentation

◆ State

Enumerator
Undefined 
Showing 
Shown 
Hiding 
Hidden 

◆ TransitionMode

Constructor & Destructor Documentation

◆ UIShowHideController()

PixelCrushers.DialogueSystem.UIShowHideController.UIShowHideController ( GameObject  gameObjectToControl,
Component  panelToControl,
TransitionMode  animationMode = TransitionMode.Trigger,
bool  debug = false 
)

Member Function Documentation

◆ ClearTrigger()

void PixelCrushers.DialogueSystem.UIShowHideController.ClearTrigger ( string  triggerName)

◆ Hide()

void PixelCrushers.DialogueSystem.UIShowHideController.Hide ( string  hideState,
System.Action  callback 
)

◆ Show()

void PixelCrushers.DialogueSystem.UIShowHideController.Show ( string  showState,
bool  pauseAfterAnimation,
System.Action  callback,
bool  wait = true 
)

Member Data Documentation

◆ maxWaitDuration

float PixelCrushers.DialogueSystem.UIShowHideController.maxWaitDuration = 5
static

Maximum number of seconds to wait for show/hide animation.

Property Documentation

◆ debug

bool PixelCrushers.DialogueSystem.UIShowHideController.debug
getset

◆ panel

Component PixelCrushers.DialogueSystem.UIShowHideController.panel
getset

◆ state

State PixelCrushers.DialogueSystem.UIShowHideController.state
getset

The documentation for this class was generated from the following file: