r/WowUI•
TheBibiaon

[Help] kgPanels onClick

?

Hi guys,

I've been working quite hard on my UI and am now on to the last steps. I'm stuck with some problems I couldn't figure out myself.

Is there a way to use a mount by clicking on a kgPanel?

And can i change spec by clicking on a kgPanel?

Does this even work or does somebody know a work-around to this?

Thanks for the help!

Posted Jan 26, 2016, 7:11 PM UTC

36
conflict5377•

Does the command: " if released then SetActiveTalentGroup(GetActiveTalentGroup()%2+1); end " still work?

And for the mounting you would use a " /run if not IsMounted()and IsOutdoors()then CallCompanion("MOUNT",GetRandomArgument(mount1,mount2))end

And instead of mount1 or mount2. The indices for you mounts. Indices are numerical values starting at 1 in alphabetical order. 1 for me summons Albino Drake.

1
TheBibiaonOP•

Thanks a ton!

Will try it out later today and see if it works.

1
TheBibiaonOP•

Mounting worked!

Unfortunatly the change spec code didn't.

1
conflict5377•

That was me being lazy. Here's a script not a macro.

if released then SetActiveTalentGroup(GetActiveTalentGroup()%2+1); end

1
TheBibiaonOP•

Isn't that the same as you posted above? :)

1
Snichy•

Failing that, you could just put the relevent abilities on a single button from your action bar addon (or use the macro "/usetalents [spec:2]1;2" to swap talents), set the alpha to 0.1 and put the KGPanel directly over the top of the button that way it will appear like you are clicking the panel but youre actually clicking the button underneath which isnt visible.

Not sure if its what you want but hope it helps.

1