Texts added with FxtStore don't work in Text.Display until you set isGlobal flag to true, because of which, unfortunately, they stop being unique and become editable by other scripts.
The minimal code for reproduction I came up with is this:
FxtStore.insert('STRTEST', 'Test string', false); // Change `false` to `true` to make it work
while (true) {
wait(0);
if (Pad.IsButtonPressed(0, 4)) { // Action button, usually Tab
Text.UseCommands(true);
Text.Display(320, 224, 'STRTEST');
Text.UseCommands(false);
}
}
Texts added with
FxtStoredon't work inText.Displayuntil you setisGlobalflag totrue, because of which, unfortunately, they stop being unique and become editable by other scripts.The minimal code for reproduction I came up with is this: