#snippet for unit frames with mouseover (classic/sod)

9 messages · Page 1 of 1 (latest)

wanton needle
#

I’m trying to create a unit frame, and am using the secure unit frame button template, however for the life of me I can’t get right/left click to work, or get @mouseover to work on the frame.

Does anyone have a snippet for this that works in WA?

modern orchid
#

weakauras is not a unitframe addon, this is not possible to do

wanton needle
#

Could you explain a little bit more about what makes it not possible specifically? I understand that it's not explicitly intended to be used for it, but what is preventing it?

modern orchid
#

!clickable explain in details

sonic trenchBOT
#

See this message #pins message for details on the perils of trying to make Auras clickable

modern orchid
#

basics is.. if a frame inherit a secure template it can't show/hide/move in combat, weakauras is made for show/hide stuff in combat, but doesn't handle any of the problems and limitations added by this system, so it will sooner or later break weakauras

#

also weakauras reuse frame made by inactive auras for other aura, if an aura's frame was made secure and is reuse for an other aura it will spread issues to other auras

wanton needle
#

Yeah - I read that warning here https://github.com/WeakAuras/WeakAuras2/wiki/Trigger-State-Updater-(TSU)#tsu---frequently-asked-questions-and-some-frequently-made-mistakes

However I guess I interpreted it as creating our own frame pool, given the performance and visible implications of many frames.

Is there no way to tell weakauras that a frame isn't reusable?

I guess, from my perspective, WA serves almost as a wrapper around the wow apis, and at least serves as some level of basic documentation (and sandboxing) that is otherwise difficult to come by, so I'm looking to explore what's possible and no necessarily what the best pattern is

GitHub

World of Warcraft addon that provides a powerful framework to display customizable graphics on your screen. - WeakAuras/WeakAuras2