C# Class KerbalEngineer.KeyBinding.KeyBinder

Inheritance: UnityEngine.MonoBehaviour
Mostra file Open project: CYBUTEK/KerbalEngineer

Public Methods

Method Description
Load ( ) : void

Loads the key bindings from disk.

Save ( ) : void

Saves the key bindings to disk.

Show ( ) : void

Shows the key binding window.

Protected Methods

Method Description
Awake ( ) : void

Called by unity when component is created.

OnDestroy ( ) : void

Called by unity when component is destroyed.

OnGUI ( ) : void

Called by unity to draw the GUI.

Update ( ) : void

Called by unity every frame.

Private Methods

Method Description
CentreWindow ( ) : void

Centres the window on screen.

KeyBinder ( ) : System
RenderKeyBind ( string name, KeyCode currentBinding, Action acceptClicked ) : void

Renders a key bind option.

RenderWindow ( int id ) : void

Renders the GUI window contents.

UpdateInputLock ( ) : void

Updates the input lock.

Method Details

Awake() protected method

Called by unity when component is created.
protected Awake ( ) : void
return void

Load() public static method

Loads the key bindings from disk.
public static Load ( ) : void
return void

OnDestroy() protected method

Called by unity when component is destroyed.
protected OnDestroy ( ) : void
return void

OnGUI() protected method

Called by unity to draw the GUI.
protected OnGUI ( ) : void
return void

Save() public static method

Saves the key bindings to disk.
public static Save ( ) : void
return void

Show() public static method

Shows the key binding window.
public static Show ( ) : void
return void

Update() protected method

Called by unity every frame.
protected Update ( ) : void
return void