Forum rules - please read before posting.

Set a text for a tranlsated label

How can I set the text of a translated label from code?

If I use the original text I can do the following:

 _example = (AC.MenuLabel) AC.PlayerMenus.GetElementWithName("menuname", "elementname");
_example.label = "whaterver I want"

Doing so the text will change on the game.
If I do the same, but options is set as non original language seems the label is unaffected.
How can I change it?

Thank you very much.

Comments

  • edited January 2015
    If you set the MenuLabel's internal "lineID" value to -1, then it will be ignored by translations:

    _example.lineID = -1;
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.