Reply
 
Thread Tools Display Modes
Old 03-30-13, 11:00 AM   #101
j800r
An Aku'mai Servant
Join Date: Jun 2012
Posts: 33
Reading this is a bit of a disappointment. I would never wish to replace one of nUIs features as I think they're all fantastic but I do wish there was a way to stop nUI controlling the watchframe because I use DugiGuides and the addon controls the watchframe itself. The reason why I'd prefer control of the watchframe to go to DugiGuides is because it has an embed feature where the guide frame will embed itself into the watchframe for more seamless integration.

Only a minor gripe really and not the end of the world.
j800r is offline   Reply With Quote
Old 03-30-13, 11:35 AM   #102
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,027
There is a way that addons that work on the watchframe to tell nUI to stop taking control. I use it myself when I created the watchframe addon that can be put inside an infopanel.

Lua Code:
  1. nUI_Movers:lockFrame( WatchFrame, false, nil );
  2.     nUI_Options.movedWatchFrame = true;

Something as simple as that just fools nUI into thinking its moved it and no longer needs to control it.

I use dugi guides myself sometimes so will see if I can rig up a little plugin for dugi guides users to use that just does that .. turns off the control.
__________________




Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
Version 5.07.27 contains the latest bugfixes.
The thread http://www.wowinterface.com/forums/s...t.php?p=267112 makes an adjustment missed off of the patch update.
Xrystal is offline   Reply With Quote
Old 03-30-13, 01:26 PM   #103
j800r
An Aku'mai Servant
Join Date: Jun 2012
Posts: 33
Cheers for the help. I can't seem to get that to work though. Which lua file do i need to add the code lines to? I tried adding them into nui_Movers.lua but everything got messed up. :s

**update**

Ok, took a mosey at your watchframe plugin which contains the code and tried shoving the code lines directly from there into the watchframe.lua in DugiGuides but that didn't seem to work. I really need to brush up on my lua understanding, lol

Last edited by j800r : 03-30-13 at 01:39 PM.
j800r is offline   Reply With Quote
Old 03-30-13, 04:18 PM   #104
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,027
Its sneaky. You have to time it right ..

Those functions are called inside my function CustomizeWatchFrame which is called inside my addon from another function CreateFrames which is called when the VARIABLES_LOADED event has been triggered and again when PLAYER_ENTERING_WORLD is triggered. But the latter time it only executes if the first attempt on VARIABLES_LOADED isn't successful.


So you want to look for something that says something similar to the following :

Lua Code:
  1. local arg1 = select(...)
  2.  
  3. if ( event == "ADDON_LOADED") then
  4.      if ( arg1 == "nUI") then
  5.           nUILoaded = true
  6.      end
  7. end
  8.  
  9. if event == VARIABLES_LOADED and nUILoaded then
  10.      nUI_Movers:lockFrame( WatchFrame, false, nil );
  11.      nUI_Options.movedWatchFrame = true;
  12. end

Look for his event tracking code and see if any of those events are being checked for. If he then does a double check to make sure his frames are created properly ( I have to do it as I work with the watchframe and nUI ) then plug those 2 lines in there too but only if nUILoaded is true.
__________________




Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
Version 5.07.27 contains the latest bugfixes.
The thread http://www.wowinterface.com/forums/s...t.php?p=267112 makes an adjustment missed off of the patch update.
Xrystal is offline   Reply With Quote
Old 03-30-13, 06:17 PM   #105
j800r
An Aku'mai Servant
Join Date: Jun 2012
Posts: 33
Eh. I still can't seem to get the damn thing working. I can find those event checks in the nUI code but the rest isn't there. Tried slotting in two lines to "fool" the watchframe module but nothing changed.

I'm tired now anyway. Maybe I'll try tomorrow or maybe I'll just give up. The DugiGuides addon has patches for ElvUI and TukUI which also request control of the watchframe but I can't exactly ask Dugi to add a patch for every UI out there. Especially if there's not enough demand. :/
j800r is offline   Reply With Quote
Old 03-30-13, 06:33 PM   #106
Xrystal
nUI User and Supporter
 
Xrystal's Avatar
Premium Member
AddOn Author - Click to view addons
Join Date: Feb 2006
Posts: 5,027
No worries. Restore nUI back to the condition it was before you started changing this stuff and I'll try and quickly rig up something for you.

Edit:

Looks like it won't be as easy as it seems as Dugi does check nUI compatibility and turns off certain settings the moment it sees it is active.

So far my attempts haven't enabled the quest watcher small frame option integration which I assume is what you are talking about.

Edit2:

Okay, looks like I may have got it sorted out with just a few tweaks to dugi guides.

In DugiGuidesViewer.lua and SmallFrame.lua and WatchFrame.lua there are checks to see if nUI is loaded.

Search for .nuiloaded and remove 'or DugisGuideViewer.nuiloaded' or 'or DGV.nuiloaded' blocks
or if it is easier comment out the whole line with -- in front and copy the rest of it as a new line

This will allow the smallframe to be attached inside the watchframe. So far it looks to be working fine but hard to say. Definitely don't load up my watchframe plugin as that totally messes it up rofl.
__________________




Info Panel IDs : http://www.wowinterface.com/forums/s...818#post136818
Version 5.07.27 contains the latest bugfixes.
The thread http://www.wowinterface.com/forums/s...t.php?p=267112 makes an adjustment missed off of the patch update.

Last edited by Xrystal : 03-30-13 at 07:34 PM.
Xrystal is offline   Reply With Quote
Old 03-31-13, 03:07 AM   #107
j800r
An Aku'mai Servant
Join Date: Jun 2012
Posts: 33
Xrystal, I love you! That sorted it! Checked for events checks but never checked to see if DG was checking for nuiloaded. Removed those checks and I now have watchframe integration again.

Of course, now the challenge will be remembering to delete those code lines every time DugiGuides is updated. lol
j800r is offline   Reply With Quote
Reply

Go BackWoWInterface » Featured Projects » nUI, MozzFullWorldMap and PartySpotter » Support » nUI: FAQ » I'd like to disable some of nUI's features...

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