Space Engineers
Classes | Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Game.Gui.MyDebugComponent Class Referenceabstract
Inheritance diagram for Sandbox.Game.Gui.MyDebugComponent:
Sandbox.Common.MyRenderDebugInputComponent Sandbox.Game.GUI.DebugInputComponents.MyResearchDebugInputComponent Sandbox.Game.GUI.DebugInputComponents.MyVisualScriptingDebugInputComponent Sandbox.Game.GUI.DebugInputComponents.MyVoxelDebugInputComponent.PhysicsComponent Sandbox.Game.Gui.MyAIDebugInputComponent Sandbox.Game.Gui.MyAlesDebugInputComponent Sandbox.Game.Gui.MyAlexDebugInputComponent Sandbox.Game.Gui.MyAsteroidsDebugInputComponent Sandbox.Game.Gui.MyCestmirDebugInputComponent Sandbox.Game.Gui.MyCharacterInputComponent Sandbox.Game.Gui.MyComponentsDebugInputComponent Sandbox.Game.Gui.MyGlobalInputComponent Sandbox.Game.Gui.MyHonzaInputComponent.DefaultComponent Sandbox.Game.Gui.MyHonzaInputComponent.LiveWatchComponent Sandbox.Game.Gui.MyHonzaInputComponent.PhysicsComponent Sandbox.Game.Gui.MyMartinInputComponent Sandbox.Game.Gui.MyMichalDebugInputComponent Sandbox.Game.Gui.MyMultiDebugInputComponent Sandbox.Game.Gui.MyOndraInputComponent Sandbox.Game.Gui.MyPetaInputComponent Sandbox.Game.Gui.MyRendererStatsComponent Sandbox.Game.Gui.MyTestersInputComponent Sandbox.Game.Gui.MyTomasInputComponent Sandbox.Game.Gui.MyVRDebugInputComponent

Classes

class  MyRef
 

Public Types

enum  MyDebugComponentInfoState { MyDebugComponentInfoState.NoInfo, MyDebugComponentInfoState.EnabledInfo, MyDebugComponentInfoState.FullInfo }
 

Public Member Functions

void Section (string text, params object[] formatArgs)
 
 MyDebugComponent ()
 
 MyDebugComponent (bool enabled)
 
virtual bool HandleInput ()
 
abstract string GetName ()
 
virtual void DispatchUpdate ()
 
virtual void Draw ()
 
virtual void Update10 ()
 
virtual void Update100 ()
 
bool GetSwitchValue (MyKeys key)
 
bool GetSwitchValue (string note)
 

Static Public Member Functions

static float NextTextOffset (float scale)
 
static void ResetFrame ()
 

Public Attributes

int m_frameCounter = 0
 

Protected Member Functions

void Text (string message, params object[] arguments)
 
void Text (Color color, string message, params object[] arguments)
 
void Text (Color color, float scale, string message, params object[] arguments)
 
void MultilineText (string message, params object[] arguments)
 
void MultilineText (Color color, string message, params object[] arguments)
 
void MultilineText (Color color, float scale, string message, params object[] arguments)
 
void VSpace (float space)
 
void Save ()
 
void AddShortcut (MyKeys key, bool newPress, bool control, bool shift, bool alt, Func< string > description, Func< bool > action)
 
void AddSwitch (MyKeys key, Func< MyKeys, bool > action, string note="", bool defaultValue=false)
 
void AddSwitch (MyKeys key, Func< MyKeys, bool > action, MyRef< bool > boolRef, string note="")
 
void SetSwitch (MyKeys key, bool value)
 

Properties

static float VerticalTextOffset [get]
 
static float NextVerticalOffset [get]
 
bool Enabled [get, set]
 
virtual object InputData [get, set]
 

Detailed Description

Definition at line 15 of file MyDebugComponent.cs.

Member Enumeration Documentation

Enumerator
NoInfo 
EnabledInfo 
FullInfo 

Definition at line 138 of file MyDebugComponent.cs.

Constructor & Destructor Documentation

Sandbox.Game.Gui.MyDebugComponent.MyDebugComponent ( )
inline

Definition at line 243 of file MyDebugComponent.cs.

Sandbox.Game.Gui.MyDebugComponent.MyDebugComponent ( bool  enabled)
inline

Definition at line 250 of file MyDebugComponent.cs.

Member Function Documentation

void Sandbox.Game.Gui.MyDebugComponent.AddShortcut ( MyKeys  key,
bool  newPress,
bool  control,
bool  shift,
bool  alt,
Func< string >  description,
Func< bool >  action 
)
inlineprotected

Definition at line 382 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.AddSwitch ( MyKeys  key,
Func< MyKeys, bool >  action,
string  note = "",
bool  defaultValue = false 
)
inlineprotected

Definition at line 396 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.AddSwitch ( MyKeys  key,
Func< MyKeys, bool >  action,
MyRef< bool >  boolRef,
string  note = "" 
)
inlineprotected

Definition at line 402 of file MyDebugComponent.cs.

virtual void Sandbox.Game.Gui.MyDebugComponent.DispatchUpdate ( )
inlinevirtual

Definition at line 328 of file MyDebugComponent.cs.

virtual void Sandbox.Game.Gui.MyDebugComponent.Draw ( )
inlinevirtual
abstract string Sandbox.Game.Gui.MyDebugComponent.GetName ( )
pure virtual
bool Sandbox.Game.Gui.MyDebugComponent.GetSwitchValue ( MyKeys  key)
inline

Definition at line 420 of file MyDebugComponent.cs.

bool Sandbox.Game.Gui.MyDebugComponent.GetSwitchValue ( string  note)
inline

Definition at line 430 of file MyDebugComponent.cs.

virtual bool Sandbox.Game.Gui.MyDebugComponent.HandleInput ( )
inlinevirtual
void Sandbox.Game.Gui.MyDebugComponent.MultilineText ( string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 193 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.MultilineText ( Color  color,
string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 198 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.MultilineText ( Color  color,
float  scale,
string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 203 of file MyDebugComponent.cs.

static float Sandbox.Game.Gui.MyDebugComponent.NextTextOffset ( float  scale)
inlinestatic

Definition at line 169 of file MyDebugComponent.cs.

static void Sandbox.Game.Gui.MyDebugComponent.ResetFrame ( )
inlinestatic

Definition at line 320 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.Save ( )
inlineprotected

Definition at line 267 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.Section ( string  text,
params object[]  formatArgs 
)
inline

Definition at line 223 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.SetSwitch ( MyKeys  key,
bool  value 
)
inlineprotected

Definition at line 408 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.Text ( string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 176 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.Text ( Color  color,
string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 181 of file MyDebugComponent.cs.

void Sandbox.Game.Gui.MyDebugComponent.Text ( Color  color,
float  scale,
string  message,
params object[]  arguments 
)
inlineprotected

Definition at line 186 of file MyDebugComponent.cs.

virtual void Sandbox.Game.Gui.MyDebugComponent.Update10 ( )
inlinevirtual
virtual void Sandbox.Game.Gui.MyDebugComponent.Update100 ( )
inlinevirtual
void Sandbox.Game.Gui.MyDebugComponent.VSpace ( float  space)
inlineprotected

Definition at line 232 of file MyDebugComponent.cs.

Member Data Documentation

int Sandbox.Game.Gui.MyDebugComponent.m_frameCounter = 0

Definition at line 326 of file MyDebugComponent.cs.

Property Documentation

bool Sandbox.Game.Gui.MyDebugComponent.Enabled
getset

Definition at line 256 of file MyDebugComponent.cs.

virtual object Sandbox.Game.Gui.MyDebugComponent.InputData
getset

Definition at line 262 of file MyDebugComponent.cs.

float Sandbox.Game.Gui.MyDebugComponent.NextVerticalOffset
staticgetprotected

Definition at line 160 of file MyDebugComponent.cs.

float Sandbox.Game.Gui.MyDebugComponent.VerticalTextOffset
staticget

Definition at line 155 of file MyDebugComponent.cs.


The documentation for this class was generated from the following file: