For the user setting to work the code snippet that runs in response to state change needs to reference the setting in a variable in its restricted environment; in the code I provided it is stored in "raidhideparty". After initialization and whenever the user setting changes it must be propagated into the restricted enviroment using :Execute, which is the purpose of the 3rd code extract in my first post, which effectively sets "ridehideparty" to be equal to the value in the user setting variable. That part could also be written like this for clarity (with the appropriate CVar used):
lua Code:
|
Quote:
http://forums.wowace.com/showthread.php?t=16669 i also had another idea.... what if... one were to take over the bliz function for setfocus on the drop down and replace it with lua code that runs the /focus slash cmd, and create your own setfocus frame that opens on unit watch.. if the bliz focus frame works on unitwatch then you dont need to make your own even. assuming the macro will fire from lua while in combat. that work around that i posted the link to looks dicey to me but then im still a coding noob imo. |
I'm using keybind (Alt+F) to set focus.
I saw many discussions about addon being unable to set focus, and to create a macro for "/focus", but I'm failing to see how that would be more useful... |
I have no idea how it works, but it's in my bookmarks:
http://paste.wowace.com/781/ |
it is doable a few addons do it. One in particular is Clique. Although it does not appear to use the actual menu function. However this would mean one way or another you can make an addon setfocus its just a mater of how to make that menu feature setfocus. Its really something blizz should be fixing....
|
For hiding protected frames:
Code:
local securehandler = CreateFrame("Frame", nil, nil, "SecureHandlerBaseTemplate") |
did you see the post about the arena frames? how would i work the secure show hide into whats being talked about there? the biggest problems right now are the show hiding of raid and party frames, and the secure show/hide of secure button frames of various sorts, not action bars but like the spellbook frame, those are secure buttons so if you screw around with the size or position or show/hide of that frame it has to be done secure or you get taint when in combat.
|
Quote:
Quote:
The pastey nightcracker linked was broken with 3.2 (3.1?), it was technically a loophole that caused it to work in the first place. |
So there is just no fix to the menu setfocus issue?
As for the frame showing and hiding well the problem is my party frames do not always show hide as they should. one of the times its an issue is if you drop raid while in combat. or join raid in combat... or for that mater do anything in combat :) the other thread has the actual code pasted. http://www.wowinterface.com/forums/s...ad.php?t=30923 |
Quote:
See the other topic about the frame issue. |
All times are GMT -6. The time now is 04:46 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI