ok I see, I was missing the "escape sequence", I actually thought I would have to do something like that, like I do with colors using |c |r, but I didn't know how that's called so searching for it was pretty difficult to get any results.
Thanks for the link, covers a bunch of those and now I know what to look for
edit:. I'm currently trying to make a click work and can't make it work for the love of me, is it just not possible to have a click work on a
Frame frame? Do I actually need to make a
Button frame for it to work?
I've tried with and without
frame:EnableMouse(true), with and without
frame:RegisterForClicks("AnyUp"), and all combinations of both (with one without the other, with both).
Tried that with
function OnClick(self) and with
frame:SetScript("OnClick", function(self) nothing seems to work.
On the tests where I used
frame:RegisterForClicks("AnyUp") I get
attempt to call method 'RegisterForClicks' (a nil value)
|
and on
frame:SetScript("OnClick", function(self) I get
m4xArtifactFrame doesn't have a "OnClick" script
|
Doing this with a
Button seems to work but if it's possible to do with just the
Frame it would be better since it would be one less thing to create and have on the screen (even if "invisible").