Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
WoW
Talk
English
Views
Read
Edit
History
More
Search
Navigation
Home
Random page
Help using wiki
Editions
for WoW
for WildStar
for Solar2D
Documentation
for WoW
for WildStar
Reference
WoW
⦁ FrameXML
⦁ AddOns
⦁ API
⦁ WoW Lua
WildStar
⦁ AddOns
⦁ API
⦁ WildStar Lua
Engine
Tools
What links here
Related changes
Special pages
Page information
Site
Recent Changes
Editing
WoW:SecureActionButtonTemplate
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
==Button remapping== SecureActionButtons are also able to change the button being clicked in response to whether your target can be assisted ([help]) or attacked ([harm]) by you; the two relevant attributes are "helpbutton" and "harmbutton". The value of those attributes, should they match, will be used as the button to resolve the "type" and other required arguments. For example, suppose we wanted to create a button that would alter behavior based on whether you can attack your target. Setting the following attributes has the desired effect: {| class="darktable" !Attribute !! Value !! Purpose |- | "unit" || "target" || Make all actions target the player's target. |- | "*harmbutton1" || "nuke1" || Remap any left clicks to "nuke1" clicks when target is hostile. |- | "*harmbutton2" || "nuke2" || Remap any right clicks to "nuke2" clicks when target is hostile. |- | "helpbutton1" || "heal1" || Remap unmodified left clicks to "heal1" clicks when target is friendly. |- | "type" || "spell" || Make all clicks cast a spell. |- | "spell-nuke1" || "Mind Flay" || Cast Mind Flay on "hostile" left click. |- | "spell-nuke2" || "Shadow Word: Death" || Cast Shadow Word: Death on "hostile" right click. |- | "alt-spell-nuke2" || "Mind Blast" || Cast Mind Blast on "hostile" alt-right click. |- | "spell-heal1" || "Flash Heal" || Cast Flash Heal on "friendly" left click. |} If the button is remapped by the "harmbutton" or "helpbutton" attributes, the value of the "unit" attribute is reevaluated with the new button suffix: it is therefore to make a button that would check the hostility of one unit, and perform a reactive action on an entirely different unit.
Summary:
Please note that all contributions to AddOn Studio are considered to be released under the Creative Commons Attribution-NonCommercial-ShareAlike (see
AddOn Studio Wiki:Copyrights
for details).
Submissions must be written by you, or copied from a public domain or similar free resource (see
AddOn Studio Wiki:Copyrights
for details).
Cancel
Editing help
(opens in new window)