C# Class KSPAlternateResourcePanel.KSPAlternateResourcePanel

Inheritance: MonoBehaviourExtended
Datei anzeigen Open project: TriggerAu/AlternateResourcePanel Class Usage Examples

Public Properties

Property Type Description
lstResourcesLastStage ARPResourceList
lstResourcesVessel ARPResourceList
lstResourcesVesselPerStage ARPResourceList>.Dictionary

Public Methods

Method Description
OnFlightReady ( ) : void
OnStageActivate ( Int32 StageNum ) : void
SelectedResources_ResourceRemoved ( int ResourceID ) : void
btnReturn_OnMouseEnter ( MouseEnterEvent e ) : void
btnReturn_OnMouseLeave ( MouseLeaveEvent e ) : void
lstResourcesVessel_OnAlarmStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource MonitorState ) : void
lstResourcesVessel_OnMonitorStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource AlarmState ) : void

Private Methods

Method Description
AppLauncherButtonMutuallyExclusive ( System.Boolean Enable ) : void
Awake ( ) : void
DestroyAppLauncherButton ( ) : void
DestroyToolbarButton ( IButton btnToDestroy ) : void

Destroys theToolbarButtonWrapper object

FixedUpdate ( ) : void
GetLastStage ( List Parts ) : Int32

Should be self explanatory

GetResourceDisplayvaluefromDef ( String ResourceName ) : ResourceSettings.DisplayUnitsEnum

get the displayvalue from the resourcedef if there is one

InitAppLauncherButton ( ) : ApplicationLauncherButton
InitAudio ( ) : void
InitDebugWindow ( ) : void
InitMainWindow ( ) : void
InitResourceConfigWindow ( ) : void
InitSettingsWindow ( ) : void
InitToolbarButton ( ) : IButton

initialises a Toolbar Button for this mod

IsMouseOver ( ) : System.Boolean

Is the mouse over the main or settings windows or the button

KSPAlternateResourcePanel ( ) : System
LateUpdate ( ) : void
OnDestroy ( ) : void
OnGUIAppLauncherReady ( ) : void

Sets up the App Button - no longer called by the event as that only happens on StartMenu->SpaceCenter now

OnGUIAppLauncherUnreadifying ( GameScenes SceneToLoad ) : void
OnGUIEvery ( ) : void
OnGUIOnceOnly ( ) : void
RepeatingWorker ( ) : void

Heres where the heavy lifting should occur

ReplaceStockAppButton ( ) : IEnumerator
SetAppButtonToTrue ( ) : void
SetToolbarIcon ( IButton btnReturn ) : void
Start ( ) : void
Update ( ) : void
UpdateWindowYs ( List ListOfWindows ) : void

Worker that spaces out the windows in the Y axis to pad em

VerifyResources ( ) : void

This will add any missing resources to the settings objects befoe we run so we have records for all

onAppLaunchHoverOff ( ) : void
onAppLaunchHoverOn ( ) : void
onAppLaunchToggleOff ( ) : void
onAppLaunchToggleOn ( ) : void

Method Details

OnFlightReady() public method

public OnFlightReady ( ) : void
return void

OnStageActivate() public method

public OnStageActivate ( Int32 StageNum ) : void
StageNum System.Int32
return void

SelectedResources_ResourceRemoved() public method

public SelectedResources_ResourceRemoved ( int ResourceID ) : void
ResourceID int
return void

btnReturn_OnMouseEnter() public method

public btnReturn_OnMouseEnter ( MouseEnterEvent e ) : void
e MouseEnterEvent
return void

btnReturn_OnMouseLeave() public method

public btnReturn_OnMouseLeave ( MouseLeaveEvent e ) : void
e MouseLeaveEvent
return void

lstResourcesVessel_OnAlarmStateChanged() public method

public lstResourcesVessel_OnAlarmStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource MonitorState ) : void
sender ARPResource
oldValue ARPResource
newValue ARPResource
MonitorState ARPResource
return void

lstResourcesVessel_OnMonitorStateChanged() public method

public lstResourcesVessel_OnMonitorStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource AlarmState ) : void
sender ARPResource
oldValue ARPResource
newValue ARPResource
AlarmState ARPResource
return void

Property Details

lstResourcesLastStage public_oe property

public ARPResourceList lstResourcesLastStage
return ARPResourceList

lstResourcesVessel public_oe property

public ARPResourceList lstResourcesVessel
return ARPResourceList

lstResourcesVesselPerStage public_oe property

public Dictionary lstResourcesVesselPerStage
return ARPResourceList>.Dictionary