joylooki.blogg.se

Weakauras hide out of combat
Weakauras hide out of combat






weakauras hide out of combat
  1. #Weakauras hide out of combat update#
  2. #Weakauras hide out of combat code#

  • Every Frame will fire the custom function every time the screen redraws (your Frames Per Second).
  • It will not fire when a custom trigger returns true from its trigger function, unless that custom trigger also adjusts one of the Dynamic Infos it carries.

    #Weakauras hide out of combat update#

  • Trigger Update will fire the custom function when the Dynamic Info from any trigger in the Aura changes in any way.
  • #Weakauras hide out of combat code#

    You can return nil, it will be handled as an empty string.Ībove this code block in the interface is a setting "Update Custom Text On.":.If you do so they will be output in your text using %c1, %c2, and so on. value and total are repeated just to match argument positions with those with timed info.Įxpected return: return string.value - number The current value carried by dynamic Info, equivalent to the %p text replacement.total - number The total or max value, equivalent to the %t text replacement.health values) then: function(total, value, value, total, name, icon, stacks) If the trigger currently providing Dynamic Info uses "static" duration info (e.g. stacks - number The value carried by the Dynamic Info's Stacks, equivalent to %s.To display the Dynamic Info's icon in text, equivalent to the %i text replacement. icon - string A formatted string with the Escape Sequences needed.name - string Whatever string the active trigger carries on its Name Info, equivalent of the %n text replacement.2:03, equivalent of the %t text replacement. formatedDuration - string A formatted string showing minutes if applicable, e.g.progress - string A formatted string showing remaining duration, equivalent of the %p text replacement.duration - number The total number of seconds, e.g.expirationTime - number When the displayed timer will expire, relative to GetTime().buff duration) then: function(expirationTime, duration, progress, formatedDuration, name, icon, stacks)

    weakauras hide out of combat

    The string(s) you return will be inserted into the message that you send.Īlthough it's likely that Custom Text functions in Actions will be much simpler than those in Display, all the info is the same so see below for extensive details.ĭisplay Custom Text Args If the trigger currently providing Dynamic Info uses "timed" duration info (e.g. This code block is accessed by using the Chat Message option, with %c in the Message text. If the Aura you're making produces clones, then this code block will run for each clone that hides and aura_env.state and aura_env.region will carry that clone's info. Then it will not run again until the Aura shows, and hides again. On Hide runs once when the Aura as a whole changes from being active to not being active.

    weakauras hide out of combat

    If the Aura you're making produces clones, then this code block will run for each clone that is shown and aura_env.state and aura_env.region will carry that clone's info. Then it will not run again until the Aura hides, and shows again. On Show runs once when the Aura as a whole changes from not being active to being active.

  • aura_env - The aura_env table is effectively "global" to just the Aura in which you're working and provides a great deal of use to Custom Coders.
  • If the Aura you're making produces clones then this code block runs before they exist and so aura_env.state won't exist and aura_env.region will refer to the "base" Aura, not any clones you create later. Create variables like this in the aura_env table. Anything that will be used throughout your Aura, or repeatedly by a function. This code block is exceptionally useful for creating settings (any settings that users may want to alter should be done with Custom Options), tables of data, or functions. It does not run each time the Aura is loaded, a common misconception that can cause problems. Init runs once when the aura is first loaded then never again until a UI reload/restart or if changes made to this code block or to Custom Options.
  • This is not a code-block in which you are defining a function (no function().
  • If any of the info provided is insufficient or confusing then please don't hesitate to join the Discord (linked in the side-bar) to discuss ways in which the info could be given more clearly. If you're arriving at this page and reading from this intro then please understand the info is given in that context. Links to each section are given in-game when the "help" button is clicked at the bottom of each expanded code editor. This page contains a brief(ish) explanation of how users should use the various code blocks in the WA interface, what WA sends in to the code block and what it expects to be provided by the user.








    Weakauras hide out of combat