I’d like to pass dynamic values to UI elements such as numbers that increment. I only seem to be able to define static values though such as TestMessage<localizes> : message = "test"
Is there any way to create these messages and pass in data such as
Attempting to have a UI element that displays player currency but even when initialising the message the way you have it I get the error “This variable expects to be initialized with a value of type message, but this initializer is an incompatible value of type []char->message.(3509)”
var playerCurrency : int = 0
GenericMessage(value: int) : message = “{playerCurrency}”
This is failing because you’re doing DefaultText := GenericMessage but GenericMessage is a function, so it should be DefaultText := GenericMessage("Your text here!")