Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:EnableRRQUpdates

From RoR Wiki

UI Lua API · RvR functions
Version: WAR 1.4.8

Adds a window to the list of windows the client keeps for realm resource quest (RRQ) updates.

EnableRRQUpdates(windowName)

Arguments

windowName
string – Name of an existing window.

Returns

Nothing.

Details

  • The client stores the window under a hash of its name. Calling the function again for a window that is already in the list does nothing.
  • The window must exist when the function is called; otherwise the error below is raised and nothing is added.
  • If the client has no RRQ data object, the function does nothing (no error, even for a missing window).
  • The comment in the stock UI reads "enable server automatic RRQ updates when this window is visible". The stock RRQ bars call it once, right after creating their window.
  • The function needs at least one argument and only reads the last one.

Errors

  • Error in function call 'EnableRRQUpdates': Window %s does not exist

Example

From default/easystem_rrq/source/rrqprogressbar.lua (RRQProgressBar.Create):

CreateWindowFromTemplate(windowName, windowTemplateName, parentName);
...
-- enable server automatic RRQ updates when this window is visible
EnableRRQUpdates(windowName)

See also