C# Class KerbalAlarmClock.KerbalAlarmClock

This is the behaviour object that we hook events on to for flight
Inheritance: MonoBehaviourExtended
Datei anzeigen Open project: TriggerAu/KerbalAlarmClock Class Usage Examples

Public Properties

Property Type Description
UpdateInterval float
WindowPosLast UnityEngine.Vector3d
WindowPosLastInited System.Boolean
WindowPosMoveDetectedAt System.DateTime
WindowPosSaved System.Boolean
alarms KACAlarmList
alarmsDisplayed List

Private Properties

Property Type Description
AddContractAutoAlarm void
AddTypeChanged void
AllAssignedCrew List
Awake void
BuildContractStringsAndMargin void
BuildCrewStrings void
BuildRawStrings void
BuildScienceLabStrings void
BuildTransferStrings TransferStrings
BuildTransferStrings TransferStrings
CalcUTTaken Double
CelestialBody CelestialBody
CelestialBodyExists System.Boolean
CheckForFlightChanges void
CheckVesselOrCrewForJump System.Boolean
ContractsReady void
ControlInputLocks void
CreateAlarmRepeats System.Boolean
CreateAutoContracts void
DrawAddAlarm System.Boolean
DrawAlarmActionButtons int
DrawNodeButtons void
DrawNodeWarpButton System.Boolean
DrawQuickOption void
DrawStoredCrewMissing void
DrawStoredVesselIDMissing void
DrawTransferAngleButtons int
EnterKSCFacility void
FillAddMessagesWindow void
FillAddWindow void
FillAlarmWindow void
FillBackupFailedWindow void
FillQuickWindow void
FindVesselForAlarm Vessel
GenerateContractStringsFromContract void
GetBurnMarginSecs double
HandleKeyStrokes void
InitAudio void
InitVariables void
JumpToVessel System.Boolean
KACWorkerGameState_VesselChanged void
LeaveKSCFacility void
MonitorContracts void
MonitorManNodeOnPath void
MonitorSOIOnPath void
MouseOverWindow System.Boolean
NewAddAlarm void
OnDestroy void
OnGUIEvery void
OnGUIOnceOnly void
OnUnpause void
ParseAlarmsAndAffectWarpAndPause void
QuickAddAN KACAlarm
QuickAddAp KACAlarm
QuickAddDN KACAlarm
QuickAddEarth KACAlarm
QuickAddEarth60 KACAlarm
QuickAddManNode KACAlarm
QuickAddPe KACAlarm
QuickAddRaw KACAlarm
QuickAddSOI KACAlarm
RecalcNodeAlarmTimes void
RecalcSOIAlarmTimes void
RecalcTransferAlarmTimes void
RemoveInputLock void
RepeatingWorker void
ResetBackupFailedWindow void
SetUpXferParents void
SetVesselActiveInTS void
SetupQuickList void
SetupXFerTargets void
SetupXferOrigins void
ShowBackupFailedWindow void
SortByDistance int
Start void
StoredCrew ProtoCrewMember
StoredCrewExists System.Boolean
StoredCrewVessel Vessel
StoredVessel Vessel
StoredVesselExists System.Boolean
TriggeredAlarms void
Update void
UpdateContractDetails void
WindowLayout_AddPane_Contract void
WindowLayout_AddPane_Crew void
WindowLayout_AddPane_Maneuver void
WindowLayout_AddPane_NodeEvent void
WindowLayout_AddPane_Raw void
WindowLayout_AddPane_ScienceLab void
WindowLayout_AddPane_Transfer void
WindowLayout_AddTypeApPe void
getVesselIdx int
warpchange void

Public Methods

Method Description
DebugActionTimed ( GameScenes loadedscene ) : void
DebugActionTriggered ( GameScenes loadedscene ) : void
DebugWriter ( ) : void
DrawGUI ( ) : void
FillDebugWindow ( int WindowID ) : void
FillEditWindow ( int WindowID ) : void
KerbalAlarmClock ( ) : System
RestoreManeuverNode ( ManeuverNode newManNode ) : void
RestoreManeuverNodeList ( List newManNodes ) : void
UpdateDetails ( ) : void
UpdateEarthAlarms ( ) : void

Only called when game is in paused state

Private Methods

Method Description
AddContractAutoAlarm ( Contract contract, Double margin, KerbalAlarmClock.AlarmActions action ) : void
AddTypeChanged ( ) : void
AllAssignedCrew ( ) : List
Awake ( ) : void
BuildContractStringsAndMargin ( System.Boolean ForceUpdateMargin = false ) : void
BuildCrewStrings ( ) : void
BuildRawStrings ( ) : void
BuildScienceLabStrings ( ) : void
BuildTransferStrings ( ) : TransferStrings
BuildTransferStrings ( Int32 TargetIndex, System.Boolean SetAddVariables ) : TransferStrings
CalcUTTaken ( Int32 StartIndex, Int32 EndIndex ) : Double
CelestialBody ( String BodyName ) : CelestialBody
CelestialBodyExists ( String BodyName ) : System.Boolean
CheckForFlightChanges ( ) : void
CheckVesselOrCrewForJump ( String ID, KACAlarm aType ) : System.Boolean
ContractsReady ( ) : void
ControlInputLocks ( ) : void
CreateAlarmRepeats ( KACAlarm alarmToCheck, KACAlarm &alarmToAdd ) : System.Boolean
CreateAutoContracts ( KerbalAlarmClock.Settings TypeOfAuto, Contract state, System.Boolean DontCreateAlarmsInsideMargin, Double margin, KerbalAlarmClock.AlarmActions action ) : void
DrawAddAlarm ( KSPPluginFramework.KSPDateTime AlarmDate, KSPPluginFramework.KSPTimeSpan TimeToEvent, KSPPluginFramework.KSPTimeSpan TimeToAlarm, System.Boolean ForceShowRepeat = false ) : System.Boolean
DrawAlarmActionButtons ( KACAlarm tmpAlarm, int &NoOfDoubleLineButtons ) : int
DrawNodeButtons ( ) : void
DrawNodeWarpButton ( System.Boolean Exists, Double UT, KACAlarm aType, String NodeName, System.Boolean WithMargin, Double MarginSecs ) : System.Boolean
DrawQuickOption ( QuickAddItem item ) : void
DrawStoredCrewMissing ( String KerbalName ) : void
DrawStoredVesselIDMissing ( String VesselID ) : void
DrawTransferAngleButtons ( KACAlarm tmpAlarm ) : int
EnterKSCFacility ( ) : void
FillAddMessagesWindow ( int WindowID ) : void
FillAddWindow ( int WindowID ) : void

Draw the Add Window contents

FillAlarmWindow ( int windowID ) : void
FillBackupFailedWindow ( int windowID ) : void
FillQuickWindow ( int WindowID ) : void

Draw the Add Window contents

FindVesselForAlarm ( KACAlarm tmpAlarm ) : Vessel
GenerateContractStringsFromContract ( Contract c, String &AlarmName, String &AlarmNotes ) : void
GetBurnMarginSecs ( KerbalAlarmClock.Settings KerMarginType ) : double
HandleKeyStrokes ( ) : void
InitAudio ( ) : void
InitVariables ( ) : void
JumpToVessel ( Vessel vTarget ) : System.Boolean
KACWorkerGameState_VesselChanged ( Vessel OldVessel, Vessel NewVessel ) : void
LeaveKSCFacility ( ) : void
MonitorContracts ( ) : void
MonitorManNodeOnPath ( ) : void
MonitorSOIOnPath ( ) : void
MouseOverWindow ( Rect WindowRect, System.Boolean WindowVisible ) : System.Boolean
NewAddAlarm ( ) : void

Code to reset the settings etc when the new button is hit

OnDestroy ( ) : void
OnGUIEvery ( ) : void
OnGUIOnceOnly ( ) : void
OnUnpause ( ) : void
ParseAlarmsAndAffectWarpAndPause ( double SecondsTillNextUpdate ) : void
QuickAddAN ( ) : KACAlarm
QuickAddAp ( ) : KACAlarm
QuickAddDN ( ) : KACAlarm
QuickAddEarth ( Int32 Minutes ) : KACAlarm
QuickAddEarth60 ( ) : KACAlarm
QuickAddManNode ( ) : KACAlarm
QuickAddPe ( ) : KACAlarm
QuickAddRaw ( ) : KACAlarm
QuickAddSOI ( ) : KACAlarm
RecalcNodeAlarmTimes ( System.Boolean OverrideDriftThreshold ) : void
RecalcSOIAlarmTimes ( System.Boolean OverrideDriftThreshold ) : void
RecalcTransferAlarmTimes ( System.Boolean OverrideDriftThreshold ) : void
RemoveInputLock ( ) : void
RepeatingWorker ( ) : void
ResetBackupFailedWindow ( ) : void
SetUpXferParents ( ) : void
SetVesselActiveInTS ( Vessel vTarget ) : void
SetupQuickList ( ) : void
SetupXFerTargets ( ) : void
SetupXferOrigins ( ) : void
ShowBackupFailedWindow ( String Message ) : void
SortByDistance ( CelestialBody c1, CelestialBody c2 ) : int
Start ( ) : void
StoredCrew ( String KerbalName ) : ProtoCrewMember
StoredCrewExists ( String KerbalName ) : System.Boolean
StoredCrewVessel ( String KerbalName ) : Vessel
StoredVessel ( String VesselID ) : Vessel
StoredVesselExists ( String VesselID ) : System.Boolean
TriggeredAlarms ( ) : void
Update ( ) : void
UpdateContractDetails ( ) : void
WindowLayout_AddPane_Contract ( ) : void
WindowLayout_AddPane_Crew ( ) : void
WindowLayout_AddPane_Maneuver ( ) : void

Screen Layout for adding Alarm from Maneuver Node

WindowLayout_AddPane_NodeEvent ( System.Boolean PointFound, Double timeToPoint ) : void
WindowLayout_AddPane_Raw ( ) : void
WindowLayout_AddPane_ScienceLab ( ) : void
WindowLayout_AddPane_Transfer ( ) : void
WindowLayout_AddTypeApPe ( ) : void
getVesselIdx ( Vessel vtarget ) : int
warpchange ( ) : void

Method Details

DebugActionTimed() public method

public DebugActionTimed ( GameScenes loadedscene ) : void
loadedscene GameScenes
return void

DebugActionTriggered() public method

public DebugActionTriggered ( GameScenes loadedscene ) : void
loadedscene GameScenes
return void

DebugWriter() public method

public DebugWriter ( ) : void
return void

DrawGUI() public method

public DrawGUI ( ) : void
return void

FillDebugWindow() public method

public FillDebugWindow ( int WindowID ) : void
WindowID int
return void

FillEditWindow() public method

public FillEditWindow ( int WindowID ) : void
WindowID int
return void

KerbalAlarmClock() public method

public KerbalAlarmClock ( ) : System
return System

RestoreManeuverNode() public method

public RestoreManeuverNode ( ManeuverNode newManNode ) : void
newManNode ManeuverNode
return void

RestoreManeuverNodeList() public method

public RestoreManeuverNodeList ( List newManNodes ) : void
newManNodes List
return void

UpdateDetails() public method

public UpdateDetails ( ) : void
return void

UpdateEarthAlarms() public method

Only called when game is in paused state
public UpdateEarthAlarms ( ) : void
return void

Property Details

UpdateInterval public_oe static_oe property

public static float UpdateInterval
return float

WindowPosLast public_oe property

public Vector3d,UnityEngine WindowPosLast
return UnityEngine.Vector3d

WindowPosLastInited public_oe property

public Boolean,System WindowPosLastInited
return System.Boolean

WindowPosMoveDetectedAt public_oe property

public DateTime,System WindowPosMoveDetectedAt
return System.DateTime

WindowPosSaved public_oe property

public Boolean,System WindowPosSaved
return System.Boolean

alarms public_oe static_oe property

public static KACAlarmList alarms
return KACAlarmList

alarmsDisplayed public_oe static_oe property

public static List alarmsDisplayed
return List