WoW:MACRO metashowcooldown: Difference between revisions

From AddOn Studio
Jump to navigation Jump to search
mNo edit summary
m (Move page script moved page MACRO metashowcooldown to MACRO metashowcooldown without leaving a redirect)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{accuracy|It is doubtful that this really exists as you can get the same result from #showstuff, #showblah, #showcrap, #showghjdgfkhjklhjdgfhkhjl etc.}}
{{macroapi}}
{{macroapi}} __NOTOC__
 
 
Affects the Icon to be shown, there are several versions of this:
Affects the Icon to be shown, there are several versions of this:
  #showcooldown spellname  <--Shows a spell icon and it's cooldown
  #showcooldown spellname  <--Shows a spell icon and its cooldown
  #showcooldown itemname    <--Shows an item and it's cooldown by name
  #showcooldown itemname    <--Shows an item and its cooldown by name
  #showcooldown BagId slot  <--Shows an item and it's cooldown by bag slot
  #showcooldown BagId slot  <--Shows an item and its cooldown by bag slot
  #showcooldown InvSlot    <--Shows an item and it's cooldown by inventory slot
  #showcooldown InvSlot    <--Shows an item and its cooldown by inventory slot
  #showcooldown            <--Shows an icon and a cooldown dynamically (See Notes)
  #showcooldown            <--Shows an icon and a cooldown dynamically (See Notes)


== Aliases ==
== Aliases ==
:none
:none


== Arguments ==
== Arguments ==
:;spellname:Name of the spell of whose icon/cooldown is to be shown
:;spellname
:;itemname:Name of the item of whose icon/cooldown is to be shown.
::Name of the spell of whose icon/cooldown is to be shown
:;[[BagId]] : The bag the item is in (0 is backpack, etc...)
:;itemname
:;slot : The slot number, starting at 1, of the item you wish to show
::Name of the item of whose icon/cooldown is to be shown.
:;[[InventorySlotId | InvSlot]] : The slot on your character in which to show an item.
:;[[BagId]]
 
:: The bag the item is in (0 is backpack, etc...)
:;slot
:: The slot number, starting at 1, of the item you wish to show
:;[[InventorySlotId | InvSlot]]
:: The slot on your character in which to show an item.


== Notes ==
== Notes ==
Line 27: Line 27:
:Other data affecting the button's appearance will be pulled from this as well, such as the green border around equipped items, the number of items you have, the number of reagents for the specified spell you have, etc...
:Other data affecting the button's appearance will be pulled from this as well, such as the green border around equipped items, the number of items you have, the number of reagents for the specified spell you have, etc...
:The click action of the button will not be affected by this, you still need to use the commands to make the button do something.
:The click action of the button will not be affected by this, you still need to use the commands to make the button do something.
:Any successive metacommands to define the icon or tooltip will be ignored  
:Any successive metacommands to define the icon or tooltip will be ignored
:This does not affect the tooltip of the macro. If you want to specify both the icon and tooltip, you should use [[MACRO metashowtooltip|#showtooltip]].
:This does not affect the tooltip of the macro. If you want to specify both the icon and tooltip, you should use [[MACRO metashowtooltip|#showtooltip]].
:Omitting arguments to this metacommand will have no effect. By default, the UI will pull information from [[MACRO cast|/cast]], [[MACRO castsequence|/castsequence]], [[MACRO castrandom|/castrandom]], [[MACRO use|/use]], [[MACRO userandom|/userandom]], [[MACRO equip|/equip]], or [[MACRO equipslot|/equipslot]].
:Omitting arguments to this metacommand will have no effect. By default, the UI will pull information from [[MACRO cast|/cast]], [[MACRO castsequence|/castsequence]], [[MACRO castrandom|/castrandom]], [[MACRO use|/use]], [[MACRO userandom|/userandom]], [[MACRO equip|/equip]], or [[MACRO equipslot|/equipslot]].

Latest revision as of 04:48, 15 August 2023

Slash commands

Affects the Icon to be shown, there are several versions of this:

#showcooldown spellname   <--Shows a spell icon and its cooldown
#showcooldown itemname    <--Shows an item and its cooldown by name
#showcooldown BagId slot  <--Shows an item and its cooldown by bag slot
#showcooldown InvSlot     <--Shows an item and its cooldown by inventory slot
#showcooldown             <--Shows an icon and a cooldown dynamically (See Notes)

Aliases[edit]

none

Arguments[edit]

spellname
Name of the spell of whose icon/cooldown is to be shown
itemname
Name of the item of whose icon/cooldown is to be shown.
BagId
The bag the item is in (0 is backpack, etc...)
slot
The slot number, starting at 1, of the item you wish to show
InvSlot
The slot on your character in which to show an item.

Notes[edit]

Selecting the "?" icon will use the icon for the spell/item/slot. This can be overriden by manually choosing an icon.
If you don't know the spell, don't have the item, or the position you specified on your character or bag is empty, the button will show the default "?" icon.
Other data affecting the button's appearance will be pulled from this as well, such as the green border around equipped items, the number of items you have, the number of reagents for the specified spell you have, etc...
The click action of the button will not be affected by this, you still need to use the commands to make the button do something.
Any successive metacommands to define the icon or tooltip will be ignored
This does not affect the tooltip of the macro. If you want to specify both the icon and tooltip, you should use #showtooltip.
Omitting arguments to this metacommand will have no effect. By default, the UI will pull information from /cast, /castsequence, /castrandom, /use, /userandom, /equip, or /equipslot.