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

Controls everything in the tweening canvas. Will destroy everything in this canvas on scene load requested. More...

Inheritance diagram for KSP.UI.TweeningController:

Public Types

enum  TweeningFunction { TweeningFunction.LINEAR = 0, TweeningFunction.EASEINBACK = 1 }
 

Public Member Functions

ResizingLayoutElement SpawnResizingLayoutElement (RectTransform target, int index, int siblingIndex, float startHeight, float endHeight, float duration, bool destroyOnCompletion, bool addElementOnTopOfList)
 
void Tween (RectTransform tweeningElement, Vector2 startPos, Vector2 endPos, float duration, TweeningFunction tweeningFunction, Callback onComplete)
 
bool TweenIntoList (RectTransform tweeningElement, RectTransform target, int inverseStageIndex, int siblingIndex, float duration, Callback onComplete)
 

Public Attributes

RectTransform tweeningPlane
 

Static Public Attributes

static TweeningController Instance
 

Properties

bool isTweening [get]
 

Detailed Description

Controls everything in the tweening canvas. Will destroy everything in this canvas on scene load requested.

Member Enumeration Documentation

enum KSP.UI.TweeningController.TweeningFunction
Enumerator
LINEAR 
EASEINBACK 

Member Function Documentation

ResizingLayoutElement KSP.UI.TweeningController.SpawnResizingLayoutElement ( RectTransform  target,
int  index,
int  siblingIndex,
float  startHeight,
float  endHeight,
float  duration,
bool  destroyOnCompletion,
bool  addElementOnTopOfList 
)
inline
void KSP.UI.TweeningController.Tween ( RectTransform  tweeningElement,
Vector2  startPos,
Vector2  endPos,
float  duration,
TweeningFunction  tweeningFunction,
Callback  onComplete 
)
inline
bool KSP.UI.TweeningController.TweenIntoList ( RectTransform  tweeningElement,
RectTransform  target,
int  inverseStageIndex,
int  siblingIndex,
float  duration,
Callback  onComplete 
)
inline

Member Data Documentation

TweeningController KSP.UI.TweeningController.Instance
static
RectTransform KSP.UI.TweeningController.tweeningPlane

Property Documentation

bool KSP.UI.TweeningController.isTweening
get

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