UnitFrame:SetAttribute change?
Is it just me being behind the learning curve or are "*type1" and "*type2" attributes for frames inheriting the SecureUnitButtonTemplate now unable to be changed?
I know it was possible up to 5.x because way back when DUF was modified to use menu instead of togglemenu which would cause an error trying to set a focus target. Now (6.2.4), no matter what they are set to, I always get leftclick target rightclick popup menu. "*type3", 4 and 5 can still be modified. Edit: for version. |
Pretty certain type1 and type2 were locked to address the setting of a focus target. You can look at Clique's code to make certain, as there was a time where Clique could override those. I'm not sure if it still can.
|
Setting of the focus target was fixable by using "togglemenu" as the value for the type attribute. That's how I fixed DUF in 5.4.
It seems a bit overkill to set it in stone because somone doesn't know the correct value when one is actually available. |
You should be able to freely change thoose.
|
Edit: It appears to work as expected in Legion beta but not 6.2.4.
I agree you should but, explicitly setting "*type1", "*type2" to nil or "assist" I still get left/target, right/popup. I was under the impression they actually had to be explicitly set before the buttons did anything but I see: Code:
function SecureUnitButton_OnLoad(self, unit, menufunc) |
Seems like you are right, i guess they messed up something with the latest build.
|
Thanks Resike.
|
All times are GMT -6. The time now is 02:36 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI