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.MessageSystemAppFrame Class Reference

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

Inheritance diagram for KSP.UI.MessageSystemAppFrame:

Public Member Functions

void AddGlobalInputDelegate (UnityAction< PointerEventData > pointerEnter, UnityAction< PointerEventData > pointerExit)
 
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 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...
 
TMPro.TextMeshProUGUI deleteButtonText
 Delete button text More...
 
PointerClickHandler deleteHandler
 Contains the delete button PointerClickHandler in order to make it accessible for the MessageSystem and let it assign the delete messages method. More...
 
DragHandler dragFooter
 App frame drag footer, assists the app frame resize More...
 
DragHandler dragHeader
 App frame drag header, assists the app frame resize More...
 
TMPro.TextMeshProUGUI header
 App text title More...
 
PointerEnterExitHandler hoverController
 Controls if the pointer enters or exits the AppFrame More...
 
int maxHeight = 476
 
int minHeight = 176
 
UIList scrollList
 App messages list container More...
 

Detailed Description

A scalable (by dragging the mouse) messaging app frame

Member Function Documentation

void KSP.UI.MessageSystemAppFrame.AddGlobalInputDelegate ( UnityAction< PointerEventData >  pointerEnter,
UnityAction< PointerEventData >  pointerExit 
)
inline
void KSP.UI.MessageSystemAppFrame.OnBeginDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.OnBeginDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.OnDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.OnDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.OnEndDragFooter ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.OnEndDragHeader ( PointerEventData  eventData)
inline
void KSP.UI.MessageSystemAppFrame.Reposition ( )
inline
void KSP.UI.MessageSystemAppFrame.Setup ( ApplicationLauncherButton  appLauncherButton,
string  appName,
string  displayName 
)
inline
void KSP.UI.MessageSystemAppFrame.Setup ( ApplicationLauncherButton  appLauncherButton,
string  appName,
string  displayName,
int  width,
int  height 
)
inline
void KSP.UI.MessageSystemAppFrame.UpdateDraggingBounds ( int  height)
inline
void KSP.UI.MessageSystemAppFrame.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.MessageSystemAppFrame.anchorToAppButton = false

Force the app frame to be anchored to the button

TMPro.TextMeshProUGUI KSP.UI.MessageSystemAppFrame.deleteButtonText

Delete button text

PointerClickHandler KSP.UI.MessageSystemAppFrame.deleteHandler

Contains the delete button PointerClickHandler in order to make it accessible for the MessageSystem and let it assign the delete messages method.

DragHandler KSP.UI.MessageSystemAppFrame.dragFooter

App frame drag footer, assists the app frame resize

DragHandler KSP.UI.MessageSystemAppFrame.dragHeader

App frame drag header, assists the app frame resize

TMPro.TextMeshProUGUI KSP.UI.MessageSystemAppFrame.header

App text title

PointerEnterExitHandler KSP.UI.MessageSystemAppFrame.hoverController

Controls if the pointer enters or exits the AppFrame

int KSP.UI.MessageSystemAppFrame.maxHeight = 476
int KSP.UI.MessageSystemAppFrame.minHeight = 176
UIList KSP.UI.MessageSystemAppFrame.scrollList

App messages list container


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