Temporary Fix to new class bars
4 Attachment(s)
Whilst I've been using other addons for my warlock and paladin they have other elements that I do not need.
Now, seeing as we are patiently ( stress on the last word there ) waiting for an update to include the new bars I thought I would rig up a temporary work around to allow us to place the bars where we want them for now and have nUI keep track of them for us. How nice of nUI to do that for us rofl. I won't upload this addon as an official addon as it is only temporary in nature to use in the interim if you don't like the functionality of the other addons being used instead. I don't have a boomkin to test the eclipse bar on but I have set it up to work the same as the other bars so should work fine. Just use /nui movers and you should see mover frames for them. However, the Shaman totem timer buttons I have automatically attached to the shaman totem bar to have them appear directly underneath the totem button that they reflect. Blizz deals with updating it however, all I did was reparent the timer bar to the totem bar and reposition the individual buttons. For those that want to see exactly what I did .. here's the code segment for each bar: Code:
local function PTM_WSSInit() |
YAY! First time I see my shards since 4.0.1 hit :p
Or do I? It always shows 2 shards for some reason. nUI error, Blizzard error or user error (aka PEBKAC)? |
1 Attachment(s)
Hmm, good point .. maybe the update routines aren't being triggered .. I'm on my pally so will test that one. Then I'll test the warlock one out .. my apologies if it's not working properly *sigh*.
Edit: Okay, think I realise now why people use a fake player frame to do this rofl. They use a getparent.unit value that gets updated on target change. Will incorporate the new changes and yes, thoroughly test it out on the two classes at least :D My apologies again for missing out that vital ingredient :D Okay, seems to be working .. holy power and soul shards being visually displayed when being filled and used. The same change worked for both so hopefully it will work for the druids. |
Seeing the shards in my local wow install made me happy already, having it actually work will give new excitement. When you get it to work, you made me happy twice ;)
|
i got this error after installing this temp fix "addon"
Code:
Date: 2010-10-26 02:10:43 |
Yep, that was the problem tinyu. I didn't realise that they were using self:GetParent().unit to validate the shard/power level which of course would be nil unless set. So, the main addon frame has become a fake player frame with a unit value set to whatever the playerframe's unit is set to on target change. Seems to work now with my initial tests on both warlock and paladin.
|
sounds great cant wait for the upload
|
1 Attachment(s)
okay, new file .. I posted in the earlier reply but I'll post here as well :D
|
got the same error again
Code:
Date: 2010-10-26 02:33:49 |
Hmm weird, playing my pally now doing dailies with no errors .. can you remember what you're doing when that happens ?
|
It works for Warlocks now, as long as I changed target at least once. Fair enough for such quick code.
Thank you very much!:D |
Quote:
|
ah .. one test I didn't do tinyu and probably the cause of the warlock glitch .. let me test that in a bit and see if I get the same effect.
Edit: Hmm, just logged out to desktop with my pally and logged back into game .. not in combat mind you if thats the difference, no error in bugsack *sigh* You are using the (2) version right ? As to the warlock buglet .. try adding the following line before the UnregisterEvent line in the OnEvent function. Theoretically that will refresh things regardless of a target change when you first log in or reloadui. It may resolve your paladin problem too tinyu .. not being able to get the error I don't know for sure though. self.unit = PlayerFrame.unit; |
Quote:
|
Quote:
Edit: Bad news! I logged out with 0 shards, logged in with, well... 0 ofc :p It showed 3 shards on login, casting Soul Harvest lead to: Code:
Message: Interface\FrameXML\ShardBar.lua:79: attempt to index a nil value |
Thank you Xrystal
/hug |
ok nightspirit .. remove that code for now .. go back to the slightly glitched version rather than the definite error one :D
I'll see what I can figure out there rofl .. |
I take it back, please read up for my insane ****up :p
|
Quote:
*hugs Xrystal as well. |
Quote:
|
All times are GMT -6. The time now is 02:09 PM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI