Thread Tools Display Modes
04-21-17, 08:02 PM   #1
Granduca
A Defias Bandit
Join Date: Sep 2012
Posts: 2
Unhappy SecureActionButtonTemplate in Combat

Hi!
Is there a way to use SetPoint() for "SecureActionButtonTemplate" in combat?
Or maybe some other way to move unit frames in combat?
  Reply With Quote
04-21-17, 08:14 PM   #2
Fizzlemizz
I did that?
 
Fizzlemizz's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Dec 2011
Posts: 1,871
Not in combat. Blizzard doesn't want you to do things like place buttons or units under the mouse in reaction to certain in-combat events/conditions.
__________________
Fizzlemizz
Maintainer of Discord Unit Frames and Discord Art.
Author of FauxMazzle, FauxMazzleHUD and Move Pad Plus.

Last edited by Fizzlemizz : 04-22-17 at 12:40 AM.
  Reply With Quote
04-22-17, 05:50 AM   #3
humfras
A Flamescale Wyrmkin
AddOn Author - Click to view addons
Join Date: Oct 2009
Posts: 131
When infight, you can only call SetPoint on secure frames from bindings, SecureHandlers, referenced secure frames or the frame itself.

You can't call a secure frames' SetPoint function infight via events or insecure code.

.

Please specify your intention.

e.g. if you want to move unit frames based on your combat status, that's doable.
__________________
Author of VuhDo CursorCastBar OptiTaunt Poisoner RaidMobMarker
  Reply With Quote
04-22-17, 08:07 AM   #4
Granduca
A Defias Bandit
Join Date: Sep 2012
Posts: 2
Thanks for answers!

Originally Posted by humfras View Post

Please specify your intention.

e.g. if you want to move unit frames based on your combat status, that's doable.
I want to rebuild my unit frames when the number of players changes.
It will also be fair to change the role of group or raid members.
And as a super task to change the position depending on the current health.

P.S.:
All this is needed for casting on unit frames.
Maybe this problem can be solved using a Clique?

Last edited by Granduca : 04-22-17 at 08:10 AM.
  Reply With Quote
04-23-17, 11:12 PM   #5
kurapica.igas
A Chromatic Dragonspawn
Join Date: Aug 2011
Posts: 152
About the topic, I have some discussion about it in http://www.wowinterface.com/forums/s...ad.php?t=53871, may you find some help in it.
  Reply With Quote

WoWInterface » Developer Discussions » Lua/XML Help » SecureActionButtonTemplate in Combat

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