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

A scalable (by dragging the mouse) generic app frame More...

Inheritance diagram for KSP.UI.GenericAppFrame:
KSP.UI.AlarmClockUIFrame KSP.UI.ManeuverToolUIFrame

Public Member Functions

void AddGlobalInputDelegate (UnityAction< PointerEventData > pointerEnter, UnityAction< PointerEventData > pointerExit)
 
void AutoScale ()
 
void OnBeginDragFooter (PointerEventData eventData)
 
void OnBeginDragHeader (PointerEventData eventData)
 
void OnDragFooter (PointerEventData eventData)
 
void OnDragHeader (PointerEventData eventData)
 
void OnEndDragFooter (PointerEventData eventData)
 
void OnEndDragHeader (PointerEventData eventData)
 
void Reposition ()
 
void Setup (ApplicationLauncherButton appLauncherButton, string appName, string displayName)
 
void Setup (ApplicationLauncherButton appLauncherButton, string appName, string displayName, int width, int height)
 
void Setup (ApplicationLauncherButton appLauncherButton, string appName, string displayName, int width, int height, bool scaleHeightToContainList)
 
void UpdateDraggingBounds (int height)
 
void UpdateDraggingBoundsAtBottom (float height, float pos)
 scale and move the transform so it sticks to the bottom Note: only positions based on sizeDelta are affected by scale. Height is not affected by scaling. More...
 

Public Attributes

bool anchorToAppButton = false
 Force the app frame to be anchored to the button More...
 
DragHandler dragFooter
 
DragHandler dragHeader
 
Image gfxBg
 
Image gfxFooter
 
Image gfxHeader
 
TMPro.TextMeshProUGUI header
 
PointerEnterExitHandler hoverController
 
int maxHeight = 476
 
int minHeight = 176
 
UIList scrollList
 

Detailed Description

A scalable (by dragging the mouse) generic app frame

Member Function Documentation

void KSP.UI.GenericAppFrame.AddGlobalInputDelegate ( UnityAction< PointerEventData >  pointerEnter,
UnityAction< PointerEventData >  pointerExit 
)
inline
void KSP.UI.GenericAppFrame.AutoScale ( )
inline
void KSP.UI.GenericAppFrame.OnBeginDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.OnBeginDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.OnDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.OnDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.OnEndDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.OnEndDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.GenericAppFrame.Reposition ( )
inline
void KSP.UI.GenericAppFrame.Setup ( ApplicationLauncherButton  appLauncherButton,
string  appName,
string  displayName 
)
inline
void KSP.UI.GenericAppFrame.Setup ( ApplicationLauncherButton  appLauncherButton,
string  appName,
string  displayName,
int  width,
int  height 
)
inline
void KSP.UI.GenericAppFrame.Setup ( ApplicationLauncherButton  appLauncherButton,
string  appName,
string  displayName,
int  width,
int  height,
bool  scaleHeightToContainList 
)
inline
void KSP.UI.GenericAppFrame.UpdateDraggingBounds ( int  height)
inline
void KSP.UI.GenericAppFrame.UpdateDraggingBoundsAtBottom ( float  height,
float  pos 
)
inline

scale and move the transform so it sticks to the bottom Note: only positions based on sizeDelta are affected by scale. Height is not affected by scaling.

Parameters
heightunscaled height.
posscaled position.

Member Data Documentation

bool KSP.UI.GenericAppFrame.anchorToAppButton = false

Force the app frame to be anchored to the button

DragHandler KSP.UI.GenericAppFrame.dragFooter
DragHandler KSP.UI.GenericAppFrame.dragHeader
Image KSP.UI.GenericAppFrame.gfxBg
Image KSP.UI.GenericAppFrame.gfxFooter
Image KSP.UI.GenericAppFrame.gfxHeader
TMPro.TextMeshProUGUI KSP.UI.GenericAppFrame.header
PointerEnterExitHandler KSP.UI.GenericAppFrame.hoverController
int KSP.UI.GenericAppFrame.maxHeight = 476
int KSP.UI.GenericAppFrame.minHeight = 176
UIList KSP.UI.GenericAppFrame.scrollList

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