Quantcast
STUF -Castbar color and range opacity - WoWInterface
Thread Tools Display Modes
04-26-12, 04:42 AM   #1
deemaxm
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Jan 2011
Posts: 19
STUF -Castbar color and range opacity

As title says im want to make STUF (unitframes) to:
1.give a different color for my targets and focus castbar
Code:
castcolor = { name=L["Casting Color"], type="color", hasAlpha=true, set=set, get=get, order=30, },
This is what i found in options.lua , what do i have to add here so i can set target cast or/and focus cast color?

2. add an out of range opacity for target if enemy

Code:
name=function() return db and db.global and db.global.morealpha and L["No Target/No Combat"] or L["Frame Opacity"] end, 
					type="range", min=0, max=1, step=0.05, set=set, get=getorone, order=1.2, },
				targetalpha = { name=L["Target/No Combat"], type="range", min=0, max=1, step=0.05, set=set, get=getorone, hidden=hidealpha, order=1.3, },
				combatalpha = { name=L["No Target/Combat"], type="range", min=0, max=1, step=0.05, set=set, get=getorone, hidden=hidealpha, order=1.4, },
				combattargetalpha = { name=L["Target/Combat"], type="range", min=0, max=1, step=0.05, set=set, get=getorone, hidden=hidealpha, order=1.5, },
				ooralpha = {
					name=L["Out-of-Range Opacity"], desc=L["May cause lag if value is different from Frame Opacity. Does not work in combo with Target/Combat opacity.  Only applies to friendly and/or group units."], type="range", min=0, max=1, step=0.05, order=1.6,
					set=set, get=getorone, hidden=function(info) return not hidealpha(info) end, },
Atm out of range opacity works just for friendly targets, is it posible to make it work for enemy target by modifying that script?

Any expert can hlp? Tyy!!
  Reply With Quote

WoWInterface » AddOns, Compilations, Macros » AddOn Help/Support » STUF -Castbar color and range opacity

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