Thread Tools Display Modes
03-22-11, 03:02 PM   #1
Anarric
A Murloc Raider
Join Date: Mar 2011
Posts: 6
oUF and Blizzard Cast Bar

I'm currently using SpartanUI and oUF (came with Spartan, addon link { http://www.wowinterface.com/download...18206#comments } )

right now theres only an option for SpartanUI's cast bar and the oUF one.
I'd like to have the Blizzard Default Cast Bar. I've coded with C++/Java etc but I haven't done much LUA or XML, so if anyone knows how I can get the blizzard cast bar up or knows where I should start looking to change something in a LUA I would appreciate it
  Reply With Quote
03-22-11, 05:39 PM   #2
Saiket
A Chromatic Dragonspawn
 
Saiket's Avatar
AddOn Author - Click to view addons
Join Date: Jul 2008
Posts: 154
The code that disables the default cast bar is near line 381 of <oUF/elements/castbar.lua>:
Code:
		if(object.unit == "player") then
			CastingBarFrame:UnregisterAllEvents()
			CastingBarFrame.Show = CastingBarFrame.Hide
			CastingBarFrame:Hide()
Just comment out the last 3 lines of that section (the ones starting with "CastBarFrame") with two dashes each, like this:
Code:
		if(object.unit == "player") then
			--CastingBarFrame:UnregisterAllEvents()
			--CastingBarFrame.Show = CastingBarFrame.Hide
			--CastingBarFrame:Hide()
  Reply With Quote
03-22-11, 05:44 PM   #3
Anarric
A Murloc Raider
Join Date: Mar 2011
Posts: 6
Originally Posted by Saiket View Post
The code that disables the default cast bar is near line 381 of <oUF/elements/castbar.lua>:
Code:
		if(object.unit == "player") then
			CastingBarFrame:UnregisterAllEvents()
			CastingBarFrame.Show = CastingBarFrame.Hide
			CastingBarFrame:Hide()
Just comment out the last 3 lines of that section (the ones starting with "CastBarFrame") with two dashes each, like this:
Code:
		if(object.unit == "player") then
			--CastingBarFrame:UnregisterAllEvents()
			--CastingBarFrame.Show = CastingBarFrame.Hide
			--CastingBarFrame:Hide()
thats what I was looking for, thank you
  Reply With Quote

WoWInterface » Featured Projects » oUF (Otravi Unit Frames) » oUF and Blizzard Cast Bar


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