WoWInterface

WoWInterface (https://www.wowinterface.com/forums/index.php)
-   oUF (Otravi Unit Frames) (https://www.wowinterface.com/forums/forumdisplay.php?f=87)
-   -   Updating Bars of Target/TargetTarget (https://www.wowinterface.com/forums/showthread.php?t=26687)

WIuser 08-21-09 02:19 AM

Updating Bars of Target/TargetTarget
 
Hi All

Ive manage to get target and target bars to update correctly, but the power bars arnt updating.

For the tanks, they are updating fine but the tanktarget and tanktargettarget do not update power bars.

health is updating fine

i noticed that in ouf/health.lua in the Enable function there is a line
Code:

if(health.frequentUpdates and (self.unit and not self.unit:match'%w+target$') or not self.unit) then
but in the power.lua file it uses
Code:

if(power.frequentUpdates and (unit == 'player' or unit == 'pet')) then
if i change the code in the power.lua my power bars all work fine.

any suggestions here?

jadakren 08-22-09 01:50 AM

Quote:

Originally Posted by WIuser (Post 154942)
if i change the code in the power.lua my power bars all work fine.

any suggestions here?

make the change, embded the modified ouf in your addon.

haste 08-22-09 12:53 PM

It sounds like a problem with oUF really. Units that end with target should be handled by the unified OnUpdate in the core, and not in the module. Could you point me in direction to the layout with the issue and possibly post a bug report on it?

WIuser 08-23-09 03:15 AM

Quote:

Originally Posted by haste (Post 155144)
It sounds like a problem with oUF really. Units that end with target should be handled by the unified OnUpdate in the core, and not in the module. Could you point me in direction to the layout with the issue and possibly post a bug report on it?

Im not sure if there is some legitimate reason for the difference, so i couldnt say if its a bug.

See the current version of oUF_DaMT for the version I use which works as intended with my altered version of the oUF library.

I have also uploaded patch files in the optional section which have the files i changed in the oUF library...

haste 08-23-09 10:24 AM

It should be fixed with 1.3.20. I can't test it however, so you'll have to give me some feedback on it.

WIuser 08-24-09 01:24 AM

Quote:

Originally Posted by haste (Post 155336)
It should be fixed with 1.3.20. I can't test it however, so you'll have to give me some feedback on it.

Does not look like it changed at all...

I ended up just making the changes and embedding oUF into the mod.

I renamed a lot of variables so it wouldnt conflict with any other installs of ouf should anyone choose to do so. I know it takes a little more memory, but I dont know how to make my addon overide only a subset of some oUF installation elements, so, stand alone it is...

THere was also troubles with ricon.lua not updating and disconnected colour not updating... changed
Code:

self.disconnected = UnitIsConnected(self.unit)
if(self.disconnected) then return end

and added
Code:

self:RegisterEvent("UNIT_TARGET", Update)
in ricon.lua


on line 37 of health.lua so it would do an up-to-date check.

Im probably hacking the code up here, suggestions welcomed. Feels like im changing a lot of things round, is there some magic variable to turn on target watching that im missing?

haste 08-24-09 02:55 AM

You should change your focus away from the oUF elements. They are already working fine for so to say all units. What you want to focus on is the core. The change I made that I believe would resolve this issue was 6e72dac8. If it didn't then the problem might lie elsewhere.

I'll probably have a chance to actually do some in-game testing of this later today. You can also embed oUF without it clashing with other layouts by using a custom X-oUF variable in the TOC.

haste 08-24-09 09:27 AM

It's now fixed with 1.3.21.

WIuser 08-25-09 04:10 AM

Quote:

Originally Posted by haste (Post 155534)
It's now fixed with 1.3.21.

Nice, tested during a raid tonight.. it seemed to do everything as intended.

uploaded it to match current oUF version.

Thanks haste.


All times are GMT -6. The time now is 07:57 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI