/
function SliceCommander:UpdateBar(spell) |
local BAR = SC.BARS[spell] |
local expire, icon, count, duration, unitCaster, x, _, maxValue, widthSeconde |
local expire, icon, count, duration, unitCaster, x, _, maxValue, widthSeconde, value1, value2, value3 |
if SC.SET.display[spell] ~= true then |
BAR['expire'] = 0 |
return |
end |
value1, value2, value3 = 0 , 0, 0 |
local last = BAR['expire'] |
if BAR['type'] == 1 then |
_, _, icon, count, _, duration, BAR['expire'], unitCaster = UnitAura("player", BAR['name'], nil, "PLAYER") |
_, _, icon, count, _, duration, BAR['expire'], unitCaster, _, _, _, _, _, _, _, _, value1, value2, value3 = UnitAura("player", BAR['name'], nil, "PLAYER") |
elseif BAR['type'] == 2 then |
_, _, icon, count, _, duration, BAR['expire'], unitCaster = UnitDebuff("target", BAR['name'], nil, "PLAYER") |
elseif BAR['type'] == 3 then |
if count and count > 1 then |
textcount = ' x'..count |
end |
if value1 == 162 and value2 == 0 and value3 == 19 then |
textcount = textcount..' - '..L['Empowered'] |
count = value1..value2..value3 |
end |
if not BAR['count'] or BAR['count'] ~= count then |
if SC.SET.SpellText == true then |
BAR['obj'].text2:SetText(string.format("%s", BAR['name']..textcount)) |
if value <= 0 then |
BAR['obj'].text:SetTextColor(0, 1, 0) |
else |
BAR['obj'].text:SetTextColor(1, 1, 1) |
BAR['obj'].text:SetTextColor(.835, .784, .722) |
end |
end |
end |
args = { |
displayDescription = SliceCommander:getDisplayDescriptionSetting(), |
CDB = SliceCommander:getSpellCDSettings('CDB'), |
LD = SliceCommander:getSpellSettings('LD'), |
SND = SliceCommander:getSpellSettings('SND'), |
GS = SliceCommander:getSpellSettings('GS'), |
RB = { |
end |
function SliceCommander:Outlaw() |
SliceCommander:DisplaySpells({'SND', 'RB', 'AR', 'ARCD', 'CDB', 'CDBCD', 'KSP', 'GS', 'GH', 'CB', 'BE', 'BF', 'OP', 'GSWW', 'BB'}) |
SliceCommander:DisplaySpells({'SND', 'RB', 'AR', 'ARCD', 'CDB', 'CDBCD', 'KSP', 'GS', 'GH', 'CB', 'BE', 'BF', 'OP', 'GSWW', 'BB', 'LD'}) |
SliceCommander:NotDisplaySpells({'PA'}) |
_G['SC'].orderBar = 0 |
_G['SC'].orderCDBar = -1 |
SliceCommander:OrderSpells({'SND', 'RB', 'AR', 'GS', 'OP', 'CDB', 'GSWW'}) |
SliceCommander:OrderCDs({'BE', 'ARCD', 'KSP', 'CB', 'GH', 'PA', 'CDBCD'}) |
SliceCommander:OrderCDs({'BE', 'ARCD', 'KSP', 'CB', 'GH', 'PA', 'CDBCD', 'LD'}) |
end |
function SliceCommander:Subtlety() |
if SC.BARS['KSP'] == nil then--Killing Spree |
SC.BARS['KSP'] = {['color'] = {.27, .68, .23}} |
end |
if SC.BARS['LD'] == nil then--Loaded Dice |
SC.BARS['LD'] = {['color'] = {.63, .52, .38}} |
end |
end |
function SliceCommander:InitSubtletyBarArray()--http://paletton.com/#uid=64r0u0kleqtbzEKgVuIpcmGtdhZ |
SC.BARS[k]['name'] = SC_SPELL[k] |
end |
local buff = {'FOTD', 'AR', 'SUB', 'EP', 'CV', 'AC', 'FE', 'SND', 'SD', 'SOD', 'SB', 'OP', 'ENV', 'GB', 'GSWW', 'MAI'} |
local buff = {'FOTD', 'AR', 'SUB', 'EP', 'CV', 'AC', 'FE', 'SND', 'SD', 'SOD', 'SB', 'OP', 'ENV', 'GB', 'GSWW', 'MAI', 'LD'} |
for i, v in ipairs(buff) do |
SC.BARS[v]['type'] = 1 |
end |
## Interface: 70200 |
## Author: Tomate |
## Version: 7.18 |
## Version: 7.19 |
## Title: |cffc14f2cSlice|r|cff40a740Commander|r |
## Notes: Energy bar, Combo point bar and rogue timer bar. |
## SavedVariables: SC |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = true |
L["Warning settings"] = true |
L["Enable kick warning"] = true |
L["Font"] = true |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = "A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur." |
L["Warning settings"] = "Warning settings" |
L["Enable kick warning"] = "Enable kick warning" |
L["Font"] = "Font" |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = true |
L["Warning settings"] = true |
L["Enable kick warning"] = true |
L["Font"] = true |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = "Une fine barre blancher sera affichée sur chaque barre de DoT et de HoT pour mettre en avant le moment exact ou l'effet se produit." |
L["Warning settings"] = "Option de l'alerte" |
L["Enable kick warning"] = "Activer l'alerte d'anti-cast" |
L["Font"] = "Police" |
SC_SPELL['PS'] = GetSpellInfo(185763)--Cannonball Barrage |
SC_SPELL['BB'] = GetSpellInfo(202895)--Blunderbuss |
SC_SPELL['RT'] = GetSpellInfo(208225)--Run Through |
SC_SPELL['LD'] = GetSpellInfo(240837)--Loaded Dice |
--ASSASSINAT |
SC_SPELL['HEM'] = GetSpellInfo(16511) --Hemorrhage |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = "A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur." |
L["Warning settings"] = "Warning settings" |
L["Enable kick warning"] = "Enable kick warning" |
L["Font"] = "Font" |
L["A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur."] = "A small white bar will be displaid on each HoT / DoT timer to show you when the effect really occur." |
L["Warning settings"] = "Warning settings" |
L["Enable kick warning"] = "Enable kick warning" |
L["Font"] = "Font" |