C# Класс KSPAlternateResourcePanel.KSPAlternateResourcePanel

Наследование: MonoBehaviourExtended
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
lstResourcesLastStage ARPResourceList
lstResourcesVessel ARPResourceList
lstResourcesVesselPerStage ARPResourceList>.Dictionary

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

OnFlightReady() публичный Метод

public OnFlightReady ( ) : void
Результат void

OnStageActivate() публичный Метод

public OnStageActivate ( Int32 StageNum ) : void
StageNum System.Int32
Результат void

SelectedResources_ResourceRemoved() публичный Метод

public SelectedResources_ResourceRemoved ( int ResourceID ) : void
ResourceID int
Результат void

btnReturn_OnMouseEnter() публичный Метод

public btnReturn_OnMouseEnter ( MouseEnterEvent e ) : void
e MouseEnterEvent
Результат void

btnReturn_OnMouseLeave() публичный Метод

public btnReturn_OnMouseLeave ( MouseLeaveEvent e ) : void
e MouseLeaveEvent
Результат void

lstResourcesVessel_OnAlarmStateChanged() публичный Метод

public lstResourcesVessel_OnAlarmStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource MonitorState ) : void
sender ARPResource
oldValue ARPResource
newValue ARPResource
MonitorState ARPResource
Результат void

lstResourcesVessel_OnMonitorStateChanged() публичный Метод

public lstResourcesVessel_OnMonitorStateChanged ( ARPResource sender, ARPResource oldValue, ARPResource newValue, ARPResource AlarmState ) : void
sender ARPResource
oldValue ARPResource
newValue ARPResource
AlarmState ARPResource
Результат void

Описание свойств

lstResourcesLastStage публичное свойство

public ARPResourceList lstResourcesLastStage
Результат ARPResourceList

lstResourcesVessel публичное свойство

public ARPResourceList lstResourcesVessel
Результат ARPResourceList

lstResourcesVesselPerStage публичное свойство

public Dictionary lstResourcesVesselPerStage
Результат ARPResourceList>.Dictionary