/// <description> /// Set the text displayed on the button's label using a string from the string table assigned to the control. /// </description> /// <param name="id">Name of the variable that contains the integer string ID. Used to look up string in table.</param> /// <remarks> Not all buttons render text labels. /// /// </remarks> /// <see cref="setText" /> /// <see cref="getText" /> /// <see cref="GuiControl::langTableMod" /> /// <see cref="LangTable" /> public void SetTextID(string id) { InternalUnsafeMethods.SetTextID__Args _args = new InternalUnsafeMethods.SetTextID__Args() { id = id, }; InternalUnsafeMethods.SetTextID()(ObjectPtr, _args); }
/// <summary>Maps the text ctrl to a variable used in localization, rather than raw text.</summary> /// <description> /// /// </description> /// <param name="textID">Name of variable text should be mapped to</param> /// <code> /// // Inform the GuiTextCtrl control of the textID to use /// %thisGuiTextCtrl.setTextID("STR_QUIT"); /// </code> /// <see cref="GuiControl" /> /// <see cref="Localization" /> public void SetTextID(string textID) { InternalUnsafeMethods.SetTextID__Args _args = new InternalUnsafeMethods.SetTextID__Args() { textID = textID, }; InternalUnsafeMethods.SetTextID()(ObjectPtr, _args); }