Class DebugTextSystem
public class DebugTextSystem : GameSystemBase, IDisposable, ICollectorHolder, IGameSystemBase, IComponent, IReferencable, IUpdateable, IDrawable, IContentable
- Inheritance
-
DebugTextSystem
- Implements
- Inherited Members
- Extension Methods
Constructors
DebugTextSystem(IServiceRegistry)
public DebugTextSystem(IServiceRegistry registry)
Parameters
registry
IServiceRegistry
Properties
DefaultOnScreenTime
Sets or gets the time that messages will stay on screen by default.
public TimeSpan DefaultOnScreenTime { get; set; }
Property Value
TailSize
Sets or gets the size of the messages queue, older messages will be discarded if the size is greater.
public int TailSize { get; set; }
Property Value
TextColor
Sets or gets the color to use when drawing the profiling system fonts.
public Color4 TextColor { get; set; }
Property Value
Methods
Draw(GameTime)
Draws this instance.
public override void Draw(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.
Print(string, Int2, Color4?, TimeSpan?)
Print a custom overlay message
public void Print(string message, Int2 position, Color4? color = null, TimeSpan? timeOnScreen = null)
Parameters
Update(GameTime)
This method is called when this game component is updated.
public override void Update(GameTime gameTime)
Parameters
gameTime
GameTimeThe current timing.