Kerbal Space Program  1.12.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Public Member Functions | Public Attributes | Properties | List of all members
KSP.UI.UIPanelTweener Class Reference

Very much like UIPanelTransition, only without any predefined states. Use to 'tween' panels to arbitrary positions More...

Inheritance diagram for KSP.UI.UIPanelTweener:
KSP.UI.UITransitionBase

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
 

Detailed Description

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>

Member Function Documentation

delegate void KSP.UI.UIPanelTweener.OnTransitionComplete ( )
void KSP.UI.UIPanelTweener.Transition ( Vector2  tgtPos,
bool  inputLockAfterTransition 
)
inline

Member Data Documentation

bool KSP.UI.UIPanelTweener.lockWhileTransitioning = true
OnTransitionComplete KSP.UI.UIPanelTweener.onTransitionComplete
OnTransitionComplete KSP.UI.UIPanelTweener.onTransitionCompleteTemporary
float KSP.UI.UIPanelTweener.transitionTime = 1f

Property Documentation

Vector2 KSP.UI.UIPanelTweener.PanelPosition
get
bool KSP.UI.UIPanelTweener.Transitioning
getset

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