Module br.player.ui

These functions help in retrieving information about or manipulating UI elements.

UI functions are stored in br.player.ui and can be utilized by `local ui = br.player.ui` in your profile.

Functions

ui.alwaysCdNever (thisOption) Checks if the passed option is set to "Always, CD, or Never"
ui.alwaysCdAoENever (thisOption[, minUnits=3[, enemyCount]]) Checks if the passed option is set to "Always, AOE/CD, CD, or Never"
ui.chatOverlay (text) Displays the passed text as an overlay on the chat windows
ui.checked (thisOption) Checks if the passed option is enabled
ui.debug (text) Displays the text as a debug message in chat (if Addon Debug Messages option is enabled)
ui.delay (delayName, delayTime) Returns false unless the specified delay time has passed since it was last true
ui.fullBags () Checks if your bags are full
ui.isMouseDown ([mouseButton]) Checks if the mouse button specified is down, or any if none are specified
ui.pause () Returns true if special conditions are met to pause
ui.print (msg) Shows the specified message in chat.
ui.pullTimer () Returns the time remaining on the pull timer (DBM/BigWigs)
ui.time () Returns the time, value of GetTime
ui.timer (timerName, interval) Returns false unless the specified interval has passed since it was last true
ui.toggle (thisToggle) Checks if the specified toggle from the toggle options is pressed
ui.useAOE ([range=8[, minCount=3[, useTarget="player"]]]) Checks if the specified parameters are valid for AOE, based on Rotation toggle setting.
ui.useCDs () Check if Cooldowns should be used or not based on CD toggle setting.
ui.useDefensive () Check if Defensives should be used or not based on Defensive toggle setting.
ui.useInterrupt () Check if Interrupts should be used or not based on Interrupt toggle setting.
ui.useST ([range=8[, minCount=3[, useTarget="player"]]]) Checks if the specified parameters are valid for Single Target, based on Rotation toggle setting.
ui.useTrinkets (trinket) Checks if the option to use trinkets are valid per each Trinket slot.
ui.value (thisOption) Returns the value of the specified option.


Functions

ui.alwaysCdNever (thisOption)
Checks if the passed option is set to "Always, CD, or Never"

Parameters:

  • thisOption string - Name of the option from the defined profile options.
ui.alwaysCdAoENever (thisOption[, minUnits=3[, enemyCount]])
Checks if the passed option is set to "Always, AOE/CD, CD, or Never"

Parameters:

  • thisOption string - Name of the option from the defined profile options.
  • minUnits number - Minimum Number of units to cound for AOE checks. (default 3)
  • enemyCount number - Number of enemies for a given range, default is the number of enemies in 40yrds. (optional)
ui.chatOverlay (text)
Displays the passed text as an overlay on the chat windows

Parameters:

  • text string - The text to display.
ui.checked (thisOption)
Checks if the passed option is enabled

Parameters:

  • thisOption string - Name of the option from the defined profile options.

Returns:

    boolean
ui.debug (text)
Displays the text as a debug message in chat (if Addon Debug Messages option is enabled)

Parameters:

  • text string - The message to show in chat.
ui.delay (delayName, delayTime)
Returns false unless the specified delay time has passed since it was last true

Parameters:

  • delayName string - The name of the delay check, should be unique.
  • delayTime number - The length of time to wait until true, in seconds.

Returns:

    boolean
ui.fullBags ()
Checks if your bags are full

Returns:

    boolean
ui.isMouseDown ([mouseButton])
Checks if the mouse button specified is down, or any if none are specified

Parameters:

  • mouseButton string - Name of the mouse button. (optional)

Returns:

    boolean
ui.pause ()
Returns true if special conditions are met to pause

Returns:

    boolean

See also:

ui.print (msg)
Shows the specified message in chat.

Parameters:

  • msg string - The message to show in chat.
ui.pullTimer ()
Returns the time remaining on the pull timer (DBM/BigWigs)

Returns:

    number
ui.time ()
Returns the time, value of GetTime
ui.timer (timerName, interval)
Returns false unless the specified interval has passed since it was last true

Parameters:

  • timerName string - The name of the timer check, should be unique.
  • interval number - The length of time to wait until true, in seconds.

Returns:

    boolean
ui.toggle (thisToggle)
Checks if the specified toggle from the toggle options is pressed

Parameters:

  • thisToggle string - Name of the toggle to check.

Returns:

    boolean
ui.useAOE ([range=8[, minCount=3[, useTarget="player"]]])
Checks if the specified parameters are valid for AOE, based on Rotation toggle setting.

Parameters:

  • range number - The range of the AOE damage in yards. (default 8)
  • minCount number - The minimum number of units to be in range before true (default 3)
  • useTarget string - the reference unit to check range and units against. (default "player")
ui.useCDs ()
Check if Cooldowns should be used or not based on CD toggle setting.

Returns:

    boolean
ui.useDefensive ()
Check if Defensives should be used or not based on Defensive toggle setting.

Returns:

    boolean
ui.useInterrupt ()
Check if Interrupts should be used or not based on Interrupt toggle setting.

Returns:

    boolean
ui.useST ([range=8[, minCount=3[, useTarget="player"]]])
Checks if the specified parameters are valid for Single Target, based on Rotation toggle setting.

Parameters:

  • range number - The range of the AOE damage in yards. (default 8)
  • minCount number - The minimum number of units to be in range before true (default 3)
  • useTarget string - the reference unit to check range and units against. #return boolean (default "player")
ui.useTrinkets (trinket)
Checks if the option to use trinkets are valid per each Trinket slot.

Parameters:

  • trinket number -The item id of the trinket to check for. #return boolean
ui.value (thisOption)
Returns the value of the specified option.

Parameters:

  • thisOption string - The name of the option specified in the options section

Returns:

    number
generated by LDoc 1.5.0 Last updated 2024-11-26 17:42:33