The LGTextObject - coldrockgames/gml-raptor GitHub Wiki

This is a small object which acts as the parent for all UI controls.

It offers a text property which gets automatically resolved through LG when the object is created.

The reason, why we spend this object its own wiki page is the function it offers:

LG_reapply

/// @func	LG_reapply()
/// @desc	Re-evaluates the original LG string provided when this object
///			has been created.
///			As LG string can contain variables it might be useful to be able
///			to refresh/update the content.
LG_reapply = function() {

So, if your LG-string contains variables that might change, just call LG_reapply() to evaluate the LG string again, just as if this object has been newly created.