Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Classes | Public Member Functions | Public Attributes | Properties | List of all members
KSP.UI.UIPanelTransition Class Reference
Inheritance diagram for KSP.UI.UIPanelTransition:
KSP.UI.UITransitionBase KSP.UI.UIPanelTransitionToggle

Classes

class  PanelPosition
 

Public Member Functions

void Transition (string stateName, System.Action onFinished=null)
 
void Transition (int stIndex)
 Transition this panel to its new position immediately - no lerp More...
 
void Transition (int stIndex, System.Action onFinished)
 Transition this panel to its new position immediately - no lerp More...
 
void TransitionImmediate (string stateName, System.Action onFinished=null)
 Transition this panel to its new position immediately - no lerp More...
 
void TransitionImmediate (int stIndex)
 
void TransitionImmediate (int stIndex, System.Action onFinished)
 

Public Attributes

List< GameObject > childrenForDeactivate = new List<GameObject>()
 
bool lockWhileTransitioning = true
 
UnityEngine.Events.UnityEvent onTransitionComplete
 
System.Action onTransitionCompleteTemporary
 
UnityEngine.Events.UnityEvent onTransitionStart
 
string startState = ""
 
PanelPosition[] states
 
float transitionTime = 1f
 
- Public Attributes inherited from KSP.UI.UITransitionBase
Method method = Method.Lerp
 
RectTransform panelTransform
 

Properties

string State [get, set]
 
int StateIndex [get, set]
 
bool Transitioning [get, set]
 

Additional Inherited Members

- Public Types inherited from KSP.UI.UITransitionBase
enum  Method { Method.Linear, Method.Lerp }
 
- Protected Member Functions inherited from KSP.UI.UITransitionBase
void Lerp_Pre (float transitionTime, Vector2 vCrr, Vector2 vTgt)
 
Vector2 Lerp_Transition (float t, Vector2 vCrr, Vector2 vTgt)
 
void Linear_Pre (float transitionTime, Vector2 vCrr, Vector2 vTgt)
 
Vector2 Linear_Transition (float t, Vector2 vCrr, Vector2 vTgt)
 
void SetInteractable (bool interactable)
 
void SetMethod (Method m)
 
- Protected Attributes inherited from KSP.UI.UITransitionBase
Callback< float, Vector2, Vector2 > PrepMethod
 
Func< float, Vector2, Vector2,
Vector2 > 
TransitionMethod
 

Member Function Documentation

void KSP.UI.UIPanelTransition.Transition ( string  stateName,
System.Action  onFinished = null 
)
inline
void KSP.UI.UIPanelTransition.Transition ( int  stIndex)
inline

Transition this panel to its new position immediately - no lerp

Parameters
stIndexTarget state Index
void KSP.UI.UIPanelTransition.Transition ( int  stIndex,
System.Action  onFinished 
)
inline

Transition this panel to its new position immediately - no lerp

Parameters
stIndexTarget state Index
onFinishedCallback
void KSP.UI.UIPanelTransition.TransitionImmediate ( string  stateName,
System.Action  onFinished = null 
)
inline

Transition this panel to its new position immediately - no lerp

Parameters
stateNameTarget state
onFinishedCallback
void KSP.UI.UIPanelTransition.TransitionImmediate ( int  stIndex)
inline
void KSP.UI.UIPanelTransition.TransitionImmediate ( int  stIndex,
System.Action  onFinished 
)
inline

Member Data Documentation

List<GameObject> KSP.UI.UIPanelTransition.childrenForDeactivate = new List<GameObject>()
bool KSP.UI.UIPanelTransition.lockWhileTransitioning = true
UnityEngine.Events.UnityEvent KSP.UI.UIPanelTransition.onTransitionComplete
System.Action KSP.UI.UIPanelTransition.onTransitionCompleteTemporary
UnityEngine.Events.UnityEvent KSP.UI.UIPanelTransition.onTransitionStart
string KSP.UI.UIPanelTransition.startState = ""
PanelPosition [] KSP.UI.UIPanelTransition.states
float KSP.UI.UIPanelTransition.transitionTime = 1f

Property Documentation

string KSP.UI.UIPanelTransition.State
getset
int KSP.UI.UIPanelTransition.StateIndex
getset
bool KSP.UI.UIPanelTransition.Transitioning
getset

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