Kerbal Space Program
1.12.4
|
Very much like UIPanelTransition, only without any predefined states. Use to 'tween' panels to arbitrary positions More...
Public Member Functions | |
delegate void | OnTransitionComplete () |
void | Transition (Vector2 tgtPos, bool inputLockAfterTransition) |
Public Attributes | |
bool | lockWhileTransitioning = true |
OnTransitionComplete | onTransitionComplete |
OnTransitionComplete | onTransitionCompleteTemporary |
float | transitionTime = 1f |
Public Attributes inherited from KSP.UI.UITransitionBase | |
Method | method = Method.Lerp |
RectTransform | panelTransform |
Properties | |
Vector2 | PanelPosition [get] |
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 |
Very much like UIPanelTransition, only without any predefined states. Use to 'tween' panels to arbitrary positions
This class might do well as a base class for UIPanelTransition.... It's got the same basic functionality, minus the state logic. Might refactor this eventually when the UI-related PTSD wears off /remarks>
delegate void KSP.UI.UIPanelTweener.OnTransitionComplete | ( | ) |
|
inline |
bool KSP.UI.UIPanelTweener.lockWhileTransitioning = true |
OnTransitionComplete KSP.UI.UIPanelTweener.onTransitionComplete |
OnTransitionComplete KSP.UI.UIPanelTweener.onTransitionCompleteTemporary |
float KSP.UI.UIPanelTweener.transitionTime = 1f |
|
get |
|
getset |