Space Engineers
|
Terminal control for specified block type. E.g. Torque slider for stator More...
Public Member Functions | |
delegate void | WriterDelegate (TBlock block, StringBuilder writeTo) |
MyGuiControlBase | GetGuiControl () |
Returns control to show in terminal. When control does not exists yet, it creates it More... | |
MyTerminalControl (string id) | |
void | UpdateVisual () |
This updates a control that is currently displayed, allowing you to refresh it's state More... | |
void | RedrawControl () |
Recreates the control GUI. This allows you to update the Title of some controls. More... | |
Public Attributes | |
readonly string | Id |
Func< TBlock, bool > | Enabled = (b) => true |
Func< TBlock, bool > | Visible = (b) => true |
Static Public Attributes | |
static readonly float | PREFERRED_CONTROL_WIDTH = 400f / MyGuiConstants.GUI_OPTIMAL_SIZE.X |
static readonly MyTerminalBlock[] | Empty = new MyTerminalBlock[0] |
Protected Member Functions | |
abstract MyGuiControlBase | CreateGui () |
Called when app needs GUI (not on DS) More... | |
virtual void | OnUpdateVisual () |
Called when GUI needs update More... | |
Properties | |
ArrayOfTypeEnumerator< MyTerminalBlock, ArrayEnumerator< MyTerminalBlock >, TBlock > | TargetBlocks [get] |
TBlock | FirstBlock [get] |
bool | SupportsMultipleBlocks [get, set] |
MyTerminalAction< TBlock >[] | Actions [get, protected set] |
Properties inherited from Sandbox.Game.Gui.ITerminalControl | |
string | Id [get] |
bool | SupportsMultipleBlocks [get] |
If control supports multiple blocks The only control which does not is Name editor control More... | |
MyTerminalBlock[] | TargetBlocks [get, set] |
Sets blocks which are controlled now More... | |
ITerminalAction[] | Actions [get] |
Returns terminal actions More... | |
Properties inherited from Sandbox.ModAPI.Interfaces.Terminal.IMyTerminalControl | |
string | Id [get] |
Identifier of control More... | |
Func< IMyTerminalBlock, bool > | Enabled [set] |
Allows you to set if the control is enabled More... | |
Func< IMyTerminalBlock, bool > | Visible [set] |
Allows you to set if the control is visible More... | |
bool | SupportsMultipleBlocks [get, set] |
Allows you to set if the control is visible when the block is selected as a group More... | |
Terminal control for specified block type. E.g. Torque slider for stator
TBlock | : | MyTerminalBlock |
Definition at line 19 of file MyTerminalControl.cs.
|
inline |
Definition at line 75 of file MyTerminalControl.cs.
|
protectedpure virtual |
Called when app needs GUI (not on DS)
Implemented in Sandbox.Game.Gui.MyTerminalControlCombobox< TBlock >, Sandbox.Game.Gui.MyTerminalControlButton< TBlock >, Sandbox.Game.Gui.MyTerminalControlListbox< TBlock >, Sandbox.Game.Screens.Terminal.Controls.MyTerminalControlProperty< TBlock, TValue >, Sandbox.Game.Screens.Terminal.Controls.MyTerminalControlLabel< TBlock >, and Sandbox.Game.Gui.MyTerminalControlSeparator< TBlock >.
|
inline |
Returns control to show in terminal. When control does not exists yet, it creates it
Implements Sandbox.Game.Gui.ITerminalControl.
Definition at line 64 of file MyTerminalControl.cs.
|
inlineprotectedvirtual |
Called when GUI needs update
Reimplemented in Sandbox.Game.Gui.MyTerminalControlListbox< TBlock >, Sandbox.Game.Gui.MyTerminalControlCombobox< TBlock >, and Sandbox.Game.Gui.MyTerminalControlButton< TBlock >.
Definition at line 90 of file MyTerminalControl.cs.
|
inline |
Recreates the control GUI. This allows you to update the Title of some controls.
Implements Sandbox.ModAPI.Interfaces.Terminal.IMyTerminalControl.
Definition at line 105 of file MyTerminalControl.cs.
|
inline |
This updates a control that is currently displayed, allowing you to refresh it's state
Implements Sandbox.ModAPI.Interfaces.Terminal.IMyTerminalControl.
Definition at line 97 of file MyTerminalControl.cs.
delegate void Sandbox.Game.Gui.MyTerminalControl< TBlock >.WriterDelegate | ( | TBlock | block, |
StringBuilder | writeTo | ||
) |
|
static |
Definition at line 26 of file MyTerminalControl.cs.
Func<TBlock, bool> Sandbox.Game.Gui.MyTerminalControl< TBlock >.Enabled = (b) => true |
Definition at line 30 of file MyTerminalControl.cs.
readonly string Sandbox.Game.Gui.MyTerminalControl< TBlock >.Id |
Definition at line 28 of file MyTerminalControl.cs.
|
static |
Definition at line 25 of file MyTerminalControl.cs.
Func<TBlock, bool> Sandbox.Game.Gui.MyTerminalControl< TBlock >.Visible = (b) => true |
Definition at line 31 of file MyTerminalControl.cs.
|
getprotected set |
Definition at line 116 of file MyTerminalControl.cs.
|
getprotected |
Definition at line 46 of file MyTerminalControl.cs.
|
getset |
Definition at line 73 of file MyTerminalControl.cs.
|
getprotected |
Definition at line 38 of file MyTerminalControl.cs.