Class MyTextSurfaceScriptBase
Inheritance
System.Object
MyTextSurfaceScriptBase
Assembly: Sandbox.Game.dll
Syntax
public abstract class MyTextSurfaceScriptBase : Object, IMyTextSurfaceScript, IDisposable
Constructors
MyTextSurfaceScriptBase(IMyTextSurface, IMyCubeBlock, Vector2)
Declaration
protected MyTextSurfaceScriptBase(IMyTextSurface surface, IMyCubeBlock block, Vector2 size)
Parameters
Fields
DEFAULT_BACKGROUND_COLOR
Declaration
public static readonly Color DEFAULT_BACKGROUND_COLOR
Field Value
DEFAULT_FONT_COLOR
Declaration
public static readonly Color DEFAULT_FONT_COLOR
Field Value
m_backgroundColor
Declaration
protected Color m_backgroundColor
Field Value
m_block
Declaration
protected IMyCubeBlock m_block
Field Value
m_foregroundColor
Declaration
protected Color m_foregroundColor
Field Value
m_halfSize
Declaration
protected Vector2 m_halfSize
Field Value
m_scale
Scale in both direction compared to what we would expect as default (512px)
Declaration
protected Vector2 m_scale
Field Value
m_size
Size of the available texture surface
Declaration
Field Value
m_surface
Declaration
protected IMyTextSurface m_surface
Field Value
Properties
BackgroundColor
Declaration
public Color BackgroundColor { get; }
Property Value
Block
Declaration
public IMyCubeBlock Block { get; }
Property Value
ForegroundColor
Declaration
public Color ForegroundColor { get; }
Property Value
NeedsUpdate
Declaration
public abstract ScriptUpdate NeedsUpdate { get; }
Property Value
Surface
Declaration
public IMyTextSurface Surface { get; }
Property Value
Methods
Dispose()
Declaration
public virtual void Dispose()
FitRect(Vector2, ref Vector2)
Rescales rectangle to fit within desired texture space.
Declaration
public static void FitRect(Vector2 texture, ref Vector2 rect)
Parameters
Run()
Declaration
public virtual void Run()
Implements