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
ファイルを表示 Open project: KSP-KOS/KOS Class Usage Examples

Public Methods

Method 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

Protected Methods

Method 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

Method Description
ProcessWindow ( int windowId ) : void

Method Details

AttachTo() public method

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

Awake() public method

public Awake ( ) : void
return void

BuildTitle() protected method

protected BuildTitle ( ) : string
return string

CalcInnerCoords() protected method

protected CalcInnerCoords ( ) : void
return void

CalcOuterCoords() protected method

protected CalcOuterCoords ( ) : void
return void

CheckKeyboard() protected method

protected CheckKeyboard ( ) : void
return void

CheckResizeDrag() protected method

protected CheckResizeDrag ( ) : void
return void

Close() public method

public Close ( ) : void
return void

Contains() public method

public Contains ( Vector2 posAbs ) : bool
posAbs Vector2
return bool

DelegateCancel() protected static method

protected static DelegateCancel ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
return void

DelegateLoadContents() protected static method

protected static DelegateLoadContents ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
return void

DelegateNoSaveExit() protected static method

protected static DelegateNoSaveExit ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
return void

DelegateSaveExit() protected static method

protected static DelegateSaveExit ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
return void

DelegateSaveThenLoad() protected static method

protected static DelegateSaveThenLoad ( KOSTextEditPopup me ) : void
me KOSTextEditPopup
return void

DoPageDown() protected method

protected DoPageDown ( ) : void
return void

DoPageUp() protected method

protected DoPageUp ( ) : void
return void

DrawWindow() protected method

protected DrawWindow ( int windowId ) : void
windowId int
return void

ExitEditor() protected method

protected ExitEditor ( ) : void
return void

Freeze() public method

public Freeze ( bool newVal ) : void
newVal bool
return void

GetFocus() public method

public GetFocus ( ) : void
return void

GetRect() public method

public GetRect ( ) : Rect
return UnityEngine.Rect

GetUniqueId() public method

public GetUniqueId ( ) : int
return int

GetWidgetController() protected method

protected GetWidgetController ( ) : TextEditor
return TextEditor

InvokeDirtySaveExitDialog() protected method

protected InvokeDirtySaveExitDialog ( ) : void
return void

InvokeDirtySaveLoadDialog() protected method

protected InvokeDirtySaveLoadDialog ( ) : void
return void

InvokeReloadConfirmDialog() protected method

protected InvokeReloadConfirmDialog ( ) : void
return void

KOSTextEditPopup() public method

public KOSTextEditPopup ( ) : System
return System

KeepCursorScrolledInView() protected method

protected KeepCursorScrolledInView ( ) : void
return void

LoadContents() public method

public LoadContents ( kOS.Persistence.Volume vol, GlobalPath path ) : void
vol kOS.Persistence.Volume
path GlobalPath
return void

LoseFocus() public method

public LoseFocus ( ) : void
return void

OnGUI() public method

public OnGUI ( ) : void
return void

Open() public method

public Open ( ) : void
return void

ReloadContents() protected method

protected ReloadContents ( ) : void
return void

SaveContents() public method

public SaveContents ( ) : void
return void

SetUniqueId() public method

public SetUniqueId ( int newValue ) : void
newValue int
return void

Update() public method

public Update ( ) : void
return void