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

Public Member Functions

void Collapse ()
 Transition the panel to the collapsed state More...
 
void CollapseImmediate ()
 Transition the panel to the collapsed state immediately - no animation More...
 
void Expand ()
 Transition the panel to the expanded state More...
 
void ExpandImmediate ()
 Transition the panel to the expanded state immediately - no animation More...
 
- Public Member Functions inherited from KSP.UI.UIPanelTransition
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)
 

Protected Member Functions

void OnValidate ()
 
- 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)
 

Properties

bool collapsed [get]
 
bool expanded [get]
 
- Properties inherited from KSP.UI.UIPanelTransition
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 }
 
- Public Attributes inherited from KSP.UI.UIPanelTransition
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
 
- Protected Attributes inherited from KSP.UI.UITransitionBase
Callback< float, Vector2, Vector2 > PrepMethod
 
Func< float, Vector2, Vector2,
Vector2 > 
TransitionMethod
 

Member Function Documentation

void KSP.UI.UIPanelTransitionToggle.Collapse ( )
inline

Transition the panel to the collapsed state

void KSP.UI.UIPanelTransitionToggle.CollapseImmediate ( )
inline

Transition the panel to the collapsed state immediately - no animation

void KSP.UI.UIPanelTransitionToggle.Expand ( )
inline

Transition the panel to the expanded state

void KSP.UI.UIPanelTransitionToggle.ExpandImmediate ( )
inline

Transition the panel to the expanded state immediately - no animation

void KSP.UI.UIPanelTransitionToggle.OnValidate ( )
inlineprotected

Property Documentation

bool KSP.UI.UIPanelTransitionToggle.collapsed
get
bool KSP.UI.UIPanelTransitionToggle.expanded
get

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