Thread Tools Display Modes
01-08-11, 04:04 AM   #1
matt.wow
A Murloc Raider
Join Date: Jan 2011
Posts: 5
Use default UI "TargetFrameSpellBar" Frame

Hi,
I always used the default UI target castbar for my oUF layout. Since oUF 1.5 the code didn't work anymore.

Code:
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_START")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_STOP")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_FAILED")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_INTERRUPTED")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_DELAYED")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_CHANNEL_START")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_CHANNEL_UPDATE")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_CHANNEL_STOP")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_INTERRUPTIBLE")
TargetFrameSpellBar:RegisterEvent("UNIT_SPELLCAST_NOT_INTERRUPTIBLE ")
TargetFrameSpellBar:RegisterEvent("PLAYER_ENTERING_WORLD")
TargetFrameSpellBar:RegisterEvent("PLAYER_TARGET_CHANGED")

TargetFrameSpellBar:SetParent(UIParent)
TargetFrameSpellBar:ClearAllPoints()
TargetFrameSpellBar:SetPoint('BOTTOM', UIParent, 0, 265)

function RemoveBlizzFunction()
end

Target_Spellbar_AdjustPosition = RemoveBlizzFunction
TargetFrameSpellBar:SetScript("OnShow", function() end)
How do I get the castbar back?

matt
  Reply With Quote
01-08-11, 04:51 AM   #2
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
You need to run the code after the oUF target frame has been spawned.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
01-08-11, 05:48 AM   #3
matt.wow
A Murloc Raider
Join Date: Jan 2011
Posts: 5
Thanks. Worked.
  Reply With Quote
09-11-14, 12:00 AM   #4
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
Apologies for the necro, but instead of adding this code after the desired unit's spawn, is it possible to stop ouf from disabling it in the first place, in the effort of efficiency?
  Reply With Quote
09-11-14, 01:58 AM   #5
zork
A Pyroguard Emberseer
 
zork's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 1,740
You could embed oUF into your layout and adjust whatever part of oUF is disabling the castbar.
__________________
| Simple is beautiful.
| WoWI AddOns | GitHub | Zork (WoW)

"I wonder what the non-pathetic people are doing tonight?" - Rajesh Koothrappali (The Big Bang Theory)
  Reply With Quote
09-11-14, 03:22 AM   #6
haste
Featured Artist
 
haste's Avatar
Premium Member
Featured
Join Date: Dec 2005
Posts: 1,027
Originally Posted by sirann View Post
Apologies for the necro, but instead of adding this code after the desired unit's spawn, is it possible to stop ouf from disabling it in the first place, in the effort of efficiency?
You could replace the spellbar's UnregisterAllEvents and SetParent with an empty function, so oUFs function call does nothing.

Alternatively, just re-enable it and spend your time optimizing something else. You aren't exactly gaining a lot by doing this.
__________________
「貴方は1人じゃないよ」
  Reply With Quote
09-11-14, 07:10 AM   #7
sirann
A Flamescale Wyrmkin
Join Date: Mar 2007
Posts: 142
thank you both
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » Use default UI "TargetFrameSpellBar" Frame

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