Download
(7Kb)
Download
Updated: 11-28-10 09:41 AM
Pictures
File Info
Updated:11-28-10 09:41 AM
Created:unknown
Downloads:23,026
Favorites:78
MD5:

thek: Castbar  Popular! (More than 5000 hits)

Version: beta1
by: thek [More]

thek: Castbar (BETA)

redesigns the default castbars.

WARNING: this addon will only work 100% with the default unitframes because ouf and other unitframe addons deactivate the default unitframes and the bundled castbars for target and focus. (Playercastbar will still work, even with custom unitframes)

Move the castbars:

use /tcb to toggle the dragframes.

Configuration:

You can find the configuration at the config.lua file.

c["CastingBarFrame"] = {
enabled = true,
textPosition = {"CENTER", 0, 2},
textFont = {"Fonts\\FRIZQT__.TTF", 12, ""},
castbarSize = {250, 25, 4, 5},
castbarColor = {0, .9, 0},
castbarBGColor = {.1, .1, .1, .95},
castbarTextures = {"Interface\\AddOns\\thek_Castbar\\media\\bar.tga", "Interface/Tooltips/UI-Tooltip-Background"},
enableLag = true,
enableTimer = true,
}
c["TargetFrameSpellBar"] = {
enabled = true,
textPosition = {"CENTER", 0, 2},
textFont = {"Fonts\\FRIZQT__.TTF", 12, ""},
castbarSize = {250, 25, 4, 5},
castbarColor = {0, .9, 0},
castbarBGColor = {.1, .1, .1, .95},
castbarTextures = {"Interface\\AddOns\\thek_Castbar\\media\\bar.tga", "Interface/Tooltips/UI-Tooltip-Background"},
enableLag = true,
enableTimer = true,
}
c["FocusFrameSpellBar"] = {
enabled = true,
textPosition = {"CENTER", 0, 2},
textFont = {"Fonts\\FRIZQT__.TTF", 12, ""},
castbarSize = {250, 25, 4, 5},
castbarColor = {0, .9, 0},
castbarBGColor = {.1, .1, .1, .95},
castbarTextures = {"Interface\\AddOns\\thek_Castbar\\media\\bar.tga", "Interface/Tooltips/UI-Tooltip-Background"},
enableLag = true,
enableTimer = true,
}
c["MirrorTimer1"] = {
enabled = true,
textPosition = {"CENTER", 0, 2},
textFont = {"Fonts\\FRIZQT__.TTF", 12, ""},
castbarSize = {250, 25, 4, 5},
castbarColor = {0, .9, 0},
castbarBGColor = {.1, .1, .1, .95},
castbarTextures = {"Interface\\AddOns\\thek_Castbar\\media\\bar.tga", "Interface/Tooltips/UI-Tooltip-Background"},
enableTimer = true
}
c["PetCastingBarFrame"] = {
enabled = true,
textPosition = {"CENTER", 0, 2},
textFont = {"Fonts\\FRIZQT__.TTF", 12, ""},
castbarSize = {250, 25, 4, 5},
castbarColor = {0, .9, 0},
castbarBGColor = {.1, .1, .1, .95},
castbarTextures = {"Interface\\AddOns\\thek_Castbar\\media\\bar.tga", "Interface/Tooltips/UI-Tooltip-Background"},
enableTimer = true
}

The config has changed in different points.

textfont: first value is the fontfile, second value defines the fontsize and the last option sets fontoptions like outline, thinoutline and so on.

castbarsize: first value sets the castbar width, second the height, third the bordersize and last the spacing between the castbar and the castbar icon.

castbarcolor/castbarbgcolor: defines the rgb value for the castbar color.

castbartextures: first value defines the castbar texture, second the background texture.

enabletimer: enables the castbar timer

enablelag: enables the castbar lag

NOTE: the mirrortimer has no lag, so there is no option for it!

version 0.2.2
removed a bug: moves the targetcastingbar to a random position

version 0.2.1
added mirrortimer

version 0.2
changed configuration (castbar.lua)
added focus- and targetcastbar

version 0.1.3
another try to fix 'resize' bug
added castbarlag

version 0.1.2
hooked 'onsizechanged' - should fix resize bug
added castbartimer

version 0.1.1
bugfix: castbar size

rewrite 0.1
new version

version 0.6.1
removes a possible bug with castbartimers

version 0.6
enables drag & drop for mirrorbar

version 0.5
enables drag & drop for target-/focuscastbar
adds some options

version 0.0.4a
removes bug with castbartimes

version 0.0.4
removes bug with petcastbar

version 0.0.3a
adds: focuscastbartimer

version 0.0.2
adds: drag&drop for playercastbar, slashcommands, targetcastbartimer
Post A Reply Comment Options
Unread 01-29-09, 10:00 AM  
Squiddy0
A Defias Bandit
 
Squiddy0's Avatar
AddOn Author - Click to view AddOns

Forum posts: 3
File comments: 116
Uploads: 3
Originally posted by thek
Hi, my addon doesn't create any castbars, it makes them only dragable and extends them with a lagmeter and timer. The castbars itself are created by blizzards ui.
Ok if that's the case, is there an option to disable the other cast bar drag/drop features in the core.LUA, except the player cast bar?
Report comment to moderator  
Reply With Quote
Unread 01-29-09, 01:30 PM  
thek
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 104
Uploads: 10
Originally posted by Squiddy0
Ok if that's the case, is there an option to disable the other cast bar drag/drop features in the core.LUA, except the player cast bar?
Don't know why you want to do that, but you this one should work:

--tcb = SetupCastingBar("TargetFrameSpellBar");
--fcb = SetupCastingBar("FocusFrameSpellBar");
--mcb = SetupCastingBar("MirrorTimer1", true);

from line 127-129
Report comment to moderator  
Reply With Quote
Unread 01-29-09, 07:49 PM  
frank0624
A Kobold Labourer
 
frank0624's Avatar

Forum posts: 0
File comments: 1
Uploads: 0
Originally posted by thek
Don't know why you want to do that, but you this one should work:

--tcb = SetupCastingBar("TargetFrameSpellBar");
--fcb = SetupCastingBar("FocusFrameSpellBar");
--mcb = SetupCastingBar("MirrorTimer1", true);

from line 127-129
I think that a lot of people use other unitframe UI to display target and focus' casting bar, maybe that's why he want to do that
Report comment to moderator  
Reply With Quote
Unread 01-30-09, 01:26 AM  
thek
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 104
Uploads: 10
Originally posted by frank0624
I think that a lot of people use other unitframe UI to display target and focus' casting bar, maybe that's why he want to do that
I know, but this hides only the dragframes for the default castbars i don't get it, but i must not. Feel free to do whatever you want
Report comment to moderator  
Reply With Quote
Unread 01-31-09, 01:39 PM  
bluenyx
A Kobold Labourer

Forum posts: 0
File comments: 6
Uploads: 0
Re: Re: Is there problem?

Originally posted by thek
Hi, when do you get this error? @Login or when casting (maybe a special castbar / vehicle)? Thx for your help.
FocusFrame addon you're problem.
Generally speaking when you use FocusFrame addon problem does happen, but it's a mind set to give you this castingbar error.
Can not change the target of the cast bar is the default castbar.
Report comment to moderator  
Reply With Quote
Unread 02-01-09, 06:34 PM  
whizque
A Defias Bandit
 
whizque's Avatar
AddOn Author - Click to view AddOns

Forum posts: 1
File comments: 39
Uploads: 3
Originally posted by thek
Don't know why you want to do that, but you this one should work:

--tcb = SetupCastingBar("TargetFrameSpellBar");
--fcb = SetupCastingBar("FocusFrameSpellBar");
--mcb = SetupCastingBar("MirrorTimer1", true);

from line 127-129
and line 89 too

if ( pcb:IsShown() ) then pcb:Hide(); else pcb:Show(); end;
Last edited by whizque : 02-01-09 at 07:29 PM.
Report comment to moderator  
Reply With Quote
Unread 02-02-09, 01:27 AM  
thek
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 104
Uploads: 10
Originally posted by whizque
and line 89 too

if ( pcb:IsShown() ) then pcb:Hide(); else pcb:Show(); end;

Whoops, forgot that. Thx for the hint! I will add a option to enable and disable the dragframes ingame, so there will be no 'lua hacking'.
Report comment to moderator  
Reply With Quote
Unread 04-14-09, 03:04 PM  
rassa
A Deviate Faerie Dragon
 
rassa's Avatar

Forum posts: 15
File comments: 146
Uploads: 0
to bad you cant keep this updated, thanks for a nice castbar!

if any1 keep updating this by their own please post it here so we can keep track of it... thanks
Report comment to moderator  
Reply With Quote
Unread 04-16-09, 07:55 AM  
thek
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 104
Uploads: 10
Originally posted by rassa
to bad you cant keep this updated, thanks for a nice castbar!

if any1 keep updating this by their own please post it here so we can keep track of it... thanks
There will be a last update for 3.1.
Report comment to moderator  
Reply With Quote
Unread 04-16-09, 12:48 PM  
rassa
A Deviate Faerie Dragon
 
rassa's Avatar

Forum posts: 15
File comments: 146
Uploads: 0
Originally posted by thek
There will be a last update for 3.1.
<3
Report comment to moderator  
Reply With Quote
Unread 04-29-09, 11:23 AM  
rassa
A Deviate Faerie Dragon
 
rassa's Avatar

Forum posts: 15
File comments: 146
Uploads: 0
when
Report comment to moderator  
Reply With Quote
Unread 06-07-09, 12:12 PM  
personcube
A Murloc Raider

Forum posts: 7
File comments: 23
Uploads: 0
The target bar appears completely broken. No idea why. I tested it with only this addon installed. =\

It's like the bar itself appears way below the border...it's really peculiar.

Personally, I don't need the target bar on...I am going to check out the lua and see if I can simply disable it. That brings a thought to mind, just a simple toggle function, such as /icb target off or something. That'd really help.

At any rate, Thek, your addons are amazing and you do a great job keeping up with them. Keep up the good work!
Report comment to moderator  
Reply With Quote
Unread 06-11-09, 03:07 AM  
Maelfilk
A Kobold Labourer

Forum posts: 1
File comments: 28
Uploads: 0
Hi, i was wondering if there is a way to change the border of castbar icon?
Edit: i tried to change edgeFile = "Interface/Tooltips/UI-Tooltip-Border" in layout file and wrote path to tooltip border i need but it didn't work...
Last edited by Maelfilk : 06-11-09 at 06:14 AM.
Report comment to moderator  
Reply With Quote
Unread 11-29-09, 11:30 AM  
BJRubino
A Defias Bandit

Forum posts: 3
File comments: 64
Uploads: 0
Thanks for Update & Error Message

Hi,

Thanks for updating this addon, I really like this one.
I am getting an error on log-in. it is the following:
...\tPlayerCastbar\core.lua line 32: Usage: tPlayerCastbar: SetPoint('point"[. region or nil][. "Relative Point"][. offsetX, offsetY])

BJR
Report comment to moderator  
Reply With Quote
Unread 11-30-09, 01:22 AM  
thek
A Kobold Labourer
AddOn Author - Click to view AddOns

Forum posts: 0
File comments: 104
Uploads: 10
Re: Thanks for Update & Error Message

Originally posted by BJRubino
Hi,

Thanks for updating this addon, I really like this one.
I am getting an error on log-in. it is the following:
...\tPlayerCastbar\core.lua line 32: Usage: tPlayerCastbar: SetPoint('point"[. region or nil][. "Relative Point"][. offsetX, offsetY])

BJR
Hm... sounds strange for me. At this line i take the position of the default castbar and anchor the dragframe to it. Do you use an addon that hides or disables blizzards castbar? (quartz, ouf module (maybe - don't be an ouf expert), ...)
Report comment to moderator  
Reply With Quote
Post A Reply



Category Jump: