Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:TextEditBoxSetAllowEditing

From RoR Wiki
Revision as of 19:49, 16 October 2026 by Maintenance script (talk | contribs) (UI Lua API import (WAR 1.4.8))
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

UI Lua API · TextEditBox functions
Version: WAR 1.4.8

Sets whether the player may edit the text of a TextEditBox.

TextEditBoxSetAllowEditing(editBoxName, allowEditing)

Arguments

editBoxName
string – Name of a TextEditBox window.
allowEditing
boolean – true to allow editing, false to make the box read-only.

Returns

Nothing.

Details

  • The value is stored in the box's allow-editing flag, which TextEditBoxGetAllowEditing returns.
  • If a certain state flag of the box is set when the call is made, the client also updates the box and its child windows right away.
  • The stock guild recruiting profile uses it to make its text fields read-only for players who lack the guild's SET_RECRUITERS permission.
  • allowEditing must be a real boolean. Passing nil or a number raises an Invalid Parameters error.
  • The function needs at least two arguments and only reads the last two.

Errors

These are written to the UI log; the call returns normally.

  • Error in function call 'TextEditBoxSetAllowEditing': Window %s does not exist
  • Error in function call 'TextEditBoxSetAllowEditing': Window %s is not a TextEditBox

Example

From ea_guildwindow/source/guildwindowtabrecruitprofile.lua:

-- Brief Description
TextEditBoxSetAllowEditing( "GWRecruitProfileDescEditBox", not disabled )

-- Public Summary
TextEditBoxSetAllowEditing( "GWRecruitProfileSummaryEditBox", not disabled )

See also