C# 클래스 KSPAlternateResourcePanel.KSPAlternateResourcePanel

상속: MonoBehaviourExtended
파일 보기 프로젝트 열기: TriggerAu/AlternateResourcePanel 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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