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

The main frame/window of the Alarm clock More...

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

Public Member Functions

bool AnyTextFieldHasFocus ()
 Do any of the apps text fields have focus More...
 
void CreateAlarm ()
 
bool EditAlarm (AlarmTypeBase alarm)
 
string PrintDate (double ut, bool includeTime, bool includeSeconds)
 
string PrintTime (double ut, int valuesOfInterest, bool explicitPositive)
 
string PrintTimeCompact (double ut, bool explicitPositive)
 
string PrintTimeStampCompact (double ut, bool days, bool years)
 
void SetTimeDisplay (bool asDateTime)
 
void ToggleTimeDisplay ()
 
- Public Member Functions inherited from KSP.UI.GenericAppFrame
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

Toggle activeAlarmsOnlyToggle
 
Toggle activeVesselOnlyToggle
 
TextMeshProUGUI addAlarmHeading
 
UIPanelTransitionToggle addAlarmTransition
 
AlarmClockUIAlarmRow alarmRowPrefab
 
ToggleGroup alarmSelectionGroup
 
Transform alarmsListParent
 
Button createAlarmButton
 
Button editAlarmButton
 
Button switchToAlarmButton
 
Button timeDisplayTypeButton
 
Image timeDisplayTypeDate
 
TextMeshProUGUI timeDisplayTypeSeconds
 
TextMeshProUGUI timeLabel
 
Button warpToAlarmButton
 
- Public Attributes inherited from KSP.UI.GenericAppFrame
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
 

Properties

bool IsDetailsShowing [get]
 Is the details pane showing to the side of the app More...
 
bool TimeAsDateTime [get]
 

Detailed Description

The main frame/window of the Alarm clock

Member Function Documentation

bool KSP.UI.AlarmClockUIFrame.AnyTextFieldHasFocus ( )
inline

Do any of the apps text fields have focus

Returns
True if any fields are focused
void KSP.UI.AlarmClockUIFrame.CreateAlarm ( )
inline
bool KSP.UI.AlarmClockUIFrame.EditAlarm ( AlarmTypeBase  alarm)
inline
string KSP.UI.AlarmClockUIFrame.PrintDate ( double  ut,
bool  includeTime,
bool  includeSeconds 
)
inline
string KSP.UI.AlarmClockUIFrame.PrintTime ( double  ut,
int  valuesOfInterest,
bool  explicitPositive 
)
inline
string KSP.UI.AlarmClockUIFrame.PrintTimeCompact ( double  ut,
bool  explicitPositive 
)
inline
string KSP.UI.AlarmClockUIFrame.PrintTimeStampCompact ( double  ut,
bool  days,
bool  years 
)
inline
void KSP.UI.AlarmClockUIFrame.SetTimeDisplay ( bool  asDateTime)
inline
void KSP.UI.AlarmClockUIFrame.ToggleTimeDisplay ( )
inline

Member Data Documentation

Toggle KSP.UI.AlarmClockUIFrame.activeAlarmsOnlyToggle
Toggle KSP.UI.AlarmClockUIFrame.activeVesselOnlyToggle
TextMeshProUGUI KSP.UI.AlarmClockUIFrame.addAlarmHeading
UIPanelTransitionToggle KSP.UI.AlarmClockUIFrame.addAlarmTransition
AlarmClockUIAlarmRow KSP.UI.AlarmClockUIFrame.alarmRowPrefab
ToggleGroup KSP.UI.AlarmClockUIFrame.alarmSelectionGroup
Transform KSP.UI.AlarmClockUIFrame.alarmsListParent
Button KSP.UI.AlarmClockUIFrame.createAlarmButton
Button KSP.UI.AlarmClockUIFrame.editAlarmButton
Button KSP.UI.AlarmClockUIFrame.switchToAlarmButton
Button KSP.UI.AlarmClockUIFrame.timeDisplayTypeButton
Image KSP.UI.AlarmClockUIFrame.timeDisplayTypeDate
TextMeshProUGUI KSP.UI.AlarmClockUIFrame.timeDisplayTypeSeconds
TextMeshProUGUI KSP.UI.AlarmClockUIFrame.timeLabel
Button KSP.UI.AlarmClockUIFrame.warpToAlarmButton

Property Documentation

bool KSP.UI.AlarmClockUIFrame.IsDetailsShowing
get

Is the details pane showing to the side of the app

bool KSP.UI.AlarmClockUIFrame.TimeAsDateTime
get

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