Skip to content

Return of Reckoning

Wiki

RoR Wiki

API:LCDUnregisterEventHandler

From RoR Wiki

UI Lua API · LCD functions
Version: WAR 1.4.8

Removes an event handler registered with LCDRegisterEventHandler.

LCDUnregisterEventHandler(pageName, eventId)

Arguments

pageName
string – Name of the page.
eventId
number – The event, a SystemData.Events value.

Returns

Nothing.

Details

  • If the page has no handler for this event, nothing happens.
  • The function needs at least two arguments and only reads the last two.
  • The stock UI never calls this function.

Errors

  • Error in function call 'LCDUnregisterEventHandler': Page '%s' does not exist.

Example

A minimal example built from the signature:

LCDUnregisterEventHandler( "MyPage", SystemData.Events.PLAYER_CUR_HIT_POINTS_UPDATED )

See also