|
03-21-12, 05:07 PM | #1 |
Questions Regarding oUF_Fail
Hey guys, thanks for the help a few weeks ago with oUF_Karma but now I'm trying out oUF_Fail (same author). I've been tinkering around with it for most of today trying to tweak it how I'd like it but, I've run into a few issues at the moment.
1) How do I go about removing all text from the Raid Frames? [Answered] 2) How do I go about removing all text from the Party Frames? [Answered] 3) How do I go about removing the latency from the end of all cast bars? [Answered] 4) Where do I adjust how many buffs/debuffs are in each row for the Target frame? [Answered] Please check post #8 for new questions. Thanks a lot for everyone's help so far (especially p3lim and Phanx) with all my oUF questions. Last edited by MiRai : 03-23-12 at 02:30 PM. |
|
03-21-12, 05:37 PM | #2 | ||||
I really wish people asking for help with a specific addon would provide a link to that addon's download page, so I didn't have to go hunt for it in order to try to help them... >_<
Code:
329. lib.gen_hpstrings(self)
Code:
367. lib.gen_hpstrings(self)
Code:
if f.mystyle == "player" then --latency (only for player unit) local z = s:CreateTexture(nil,"OVERLAY") z:SetTexture(cfg.statusbar_texture) z:SetVertexColor(1,0.1,0,.6) z:SetPoint("TOPRIGHT") z:SetPoint("BOTTOMRIGHT") s:SetFrameLevel(1) s.SafeZone = z -- custom latency display local l = lib.gen_fontstring(s, cfg.font, 10, "THINOUTLINE") l:SetPoint("CENTER", -2, 17) l:SetJustifyH("RIGHT") l:Hide() s.Lag = l f:RegisterEvent("UNIT_SPELLCAST_SENT", cast.OnCastSent) end
Code:
705. lib.createBuffs = function(f) Code:
738. lib.createDebuffs = function(f) Code:
717. b:SetWidth(f:GetWidth()) Code:
b:SetWidth(((b.size+b.spacing)*4)-b.spacing) |
|||||
03-21-12, 05:58 PM | #3 | |||
Commenting that out throws up this error: Code:
Message: Interface\AddOns\oUF_Fail\castbar.lua:102: attempt to index local 'sf' (a nil value) Time: 03/21/12 18:52:58 Count: 1 Stack: Interface\AddOns\oUF_Fail\castbar.lua:102: in function `PostCastStart' Interface\AddOns\oUF\elements\castbar.lua:61: in function `func' Interface\AddOns\oUF\events.lua:18: in function <Interface\AddOns\oUF\events.lua:16> (tail call): ? Locals: self = oUF_failCastbarplayer { 0 = <userdata> PostCastStop = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:120 CastingColor = <table> { } ChannelingColor = <table> { } Time = <unnamed> { } interrupt = true PostChannelStart = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:94 casting = true FailColor = <table> { } castid = 111 CompleteColor = <table> { } delay = 0 max = 1.5 Text = <unnamed> { } duration = 0 PostCastStart = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:94 Spark = <unnamed> { } __owner = oUF_failPlayer { } ForceUpdate = <function> defined @Interface\AddOns\oUF\elements\castbar.lua:378 Icon = <unnamed> { } PostCastInterrupted = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:135 PostChannelStop = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:129 PostCastFailed = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:135 OnUpdate = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:54 } unit = "player" name = "Red Proto-Drake" rank = nil text = 111 pcolor = <table> { 1 = 1 2 = 0.50196078431373 3 = 0.50196078431373 } interruptcb = <table> { 1 = 0.37254901960784 2 = 0.71372549019608 3 = 1 } sf = nil (*temporary) = 364466.943 (*temporary) = 364466.943 (*temporary) = 0.71372549019608 (*temporary) = 1 (*temporary) = <userdata> (*temporary) = "attempt to index local 'sf' (a nil value)" cast = <unnamed> { 0 = <userdata> setBarTicks = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:32 OnCastbarUpdate = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:54 PostCastStart = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:94 PostCastStop = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:120 PostChannelStop = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:129 PostCastFailed = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:135 OnCastSent = <function> defined @Interface\AddOns\oUF_Fail\castbar.lua:89 } channelingTicks = <table> { Mind Sear = 5 Soul Harvest = 4 Tranquility = 4 Hurricane = 10 Drain Soul = 5 Earthquake = 8 Mind Flay = 3 Penance = 2 Blizzard = 5 Arcane Missiles = 5 Evocation = 4 Drain Life = 5 Rain of Fire = 4 } Here's the castbar.lua code: lua Code:
I have yet to play with the width of the buffs but thanks for pointing me in the right direction. |
||||
03-21-12, 11:19 PM | #4 |
You need to comment out the parts of the code that try to manipulate the elements you already prevented from being created:
Line 69: Code:
self.Lag:SetFormattedText("%d ms", self.SafeZone.timeDiff * 1000) Code:
local sf = self.SafeZone sf.timeDiff = GetTime() - sf.sendTime sf.timeDiff = sf.timeDiff > self.max and self.max or sf.timeDiff sf:SetWidth(self:GetWidth() * sf.timeDiff / self.max) sf:Show() |
|
03-22-12, 07:46 AM | #5 |
Thanks for taking the time to look at this stuff.
*EDITED OUT BECAUSE ISSUE IS FIXED* Lines 90 and 91 also contain SafeZone text but, I'm not entirely sure whether I should be commenting out just 90 and 91 or 89 - 92. However, commenting out 89 - 92 seem to produce no change. Here is my updated castbar.lua w/o 89 - 92 commented out: lua Code:
EDIT: I'm sorry, I did mess up the above and all is currently well. Thank you once again. My question still stands about lines 89 - 92 -- Should something on them be commented out as I do not currently see a visual difference but, those lines contain SafeZone text and I'm just trying to cover any future cast bar issues. Last edited by MiRai : 03-22-12 at 08:37 AM. |
|
03-22-12, 03:43 PM | #6 |
You don't need to comment those lines out, because they check to see if the SafeZone sub-element exists before trying to manipulate it.
If you are obsessively concerned about shaving off a CPU cycle or two, you could comment out the calls to the whole OnCastSent function from the player frame, but realistically speaking you would not see any difference, so I wouldn't bother. |
|
WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Questions Regarding oUF_Fail |
«
Previous Thread
|
Next Thread
»
|
Display Modes |
Switch to Linear Mode |
Hybrid Mode |
Switch to Threaded Mode |
|
|