Documentation
¶
Index ¶
Constants ¶
View Source
const DisplayTextEvent = "DisplayText"
Variables ¶
View Source
var ( // TextQueuePublish: Triggered to publish an update to a specific text queue TextQueuePublish = event.RegisterEvent[string]() )
Functions ¶
Types ¶
type TextQueue ¶
type TextQueue struct { event.CallerID render.LayeredPoint // contains filtered or unexported fields }
A TextQueue is a renderable entity that displays text in a column for a brief time before fading the text and dropping it. It accepts new text elements from the DisplayTextEvent event.
func New ¶
func New(ctx *scene.Context, registeredEvents []event.UnsafeEventID, pos floatgeom.Point2, layer int, font *render.Font, sustainTime time.Duration) *TextQueue
New creates a customized TextQueue.
Click to show internal directories.
Click to hide internal directories.