local buff_OnClick = function(self, button)
if (button == "RightButton" and self:GetParent():GetUnit().unit == "player") then
local name, rank = UnitBuff("player", self:GetID())
CancelPlayerBuff(name, rank)
end
end
some day i hope we can be able to create raidframes :)
nothing big, just some small info :)
like this maybe?
(taken from the pitbull layout topic)
Have raidframes be spawned, set the height and width of the HP bars and mana bars, anchor them together, anchor the Name fontstring to the side. Basically, that is it. Now pouring that into code, is something else. :P
Hi, i'm myself playing a bit with oUF to find the layout that suits me the most, but atm, i still didn't find any way to display the party pet frames, any ideas/tips will be appreciated a lot :D
local buff_OnClick = function(self, button)
if (button == "RightButton" and self:GetParent():GetParent().unit == "player") then
local name, rank = UnitBuff("player", self:GetID())
CancelPlayerBuff(name, rank)
end
end
I somehow wrote :GetParent():GetUnit() there.... That one does work however :p
Haste add this to the aura.lua on the svn please:
line 49:
local buffOnEnter = function(self)
if(not self:IsVisible()) then return end
local unit = self:GetParent():GetParent().unit
GameTooltip:SetOwner(self, "ANCHOR_BOTTOMRIGHT")
GameTooltip:SetUnitBuff(unit, self:GetID())
end
Hi, i'm myself playing a bit with oUF to find the layout that suits me the most, but atm, i still didn't find any way to display the party pet frames, any ideas/tips will be appreciated a lot :D
local party1pet = oUF:Spawn("party1pet")
party1pet:SetPoint("TOPLEFT", oUF_PartyUnitButton1, "BOTTOMLEFT", 0, -4)
local party2pet = oUF:Spawn("party2pet")
party2pet:SetPoint("TOPLEFT", oUF_PartyUnitButton2, "BOTTOMLEFT", 0, -4)
local party3pet = oUF:Spawn("party3pet")
party3pet:SetPoint("TOPLEFT", oUF_PartyUnitButton3, "BOTTOMLEFT", 0, -4)
local party4pet = oUF:Spawn("party4pet")
party4pet:SetPoint("TOPLEFT", oUF_PartyUnitButton4, "BOTTOMLEFT", 0, -4)
Thanks a lot Coldfury!!!!
Never thought it would be that simple, actually i was getting a headache in trying to find it !
EDIT : There seems to be some problems with those frames updating. If a party member summons an other pet, it won't refresh in the frames (ie. a warlock summons voidwalker while already having the felhunter out, then even after the voidwalker popped, frame is still showing the felhunter's).
I guess it's something related with the event updating or so.
EDIT2 : the frame's info aka mana/health isn't updating at all :(
Thanks a lot Coldfury!!!!
Never thought it would be that simple, actually i was getting a headache in trying to find it !
EDIT : There seems to be some problems with those frames updating. If a party member summons an other pet, it won't refresh in the frames (ie. a warlock summons voidwalker while already having the felhunter out, then even after the voidwalker popped, frame is still showing the felhunter's).
I guess it's something related with the event updating or so.
EDIT2 : the frame's info aka mana/health isn't updating at all :(
Ye, there is no event updating made for party pets in the ouf.lua
Got raidframes spawned, now im looking into how to make the groupframes hide if in raid, let new settings from party change (cant really understand the :RegisterStyle() thing) and placement.
I would love to use oUF for my raidframes and go oUF-only, but i have one question on the setup.
Is it possible to display the raidtarget every member targets besides the frame (Just like BunchOfBars does). I find it really helpful, and it seems to be the only thing that keeps me on using BunchOfBars :)
I would love to use oUF for my raidframes and go oUF-only, but i have one question on the setup.
Is it possible to display the raidtarget every member targets besides the frame (Just like BunchOfBars does). I find it really helpful, and it seems to be the only thing that keeps me on using BunchOfBars :)
this will spawn debuffs for party. but when i try for buffs, it errors out and doesnt work.
here the error
oUF\elements\aura.lua:101: attempt to index upvalue 'button' (a nil value)
oUF\elements\aura.lua:206: in function `?'
oUF\ouf.lua:369: in function <Interface\AddOns\oUF\ouf.lua:363>
<in C code>: in function `Show'
Interface\FrameXML\SecureTemplates.lua:801: in function <Interface\FrameXML\SecureTemplates.lua:715>:
Interface\FrameXML\SecureTemplates.lua:1008: in function `SecureGroupHeader_Update':
Interface\FrameXML\SecureTemplates.lua:599: in function `SecureGroupHeader_OnEvent':
<string>:"*:OnEvent":1: in function <[string "*:OnEvent"]:1>
---
line 363/369 is the UpdateAll function in oUF.lua.
If I try to enable both buffs and debuffs (I like seeing the buffs I can cast on my party) I get the same error as you, Cold. Actually, mostly all buffs give that error. Would you mind posting your layout? Or pastey it and then link it? It could help get the errors out :)
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Round two:
Very nice. I would love to see your layout code + part on the pvp :P
Edit: Pvp .. PVP - Different things in lua, I have got to pay more attention to these things.
Have raidframes be spawned, set the height and width of the HP bars and mana bars, anchor them together, anchor the Name fontstring to the side. Basically, that is it. Now pouring that into code, is something else. :P
Dont work ;(
Offtop
Haste vs OnClick WoW API
;)
Round three:
I somehow wrote :GetParent():GetUnit() there.... That one does work however :p
line 49:
Never thought it would be that simple, actually i was getting a headache in trying to find it !
EDIT : There seems to be some problems with those frames updating. If a party member summons an other pet, it won't refresh in the frames (ie. a warlock summons voidwalker while already having the felhunter out, then even after the voidwalker popped, frame is still showing the felhunter's).
I guess it's something related with the event updating or so.
EDIT2 : the frame's info aka mana/health isn't updating at all :(
Ye, there is no event updating made for party pets in the ouf.lua
so far:
http://i9.tinypic.com/7wi8k08.jpg
also, i cant get buffs/debuffs to show properly on party, anyone got a clue?
try this in the layout.lua :
same goes for debuff, if you want to add buffs/debuff on any other unit, you juste have to add it like :
and so on
Is it possible to display the raidtarget every member targets besides the frame (Just like BunchOfBars does). I find it really helpful, and it seems to be the only thing that keeps me on using BunchOfBars :)
In case you don't know BunchOfBars: http://img186.imageshack.us/my.php?image=bunchofbarsyy5.png
(blue=my target, green=friendly target, red=another mob. plus the icons)
When i look at my raidframes, oUF seems to be just what i want :)
could be possible, could just use a very slimmed down raid-target
Im not dumb :p
Ive had it like that but it doesnt seem to work
Upload imo! :p
like
this will spawn debuffs for party. but when i try for buffs, it errors out and doesnt work.
here the error
line 363/369 is the UpdateAll function in oUF.lua.