Go to Page... |
Thread Tools | Display Modes |
08-28-18, 09:19 PM | #21 | |
And for confirmation... just adding that _onstate-page snippet with nUI's actionbuttons variable made it all work and the pet bar came back as I suspected it would ... *happy dance* And hey, I learnt more about the secure stuff. Thanks alot again.
__________________
Last edited by Xrystal : 08-28-18 at 09:28 PM. |
||
03-15-19, 11:45 PM | #22 |
I hate to pseudonecro this thread, but I found a solution to this if you still cared.
I did some intense digging, and came up with: Lua Code:
the key thing is the SetAttribute('statehidden') for the buttons. The page changes early on in this quest (as soon as you mount the gryphon) but then the attributes are changed after the page change. I found the function above to hook and it works HOWEVER, by using SetAttribute outside of a secure environment, this does cause tainting. I've conversely come up with: Lua Code:
but IDK if it works and it takes like 2-3 hours of questing to get to that particular quest to test it. If anyone can test that, let me know, if not, I'll post back when I have the time to get another character to that quest. |
|
03-16-19, 10:39 AM | #23 |
Did some more testing and came up with this:
Lua Code:
This works beautifully and causes 0 taint. HOWEVER, I'm nearly positive this could be way more optimized. |
|
04-10-19, 08:39 PM | #24 |
I'm pretty sure I got this working in the end for nUI and a custom bar addon.
I just didn't progress my character until I had it working exactly how I expected it to work .. And then tested the next one in the quest chain that did this before moving on. As far as I am aware it is working fine.
__________________
|
|
05-01-20, 09:30 PM | #25 |
To follow on from this initial quest related action bar problems... there was another quest (https://www.wowhead.com/quest=52042/the-big-boom) that needed the bar updated again *sigh* .. so hopefully my change to my previous bar changes haven't killed off the Righteous Retribution quest chain. Or the Tortollan Turtles daily quest (https://www.wowhead.com/quest=55300/the-cycle-of-life) I had to make a change for ( just a re-order of the special bars) since this thread was updated.
Anyway .. This is what I ended up doing to make things work for big boom which works in a similar way to Righteous Retribution which may have got broken when I made the changes needed for Tortollan Turtles Daily. Lua Code:
This seems to work fine, after several hours of mixing and matching the code Terenna posted so that it worked with nUI. At least for the big boom quest... I'll hold off handing it in until I have tested at least the tortollan turtle quest. Which after completing just now is working fine. And it doesn't seem to have overtly affected the normal action bar switching ( druid forms etc switch and update fine with the correct ability icons ).
__________________
Last edited by Xrystal : 05-02-20 at 05:40 PM. |
|
07-22-20, 11:02 AM | #26 |
The Big Boom is another quest that has this type of action bar update process.
This will hopefully finalise the changes I ended up making to the action bar in relation to the override bar buttons appearing when they are scheduled rather than immediately. The following are the changes I ended up making but I just had to add 'elseif value == GetOverrideBarIndex() then' line instead of just else .. as without it .. all other actionbar states were ignoring changes such as dragging new abilities onto the bar etc. And macro based buttons were flashing as well as abilities that weren't valid. These are nUI changes so they are based Terenna's findings adjusted to work with nUI as nUI creates its own action bars. Lua Code:
__________________
Last edited by Xrystal : 07-22-20 at 11:13 AM. |
|
07-28-20, 10:32 PM | #27 |
But alas .. my last post was not to be the last .. it appears that these changes affect how stance bars work ( in nUI at least ). So I may have to switch the override bar into a separate bar rather than a switching bar and apply the code to that which should solve the problems all round.
__________________
|
|
07-29-20, 07:39 AM | #28 |
Wow .. all I had to do was monitor for a couple of events and then do a secure execute snippet to update the buttons again .. I suppose it is all a learning curve
The first time round it doesn't need to do it as the initial state-page change has the same code. Any additional calls to update the bars just asks for the page as last set and updates all the buttons again. Works flawlessly with Big Boom quest and doesn't affect stance bar changes rofl. Lua Code:
__________________
|
|
10-22-20, 07:45 AM | #29 |
And after some more tests with the different action bar change requirements and found this allowed things to work in all scenarios so far found:
Lua Code:
In addition to these event watching additions Lua Code:
And for a non nUI setup for those wanting to see the basics in full Lua Code:
__________________
|
|
WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » Quest:Righteous Retribution special action bar not switching in nUI |
«
Previous Thread
|
Next Thread
»
|
Thread Tools | |
Display Modes | |
|
|