C# Class kOS.Screen.KOSTextEditPopup

A Unity window that contains the text editor for kOS inside it. It should only be popped into existence when you feed it a file using the AttachTo call.
Inheritance: UnityEngine.MonoBehaviour
Afficher le fichier Open project: KSP-KOS/KOS Class Usage Examples

Méthodes publiques

Méthode Description
AttachTo ( TermWindow termWindow, kOS.Persistence.Volume attachVolume, GlobalPath path ) : void
Awake ( ) : void
Close ( ) : void
Contains ( Vector2 posAbs ) : bool
Freeze ( bool newVal ) : void
GetFocus ( ) : void
GetRect ( ) : Rect
GetUniqueId ( ) : int
KOSTextEditPopup ( ) : System
LoadContents ( kOS.Persistence.Volume vol, GlobalPath path ) : void
LoseFocus ( ) : void
OnGUI ( ) : void
Open ( ) : void
SaveContents ( ) : void
SetUniqueId ( int newValue ) : void
Update ( ) : void

Méthodes protégées

Méthode Description
BuildTitle ( ) : string
CalcInnerCoords ( ) : void
CalcOuterCoords ( ) : void
CheckKeyboard ( ) : void
CheckResizeDrag ( ) : void
DelegateCancel ( KOSTextEditPopup me ) : void
DelegateLoadContents ( KOSTextEditPopup me ) : void
DelegateNoSaveExit ( KOSTextEditPopup me ) : void
DelegateSaveExit ( KOSTextEditPopup me ) : void
DelegateSaveThenLoad ( KOSTextEditPopup me ) : void
DoPageDown ( ) : void
DoPageUp ( ) : void
DrawWindow ( int windowId ) : void
ExitEditor ( ) : void
GetWidgetController ( ) : TextEditor
InvokeDirtySaveExitDialog ( ) : void
InvokeDirtySaveLoadDialog ( ) : void
InvokeReloadConfirmDialog ( ) : void
KeepCursorScrolledInView ( ) : void
ReloadContents ( ) : void

Private Methods

Méthode Description
ProcessWindow ( int windowId ) : void

Method Details

AttachTo() public méthode

public AttachTo ( TermWindow termWindow, kOS.Persistence.Volume attachVolume, GlobalPath path ) : void
termWindow TermWindow
attachVolume kOS.Persistence.Volume
path GlobalPath
Résultat void

Awake() public méthode

public Awake ( ) : void
Résultat void

BuildTitle() protected méthode

protected BuildTitle ( ) : string
Résultat string

CalcInnerCoords() protected méthode

protected CalcInnerCoords ( ) : void
Résultat void

CalcOuterCoords() protected méthode

protected CalcOuterCoords ( ) : void
Résultat void

CheckKeyboard() protected méthode

protected CheckKeyboard ( ) : void
Résultat void

CheckResizeDrag() protected méthode

protected CheckResizeDrag ( ) : void
Résultat void

Close() public méthode

public Close ( ) : void
Résultat void

Contains() public méthode

public Contains ( Vector2 posAbs ) : bool
posAbs Vector2
Résultat bool

DelegateCancel() protected static méthode

protected static DelegateCancel ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
Résultat void

DelegateLoadContents() protected static méthode

protected static DelegateLoadContents ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
Résultat void

DelegateNoSaveExit() protected static méthode

protected static DelegateNoSaveExit ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
Résultat void

DelegateSaveExit() protected static méthode

protected static DelegateSaveExit ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
Résultat void

DelegateSaveThenLoad() protected static méthode

protected static DelegateSaveThenLoad ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
Résultat void

DoPageDown() protected méthode

protected DoPageDown ( ) : void
Résultat void

DoPageUp() protected méthode

protected DoPageUp ( ) : void
Résultat void

DrawWindow() protected méthode

protected DrawWindow ( int windowId ) : void
windowId int
Résultat void

ExitEditor() protected méthode

protected ExitEditor ( ) : void
Résultat void

Freeze() public méthode

public Freeze ( bool newVal ) : void
newVal bool
Résultat void

GetFocus() public méthode

public GetFocus ( ) : void
Résultat void

GetRect() public méthode

public GetRect ( ) : Rect
Résultat UnityEngine.Rect

GetUniqueId() public méthode

public GetUniqueId ( ) : int
Résultat int

GetWidgetController() protected méthode

protected GetWidgetController ( ) : TextEditor
Résultat TextEditor

InvokeDirtySaveExitDialog() protected méthode

protected InvokeDirtySaveExitDialog ( ) : void
Résultat void

InvokeDirtySaveLoadDialog() protected méthode

protected InvokeDirtySaveLoadDialog ( ) : void
Résultat void

InvokeReloadConfirmDialog() protected méthode

protected InvokeReloadConfirmDialog ( ) : void
Résultat void

KOSTextEditPopup() public méthode

public KOSTextEditPopup ( ) : System
Résultat System

KeepCursorScrolledInView() protected méthode

protected KeepCursorScrolledInView ( ) : void
Résultat void

LoadContents() public méthode

public LoadContents ( kOS.Persistence.Volume vol, GlobalPath path ) : void
vol kOS.Persistence.Volume
path GlobalPath
Résultat void

LoseFocus() public méthode

public LoseFocus ( ) : void
Résultat void

OnGUI() public méthode

public OnGUI ( ) : void
Résultat void

Open() public méthode

public Open ( ) : void
Résultat void

ReloadContents() protected méthode

protected ReloadContents ( ) : void
Résultat void

SaveContents() public méthode

public SaveContents ( ) : void
Résultat void

SetUniqueId() public méthode

public SetUniqueId ( int newValue ) : void
newValue int
Résultat void

Update() public méthode

public Update ( ) : void
Résultat void