Skip to content

IPresentationGlyphProvider

InterfaceTextStudioTextStudio
public interface IPresentationGlyphProvider

Addon extension point for presentation glyph substitution. Terminal FX, Mechanical Displays, and custom addons implement this to substitute visual glyphs while preserving the canonical text model.

V1 ownership model: single provider per controller instance.

UpdatePresentation(PresentationGlyph[], int, float)

Section titled “UpdatePresentation(PresentationGlyph[], int, float)”
void UpdatePresentation(PresentationGlyph[] glyphs, int glyphCount, float deltaTime)

Process the presentation glyph array in-place. Called once per frame when the presentation layer is dirty.

Parameters

Name Type Description
glyphs TextStudio.PresentationGlyph[] The glyph array to modify. Length matches visible glyph count.
glyphCount System.Int32 Number of valid glyphs in the array.
deltaTime System.Single Time since last update.
void OnTextChanged(int newGlyphCount)

Called when the source text changes. Provider should reset its internal state.

Parameters

Name Type
newGlyphCount System.Int32

bool IsDirty { get; }

Returns true if the provider has pending changes that need a presentation update.

Returns

System.Boolean