Thread Tools Display Modes
10-07-14, 12:41 PM   #1
tobindax
A Wyrmkin Dreamwalker
AddOn Author - Click to view addons
Join Date: Feb 2011
Posts: 53
Clique icon/name and functionality

I want to add an icon and a name to custom macros in clique but it currently shows a red question mark and the beginning of the script as name. #showtooltip does nothing. Any idea if it's possible, because it looks messy and unreadable that way.

Also, the main reason I wanted that was to add the /stopspelltarget line that avoids the annoying "blue cursor" thing when you click on a dead person ("friend" type on clique does not fix it). Any idea if I can do it somehow without including the line?
  Reply With Quote
10-07-14, 12:57 PM   #2
Duugu
Premium Member
 
Duugu's Avatar
AddOn Author - Click to view addons
Join Date: Nov 2006
Posts: 851
What does your macro look like?

I'm not that familar with macros or Clique, but I would guess there has to by at least one spell name in your macro to have #showtooltip actually showing anything.
  Reply With Quote
10-07-14, 11:13 PM   #3
Phanx
Cat.
 
Phanx's Avatar
AddOn Author - Click to view addons
Join Date: Mar 2006
Posts: 5,617
Clique doesn't support #show or #showtooltip, or any other method of assigning an icon to custom macros. You can trick it by editing your saved variables file:

Code:
{
	["icon"] = "Interface\\Icons\\ability_shaman_cleansespirit",
	["macrotext"] = "/cast [@mouseover, harm]Purge;[@mouseover, dead]Ancestral Spirit;[@mouseover]Cleanse Spirit",
	["type"] = "macro",
	["key"] = "SHIFT-BUTTON1",
	["sets"] = {
		["default"] = true,
	},
},
There's nothing you can do about the name though; it just doesn't have any concept of a name or label in relation to custom macro bindings. You can get a slightly more useful display by taking advantage of the fact that lines starting with a # in a macro are considered comments and ignored when you actually run the macro:

Code:
# Cure
/cast [@mouseover, harm] Purge; [@mouseover, dead] Ancestral Spirit; [@mouseover] Cleanse Spirit
This won't affect the functionality but will make sure "# Cure" is shown first in Clique's list.
__________________
Retired author of too many addons.
Message me if you're interested in taking over one of my addons.
Don’t message me about addon bugs or programming questions.

Last edited by Phanx : 10-07-14 at 11:18 PM.
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » Macro Help » Clique icon/name and functionality

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off