WoWInterface SVN FuryCommander

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 4
    Reverse comparison

Rev 3 → Rev 4

trunk/Config.lua
1,8 → 1,8
local AceConfigDialog = LibStub("AceConfigDialog-3.0")
local AceConfig = LibStub("AceConfig-3.0")
 
SC_OptionsTable_Sound = {
name = SC_LANG_SOUND,
FC_OptionsTable_Sound = {
name = FC_LANG_SOUND,
handler = FuryCommander,
type = "group",
args = {--Sound settings
244,8 → 244,8
}
}
 
SC_OptionsTable_DisplayTimer = {
name = SC_DISPLAY_SETTINGS,
FC_OptionsTable_DisplayTimer = {
name = FC_DISPLAY_SETTINGS,
handler = FuryCommander,
type = "group",
args = {--Display setting
285,7 → 285,6
step = 1,
bigStep = 1,
set = function(info,val)
FuryCommander:SetPoisonTransparency(val)
FuryCommander_Save.EnergyTrans = val
end,
get = function(info) return FuryCommander_Save.EnergyTrans end,
681,38 → 680,6
end,
get = function(info) return FuryCommander_Save.Pos.SnD end
},
headerCPSetting = {--Combo Point Settings
order = 130,
name = "Combo Point bar Settings",
type = "header"
},
CPBarShow = {--Show Combo Point
order = 131,
name = "Show Combo Point bar",
desc = "Display the Combo Point timer bar",
type = "toggle",
set = function(info,val)
FuryCommander_Save.display.CP = val
end,
get = function(info) return FuryCommander_Save.display.CP end
},
PosCP = {--Combo Point position
order = 132,
name = "Combo Point bar position",
desc = "The place where to display the Combo Point bar",
type = "select",
values = function()
returnArray = {}
for key = -15, 15, 1 do
returnArray[key] = key
end
return returnArray
end,
set = function(info,val)
FuryCommander_Save.Pos.CP = val
end,
get = function(info) return FuryCommander_Save.Pos.CP end
},
headerThreatSetting = {--Threat Settings
order = 133,
name = "Threat bar Settings",
876,7 → 843,7
}
}
 
SC_OptionsTable = {
FC_OptionsTable = {
name = "FuryCommander",
handler = FuryCommander,
type = "group",
1096,70 → 1063,70
FuryCommander:TestValueOptions()
FuryCommander:InitBarArray()
 
AceConfig:RegisterOptionsTable("FuryCommander", SC_OptionsTable)
AceConfig:RegisterOptionsTable("FuryCommander_DisplayTimer", SC_OptionsTable_DisplayTimer)
AceConfig:RegisterOptionsTable("FuryCommander_Sound", SC_OptionsTable_Sound)
AceConfig:RegisterOptionsTable("FuryCommander", FC_OptionsTable)
AceConfig:RegisterOptionsTable("FuryCommander_DisplayTimer", FC_OptionsTable_DisplayTimer)
AceConfig:RegisterOptionsTable("FuryCommander_Sound", FC_OptionsTable_Sound)
 
SetDefaultOpttion = AceConfigDialog:AddToBlizOptions("FuryCommander","FuryCommander")
SetDefaultOpttion.default = function() FuryCommander:ResetOptions() end
 
SetDefaultOpttion = AceConfigDialog:AddToBlizOptions("FuryCommander_DisplayTimer",SC_DISPLAY_SETTINGS,"FuryCommander")
SetDefaultOpttion = AceConfigDialog:AddToBlizOptions("FuryCommander_DisplayTimer",FC_DISPLAY_SETTINGS,"FuryCommander")
SetDefaultOpttion.default = function() FuryCommander:ResetOptions() end
 
SetDefaultOpttion = AceConfigDialog:AddToBlizOptions("FuryCommander_Sound",SC_LANG_SOUND,"FuryCommander")
SetDefaultOpttion = AceConfigDialog:AddToBlizOptions("FuryCommander_Sound",FC_LANG_SOUND,"FuryCommander")
SetDefaultOpttion.default = function() FuryCommander:ResetOptions() end
 
FuryCommander:RegisterEvent("UNIT_COMBO_POINTS")
FuryCommander:RegisterEvent("PLAYER_TARGET_CHANGED")
FuryCommander:RegisterEvent("UNIT_HEALTH")
FuryCommander:RegisterEvent("PLAYER_LOGIN")
FuryCommander:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
 
SC.BarFont1 = FuryCommander:NewFont("VTimerFont", 17, 0.7, 1, 1, 1)
SC.BarFont2 = FuryCommander:NewFont("VTimerFont2", 8, 0.7, 213/255, 200/255, 184/255)
SC.BarFont3 = FuryCommander:NewFont("VTimerFont1O", 17, 0.2, 0, 0, 0)
SC.BarFont4 = FuryCommander:NewFont("VTimerFont4", 8, 1, 213/255, 200/255, 184/255)
FC.BarFont1 = FuryCommander:NewFont("VTimerFont", 17, 0.7, 1, 1, 1)
FC.BarFont2 = FuryCommander:NewFont("VTimerFont2", 8, 0.7, 213/255, 200/255, 184/255)
FC.BarFont3 = FuryCommander:NewFont("VTimerFont1O", 17, 0.2, 0, 0, 0)
FC.BarFont4 = FuryCommander:NewFont("VTimerFont4", 8, 1, 213/255, 200/255, 184/255)
FC.BarFontIcon = FuryCommander:NewFont("IconFont", 20, 0.5, 243/255, 0/255, 6/255)
 
FuryCommander:CreateCore()
 
SC.LastEnergy = UnitMana('player')
FC.LastEnergy = UnitMana('player')
 
SC.BARS['KS']['obj'] = FuryCommander:NewFrame(227/255, 186/255, 132/255)--create Kidney Shot bar
SC.BARS['CS']['obj'] = FuryCommander:NewFrame(227/255, 186/255, 132/255)--create Cheap Shot bar
SC.BARS['SnD']['obj'] = FuryCommander:NewFrame(193/255, 79/255, 44/255)--create Slice and Dice bar
SC.BARS['RUP']['obj'] = FuryCommander:NewFrame(180/255, 38/255, 38/255)--create Rupture bar
SC.BARS['EA']['obj'] = FuryCommander:NewFrame(151/255, 101/255, 199/255)--create Expose Armor bar
SC.BARS['GAR']['obj'] = FuryCommander:NewFrame(180/255, 38/255, 38/255)--create Garrote bar
SC.BARS['REC']['obj'] = FuryCommander:NewFrame(110/255, 172/255, 163/255)--create Recuperate bar
SC.BARS['VEN']['obj'] = FuryCommander:NewFrame(110/255, 34/255, 45/255)--create Vendetta bar
SC.BARS['VENCD']['obj'] = FuryCommander:NewFrame(139/255, 78/255, 87/255)--create CD Vendetta bar
SC.BARS['AR']['obj'] = FuryCommander:NewFrame(226/255, 130/255, 90/255)--create Adrenaline Rush bar
SC.BARS['ARCD']['obj'] = FuryCommander:NewFrame(255/255, 173/255, 132/255)--create CD Adrenaline Rush bar
SC.BARS['DP']['obj'] = FuryCommander:NewFrame(64/255, 167/255, 64/255)--create Deadly Poison bar
SC.BARS['ENV']['obj'] = FuryCommander:NewFrame(64/255, 167/255, 64/255)--create Envenome bar
SC.BARS['ToT']['obj'] = FuryCommander:NewFrame(77/255, 77/255, 255/255)--create Tricks of Trade bar
SC.BARS['FE']['obj'] = FuryCommander:NewFrame(37/255, 108/255, 174/255)--create Feint bar
SC.BARS['FECD']['obj'] = FuryCommander:NewFrame(37/255, 108/255, 174/255)--create Feint CD bar
SC.BARS['THREAT']['obj'] = FuryCommander:NewFrame(0, 0, 0)
FC.BARS['KS']['obj'] = FuryCommander:NewFrame(227/255, 186/255, 132/255)--create Kidney Shot bar
FC.BARS['CS']['obj'] = FuryCommander:NewFrame(227/255, 186/255, 132/255)--create Cheap Shot bar
FC.BARS['SnD']['obj'] = FuryCommander:NewFrame(193/255, 79/255, 44/255)--create Slice and Dice bar
FC.BARS['RUP']['obj'] = FuryCommander:NewFrame(180/255, 38/255, 38/255)--create Rupture bar
FC.BARS['EA']['obj'] = FuryCommander:NewFrame(151/255, 101/255, 199/255)--create Expose Armor bar
FC.BARS['GAR']['obj'] = FuryCommander:NewFrame(180/255, 38/255, 38/255)--create Garrote bar
FC.BARS['REC']['obj'] = FuryCommander:NewFrame(110/255, 172/255, 163/255)--create Recuperate bar
FC.BARS['VEN']['obj'] = FuryCommander:NewFrame(110/255, 34/255, 45/255)--create Vendetta bar
FC.BARS['VENCD']['obj'] = FuryCommander:NewFrame(139/255, 78/255, 87/255)--create CD Vendetta bar
FC.BARS['AR']['obj'] = FuryCommander:NewFrame(226/255, 130/255, 90/255)--create Adrenaline Rush bar
FC.BARS['ARCD']['obj'] = FuryCommander:NewFrame(255/255, 173/255, 132/255)--create CD Adrenaline Rush bar
FC.BARS['DP']['obj'] = FuryCommander:NewFrame(64/255, 167/255, 64/255)--create Deadly Poison bar
FC.BARS['ENV']['obj'] = FuryCommander:NewFrame(64/255, 167/255, 64/255)--create Envenome bar
FC.BARS['ToT']['obj'] = FuryCommander:NewFrame(77/255, 77/255, 255/255)--create Tricks of Trade bar
FC.BARS['FE']['obj'] = FuryCommander:NewFrame(37/255, 108/255, 174/255)--create Feint bar
FC.BARS['FECD']['obj'] = FuryCommander:NewFrame(37/255, 108/255, 174/255)--create Feint CD bar
FC.BARS['THREAT']['obj'] = FuryCommander:NewFrame(0, 0, 0)
 
 
 
FuryCommander:NewTickArray(SC.BARS['RUP'])--Create Ticks marker for Rupture Bar
FuryCommander:NewTickArray(SC.BARS['GAR'])--Create Ticks marker for Garrote Bar
FuryCommander:NewTickArray(SC.BARS['REC']) --Create Ticks marker for Recuperate Bar
FuryCommander:NewTickArray(FC.BARS['RUP'])--Create Ticks marker for Rupture Bar
FuryCommander:NewTickArray(FC.BARS['GAR'])--Create Ticks marker for Garrote Bar
FuryCommander:NewTickArray(FC.BARS['REC']) --Create Ticks marker for Recuperate Bar
 
SC.OTHER['BF']['obj'] = FuryCommander:NewIcon("Interface\\Icons\\Ability_Warrior_PunishingBlow")--Create Blade fury icon display when BF is enable
SC.OTHER['HEALTH']['obj'] = FuryCommander:NewIcon("Interface\\Icons\\Ability_BackStab")--Create Backstab icon display when Target is under 35% HP
FC.ICON['BLT']['obj'], FC.ICON['BLT']['frame'] = FuryCommander:NewIcon("Interface\\Icons\\spell_nature_bloodlust", FC.ICON['BLT']['name'], FuryCommander_Save.bloodthirst.point, FuryCommander_Save.bloodthirst.relativeTo, FuryCommander_Save.bloodthirst.relativePoint, FuryCommander_Save.bloodthirst.xOfs, FuryCommander_Save.bloodthirst.yOfs)--Create Bloodthirst icon
-- FC.ICON['HEALTH']['obj'] = FuryCommander:NewIcon("Interface\\Icons\\Ability_BackStab")--Create Backstab icon display when Target is under 35% HP
 
SC.BARS['VENCD']['obj'].icon:SetTexture("Interface\\Icons\\Ability_Rogue_Deadliness")
SC.BARS['ARCD']['obj'].icon:SetTexture("Interface\\Icons\\Spell_Shadow_ShadowWordDominate")
SC.BARS['ToT']['obj'].icon:SetTexture("Interface\\Icons\\Ability_Rogue_TricksOftheTrade")
SC.BARS['FECD']['obj'].icon:SetTexture("Interface\\Icons\\ability_rogue_feint")
FC.BARS['VENCD']['obj'].icon:SetTexture("Interface\\Icons\\Ability_Rogue_Deadliness")
FC.BARS['ARCD']['obj'].icon:SetTexture("Interface\\Icons\\Spell_Shadow_ShadowWordDominate")
FC.BARS['ToT']['obj'].icon:SetTexture("Interface\\Icons\\Ability_Rogue_TricksOftheTrade")
FC.BARS['FECD']['obj'].icon:SetTexture("Interface\\Icons\\ability_rogue_feint")
 
SC.BARS['THREAT']['obj'].iconBackground:SetAlpha(0)--Hide icone for Threat bar
SC.BARS['THREAT']['obj']:SetMinMaxValues(0, 110)--Threat value should be between 0 and 110
FC.BARS['THREAT']['obj'].iconBackground:SetAlpha(0)--Hide icone for Threat bar
FC.BARS['THREAT']['obj']:SetMinMaxValues(0, 110)--Threat value should be between 0 and 110
 
DEFAULT_CHAT_FRAME:AddMessage('|cffc14f2cFury|r|cff40a740Commander|r v'..SC.VERSION)
DEFAULT_CHAT_FRAME:AddMessage('|cffc14f2cFury|r|cff40a740Commander|r v'..FC.VERSION)
else
FuryCommander:OnDisable()
return 0
1167,8 → 1134,8
end
 
function FuryCommander:TestValueOptions()
if FuryCommander_Save == nil or FuryCommander_Save.display == nil or FuryCommander_Save.Pos == nil then
FuryCommander_Save = { display = {}, Pos = {} }
if FuryCommander_Save == nil or FuryCommander_Save.display == nil or FuryCommander_Save.Pos == nil or FuryCommander_Save.bloodthirst == nil then
FuryCommander_Save = { display = {}, Pos = {}, bloodthirst = {} }
end
if FuryCommander_Save.ARSound == nil then
FuryCommander_Save.ARSound = 'Mario'
1296,9 → 1263,6
if FuryCommander_Save.BarTexture == nil then
FuryCommander_Save.BarTexture = 'Blizzard'
end
if FuryCommander_Save.display.CP == nil then
FuryCommander_Save.display.CP = true
end
if FuryCommander_Save.display.Poison == nil then
FuryCommander_Save.display.Poison = true
end
1353,9 → 1317,6
if FuryCommander_Save.display.FE == nil then
FuryCommander_Save.display.FE = true
end
if FuryCommander_Save.Pos.CP == nil then
FuryCommander_Save.Pos.CP = -1
end
if FuryCommander_Save.Pos.THREAT == nil then
FuryCommander_Save.Pos.THREAT = -2
end
1422,9 → 1383,9
if FuryCommander_Save.point == nil then
FuryCommander_Save.point = "TOP"
end
if FuryCommander_Save.relativeTo == nil then
--if FuryCommander_Save.relativeTo == nil then
FuryCommander_Save.relativeTo = "UIParent"
end
--end
if FuryCommander_Save.relativePoint == nil then
FuryCommander_Save.relativePoint = "TOP"
end
1434,12 → 1395,27
if FuryCommander_Save.yOfs == nil then
FuryCommander_Save.yOfs = -300
end
if FuryCommander_Save.bloodthirst.point == nil then
FuryCommander_Save.bloodthirst.point = "TOP"
end
--if FuryCommander_Save.bloodthirst.relativeTo == nil then
FuryCommander_Save.bloodthirst.relativeTo = "UIParent"
--end
if FuryCommander_Save.bloodthirst.relativePoint == nil then
FuryCommander_Save.bloodthirst.relativePoint = "TOP"
end
if FuryCommander_Save.bloodthirst.xOfs == nil then
FuryCommander_Save.bloodthirst.xOfs = 0
end
if FuryCommander_Save.bloodthirst.yOfs == nil then
FuryCommander_Save.bloodthirst.yOfs = -400
end
end
 
function FuryCommander:ResetOptions()
FuryCommander_Save = nil
FuryCommander:TestValueOptions()
if SC.BARS['SnD']['obj'] ~= 0 then
if FC.BARS['SnD']['obj'] ~= 0 then
FuryCommander:ApplyConf()
LibStub("AceConfigRegistry-3.0"):NotifyChange("FuryCommander")
end
1455,7 → 1431,6
FuryCommander:SetScale(FuryCommander_Save.Scale)
FuryCommander:Config_RetextureBars(FuryCommander:BarTexture())
FuryCommander:FrameOpacity(FuryCommander_Save.FrameOpacity)
FuryCommander:SetPoisonTransparency(FuryCommander_Save.EnergyTrans)
end
 
function FuryCommander:ConfigSoundMenuInit(WhichMenu)
1474,12 → 1449,14
 
function FuryCommander:LockCkecked(checked)
if checked then
FuryCommander:SetPoisonTransparency(FuryCommander_Save.FrameOpacity)
FC.ICON['BLT']['frame']:SetAlpha(0)
FC.ICON['BLT']['frame']:EnableMouse(false)
FuryCommanderFrame:SetAlpha(0)
FuryCommanderFrame:EnableMouse(false)
FuryCommander_Save.IsLocked = true
else
FuryCommander:SetPoisonTransparency(100)
FC.ICON['BLT']['frame']:SetAlpha(.5)
FC.ICON['BLT']['frame']:EnableMouse(true)
FuryCommanderFrame:SetAlpha(.5)
FuryCommanderFrame:EnableMouse(true)
FuryCommander_Save.IsLocked = false
1488,49 → 1465,34
 
function FuryCommander:Config_RetextureBars(texture)
VTimerRage:SetStatusBarTexture(texture)
for i,v in pairs(SC.BARS) do
if v['expire'] ~= nil and i ~= 'CP' then
for i,v in pairs(FC.BARS) do
if v['expire'] ~= nil then
v['obj']:SetStatusBarTexture(texture)
end
end
 
for i = 1, 5 do
SC.BARS['CP']['obj'].combos[i].bg:SetTexture(texture)
end
end
 
function FuryCommander:SetScale(NewScale)
FuryCommanderFrame:SetScale(NewScale/100)
for i,v in pairs(SC.BARS) do
for i,v in pairs(FC.BARS) do
if v['expire'] ~= nil then
v['obj']:SetScale(NewScale/100)
end
end
 
SC.BARS['MH']['obj']:SetScale(NewScale/100)
SC.BARS['OH']['obj']:SetScale(NewScale/100)
end
 
function FuryCommander:SetWidth(w)
h = SC.BARS['RUP']['obj'].iconBackground:GetHeight()
for i,v in pairs(SC.BARS) do
if v['expire'] ~= nil and i ~= 'THREAT' and i ~= 'CP' then
h = FC.BARS['RUP']['obj'].iconBackground:GetHeight()
for i,v in pairs(FC.BARS) do
if v['expire'] ~= nil and i ~= 'THREAT' then
v['obj']:SetWidth(w-h)
end
end
VTimerRage:SetWidth(w)
SC.BARS['MH']['obj']:SetWidth(w)
SC.BARS['OH']['obj']:SetWidth(w)
SC.BARS['CP']['obj']:SetWidth(w)
SC.BARS['THREAT']['obj']:SetWidth(w)
FC.BARS['THREAT']['obj']:SetWidth(w)
 
cx = 0
for i = 1, 5 do
SC.BARS['CP']['obj'].combos[i]:ClearAllPoints()
SC.BARS['CP']['obj'].combos[i]:SetPoint("TOPLEFT", SC.BARS['CP']['obj'], "TOPLEFT", cx, 0)
SC.BARS['CP']['obj'].combos[i]:SetPoint("BOTTOMRIGHT", SC.BARS['CP']['obj'], "BOTTOMLEFT", cx + ((w-(2*4))/5) , 0)
cx = cx + ((w-(2*4))/5) + 2 --width = ((w-(2*4))/5)
end
FuryCommander:Config_OtherVars()
end
 
1558,40 → 1520,33
end
 
function FuryCommander:SetTimersHeight(h)
for i,v in pairs(SC.BARS) do
if v['expire'] ~= nil and i ~= 'CP' and i ~= 'MH' and i ~= 'OH' then
for i,v in pairs(FC.BARS) do
if v['expire'] ~= nil then
FuryCommander:SetTimerHeight(v['obj'], h)
end
end
 
for i = 1, 3 do
SC.BARS['REC']['tick']['obj'][i]:SetHeight(h)
FC.BARS['REC']['tick']['obj'][i]:SetHeight(h)
end
for i = 1, 3 do
SC.BARS['GAR']['tick']['obj'][i]:SetHeight(h)
FC.BARS['GAR']['tick']['obj'][i]:SetHeight(h)
end
for i = 1, 3 do
SC.BARS['RUP']['tick']['obj'][i]:SetHeight(h)
FC.BARS['RUP']['tick']['obj'][i]:SetHeight(h)
end
SC.BARS['CP']['obj']:SetHeight(h)
SC.BARS['CP']['obj'].comboText:SetHeight(h)
for i = 1, 5 do
SC.BARS['CP']['obj'].combos[i]:SetHeight(h-2)
end
SC.BarFont2:SetFont("Interface\\AddOns\\FuryCommander\\Fonts\\FRIZQT__.TTF", h-2)
SC.BarFont4:SetFont("Interface\\AddOns\\FuryCommander\\Fonts\\FRIZQT__.TTF", h-2)
FC.BarFont2:SetFont("Interface\\AddOns\\FuryCommander\\Fonts\\FRIZQT__.TTF", h-2)
FC.BarFont4:SetFont("Interface\\AddOns\\FuryCommander\\Fonts\\FRIZQT__.TTF", h-2)
FuryCommander:SetWidth(FuryCommander_Save.Width)
end
 
function FuryCommander:FrameOpacity(opValue)
FuryCommander:SetPoisonTransparency(opValue)
 
for i,v in pairs(SC.BARS) do
for i,v in pairs(FC.BARS) do
if v['expire'] ~= nil then
v['obj']:SetAlpha(opValue/100)
end
end
 
SC.OTHER['BF']['obj']:SetAlpha(opValue/100)
SC.OTHER['HEALTH']['obj']:SetAlpha(opValue/100)
--FC.ICON['BF']['obj']:SetAlpha(opValue/100)
--FC.ICON['HEALTH']['obj']:SetAlpha(opValue/100)
end
\ No newline at end of file
trunk/Localization.lua
9,6 → 9,8
Ä : \195\132 Ö : \195\150 ÃÂœ : \195\156 ß : \195\159
 
]]
FC_SPELL_BLT = GetSpellInfo(23881)
--/script start, duration, enabled = GetSpellCooldown(GetSpellInfo(23881)); print(start..' = '.. duration ..' = ' .. enabled)
 
SC_SPELL_SND = GetSpellInfo(5171);
SC_SPELL_TOT = GetSpellInfo(57934);
trunk/FuryCommander.lua
1,23 → 1,21
FuryCommander = LibStub("AceAddon-3.0"):NewAddon("FuryCommander", "AceEvent-3.0")
local self = FuryCommander
 
SC = { }
SC.VERSION = GetAddOnMetadata("FuryCommander", "Version")
FC = { }
FC.VERSION = GetAddOnMetadata("FuryCommander", "Version")
 
function FuryCommander:InitBarArray()
SC.OTHER = {
['BG'] = {
FC.ICON = {
['BLT'] = {
['obj'] = 0,
['expire'] = 0
['frame'] = 0,
['name'] = FC_SPELL_BLT
},
['BF'] = {
['obj'] = 0
},
['HEALTH'] = {
['obj'] = 0
},
}
SC.BARS = {
FC.BARS = {
['THREAT'] = {
['obj'] = 0,
['expire'] = 0
25,73 → 23,68
['KS'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_KS,
['name'] = FC_SPELL_KS,
['type'] = 2
},
['CS'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_CS,
['name'] = FC_SPELL_CS,
['type'] = 2
},
['EA'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_EA,
['name'] = FC_SPELL_EA,
['type'] = 2
},
['CP'] = {
['obj'] = 0,
['expire'] = 0,
['target'] = ''
},
['VEN'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_VEN,
['name'] = FC_SPELL_VEN,
['type'] = 2
},
['VENCD'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_VEN,
['name'] = FC_SPELL_VEN,
['type'] = 2
},
['ToT'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_TOT,
['name'] = FC_SPELL_TOT,
['type'] = 1
},
['SnD'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_SND,
['name'] = FC_SPELL_SND,
['type'] = 1
},
['FE'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_FE,
['name'] = FC_SPELL_FE,
['type'] = 1
},
['FECD'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_FE,
['name'] = FC_SPELL_FE,
['type'] = 1
},
['DP'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_DP,
['name'] = FC_SPELL_DP,
['type'] = 2,
['count'] = 0
},
['ENV'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_ENV,
['name'] = FC_SPELL_ENV,
['type'] = 1
},
['REC'] = {
101,7 → 94,7
['obj'] = {},
['expire'] = {}
},
['name'] = SC_SPELL_REC,
['name'] = FC_SPELL_REC,
['type'] = 1
},
['RUP'] = {
112,7 → 105,7
['expire'] = {},
['value'] = 2
},
['name'] = SC_SPELL_RUP,
['name'] = FC_SPELL_RUP,
['type'] = 2
},
['GAR'] = {
123,43 → 116,36
['expire'] = {},
['value'] = 3
},
['name'] = SC_SPELL_GAR,
['name'] = FC_SPELL_GAR,
['type'] = 2
},
['MH'] = {
['obj'] = 0,
['expire'] = 0
},
['OH'] = {
['obj'] = 0,
['expire'] = 0
},
['AR'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_AR,
['name'] = FC_SPELL_AR,
['type'] = 1,
},
['ARCD'] = {
['obj'] = 0,
['expire'] = 0,
['name'] = SC_SPELL_AR,
['name'] = FC_SPELL_AR,
['type'] = 1,
}
}
end
 
function FuryCommander:MoveStart()
function FuryCommander:MoveStart(frame)
if FuryCommander_Save.IsLocked == false then
FuryCommanderFrame:StartMoving()
frame:StartMoving()
end
end
 
function FuryCommander:MoveStop()
function FuryCommander:MoveStop(frame)
if FuryCommander_Save.IsLocked == false then
FuryCommanderFrame:StopMovingOrSizing()
FuryCommanderFrame:SetUserPlaced(false)
frame:StopMovingOrSizing()
frame:SetUserPlaced(false)
FuryCommander_Save.point, FuryCommander_Save.relativeTo, FuryCommander_Save.relativePoint, FuryCommander_Save.xOfs, FuryCommander_Save.yOfs = FuryCommanderFrame:GetPoint()
FuryCommander_Save.bloodthirst.point, FuryCommander_Save.bloodthirst.relativeTo, FuryCommander_Save.bloodthirst.relativePoint, FuryCommander_Save.bloodthirst.xOfs, FuryCommander_Save.bloodthirst.yOfs = FC.ICON['BLT']['frame']:GetPoint()
end
end
 
198,188 → 184,178
AnchorToPos = "BOTTOMRIGHT"
for i = 1, 15 do
--under
if FuryCommander_Save.Pos.KS == i and SC.BARS['KS']['expire'] ~= 0 then
SC.BARS['KS']['obj']:ClearAllPoints()
SC.BARS['KS']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['KS']['obj']
if FuryCommander_Save.Pos.KS == i and FC.BARS['KS']['expire'] ~= 0 then
FC.BARS['KS']['obj']:ClearAllPoints()
FC.BARS['KS']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['KS']['obj']
end
if FuryCommander_Save.Pos.CS == i and SC.BARS['CS']['expire'] ~= 0 then
SC.BARS['CS']['obj']:ClearAllPoints()
SC.BARS['CS']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['CS']['obj']
if FuryCommander_Save.Pos.CS == i and FC.BARS['CS']['expire'] ~= 0 then
FC.BARS['CS']['obj']:ClearAllPoints()
FC.BARS['CS']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['CS']['obj']
end
if FuryCommander_Save.Pos.CP == i and SC.BARS['CP']['expire'] ~= 0 then
SC.BARS['CP']['obj']:ClearAllPoints()
SC.BARS['CP']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['CP']['obj']
if FuryCommander_Save.Pos.REC == i and FC.BARS['REC']['expire'] ~= 0 then
FC.BARS['REC']['obj']:ClearAllPoints()
FC.BARS['REC']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['REC']['obj']
end
if FuryCommander_Save.Pos.REC == i and SC.BARS['REC']['expire'] ~= 0 then
SC.BARS['REC']['obj']:ClearAllPoints()
SC.BARS['REC']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['REC']['obj']
if FuryCommander_Save.Pos.SnD == i and FC.BARS['SnD']['expire'] ~= 0 then
FC.BARS['SnD']['obj']:ClearAllPoints()
FC.BARS['SnD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['SnD']['obj']
end
if FuryCommander_Save.Pos.SnD == i and SC.BARS['SnD']['expire'] ~= 0 then
SC.BARS['SnD']['obj']:ClearAllPoints()
SC.BARS['SnD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['SnD']['obj']
if FuryCommander_Save.Pos.RUP == i and FC.BARS['RUP']['expire'] ~= 0 then
FC.BARS['RUP']['obj']:ClearAllPoints()
FC.BARS['RUP']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['RUP']['obj']
end
if FuryCommander_Save.Pos.RUP == i and SC.BARS['RUP']['expire'] ~= 0 then
SC.BARS['RUP']['obj']:ClearAllPoints()
SC.BARS['RUP']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['RUP']['obj']
if FuryCommander_Save.Pos.GAR == i and FC.BARS['GAR']['expire'] ~= 0 then
FC.BARS['GAR']['obj']:ClearAllPoints()
FC.BARS['GAR']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['GAR']['obj']
end
if FuryCommander_Save.Pos.GAR == i and SC.BARS['GAR']['expire'] ~= 0 then
SC.BARS['GAR']['obj']:ClearAllPoints()
SC.BARS['GAR']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['GAR']['obj']
if FuryCommander_Save.Pos.ToT == i and FC.BARS['ToT']['expire'] ~= 0 then
FC.BARS['ToT']['obj']:ClearAllPoints()
FC.BARS['ToT']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['ToT']['obj']
end
if FuryCommander_Save.Pos.ToT == i and SC.BARS['ToT']['expire'] ~= 0 then
SC.BARS['ToT']['obj']:ClearAllPoints()
SC.BARS['ToT']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['ToT']['obj']
if FuryCommander_Save.Pos.VEN == i and FC.BARS['VEN']['expire'] ~= 0 then
FC.BARS['VEN']['obj']:ClearAllPoints()
FC.BARS['VEN']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['VEN']['obj']
end
if FuryCommander_Save.Pos.VEN == i and SC.BARS['VEN']['expire'] ~= 0 then
SC.BARS['VEN']['obj']:ClearAllPoints()
SC.BARS['VEN']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['VEN']['obj']
if FuryCommander_Save.Pos.VENCD == i and FC.BARS['VENCD']['expire'] ~= 0 then
FC.BARS['VENCD']['obj']:ClearAllPoints()
FC.BARS['VENCD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['VENCD']['obj']
end
if FuryCommander_Save.Pos.VENCD == i and SC.BARS['VENCD']['expire'] ~= 0 then
SC.BARS['VENCD']['obj']:ClearAllPoints()
SC.BARS['VENCD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['VENCD']['obj']
if FuryCommander_Save.Pos.DP == i and FC.BARS['DP']['expire'] ~= 0 then
FC.BARS['DP']['obj']:ClearAllPoints()
FC.BARS['DP']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['DP']['obj']
end
if FuryCommander_Save.Pos.DP == i and SC.BARS['DP']['expire'] ~= 0 then
SC.BARS['DP']['obj']:ClearAllPoints()
SC.BARS['DP']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['DP']['obj']
if FuryCommander_Save.Pos.ENV == i and FC.BARS['ENV']['expire'] ~= 0 then
FC.BARS['ENV']['obj']:ClearAllPoints()
FC.BARS['ENV']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['ENV']['obj']
end
if FuryCommander_Save.Pos.ENV == i and SC.BARS['ENV']['expire'] ~= 0 then
SC.BARS['ENV']['obj']:ClearAllPoints()
SC.BARS['ENV']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['ENV']['obj']
if FuryCommander_Save.Pos.THREAT == i and FC.BARS['THREAT']['expire'] ~= 0 then
FC.BARS['THREAT']['obj']:ClearAllPoints()
FC.BARS['THREAT']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['THREAT']['obj']
end
if FuryCommander_Save.Pos.THREAT == i and SC.BARS['THREAT']['expire'] ~= 0 then
SC.BARS['THREAT']['obj']:ClearAllPoints()
SC.BARS['THREAT']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['THREAT']['obj']
if FuryCommander_Save.Pos.AR == i and FC.BARS['AR']['expire'] ~= 0 then
FC.BARS['AR']['obj']:ClearAllPoints()
FC.BARS['AR']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['AR']['obj']
end
if FuryCommander_Save.Pos.AR == i and SC.BARS['AR']['expire'] ~= 0 then
SC.BARS['AR']['obj']:ClearAllPoints()
SC.BARS['AR']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['AR']['obj']
if FuryCommander_Save.Pos.ARCD == i and FC.BARS['ARCD']['expire'] ~= 0 then
FC.BARS['ARCD']['obj']:ClearAllPoints()
FC.BARS['ARCD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['ARCD']['obj']
end
if FuryCommander_Save.Pos.ARCD == i and SC.BARS['ARCD']['expire'] ~= 0 then
SC.BARS['ARCD']['obj']:ClearAllPoints()
SC.BARS['ARCD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['ARCD']['obj']
if FuryCommander_Save.Pos.EA == i and FC.BARS['EA']['expire'] ~= 0 then
FC.BARS['EA']['obj']:ClearAllPoints()
FC.BARS['EA']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['EA']['obj']
end
if FuryCommander_Save.Pos.EA == i and SC.BARS['EA']['expire'] ~= 0 then
SC.BARS['EA']['obj']:ClearAllPoints()
SC.BARS['EA']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['EA']['obj']
if FuryCommander_Save.Pos.FE == i and FC.BARS['FE']['expire'] ~= 0 then
FC.BARS['FE']['obj']:ClearAllPoints()
FC.BARS['FE']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['FE']['obj']
end
if FuryCommander_Save.Pos.FE == i and SC.BARS['FE']['expire'] ~= 0 then
SC.BARS['FE']['obj']:ClearAllPoints()
SC.BARS['FE']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['FE']['obj']
if FuryCommander_Save.Pos.FECD == i and FC.BARS['FECD']['expire'] ~= 0 then
FC.BARS['FECD']['obj']:ClearAllPoints()
FC.BARS['FECD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = FC.BARS['FECD']['obj']
end
if FuryCommander_Save.Pos.FECD == i and SC.BARS['FECD']['expire'] ~= 0 then
SC.BARS['FECD']['obj']:ClearAllPoints()
SC.BARS['FECD']['obj']:SetPoint(AnchorFromPos, LastAnchorPos, AnchorToPos, 0, offSetSize*-1)
LastAnchorPos = SC.BARS['FECD']['obj']
end
 
--on top
if FuryCommander_Save.Pos.KS == i*-1 and SC.BARS['KS']['expire'] ~= 0 then
SC.BARS['KS']['obj']:ClearAllPoints()
SC.BARS['KS']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['KS']['obj']
if FuryCommander_Save.Pos.KS == i*-1 and FC.BARS['KS']['expire'] ~= 0 then
FC.BARS['KS']['obj']:ClearAllPoints()
FC.BARS['KS']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['KS']['obj']
end
if FuryCommander_Save.Pos.CS == i*-1 and SC.BARS['CS']['expire'] ~= 0 then
SC.BARS['CS']['obj']:ClearAllPoints()
SC.BARS['CS']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['CS']['obj']
if FuryCommander_Save.Pos.CS == i*-1 and FC.BARS['CS']['expire'] ~= 0 then
FC.BARS['CS']['obj']:ClearAllPoints()
FC.BARS['CS']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['CS']['obj']
end
if FuryCommander_Save.Pos.CP == i*-1 and SC.BARS['CP']['expire'] ~= 0 then
SC.BARS['CP']['obj']:ClearAllPoints()
SC.BARS['CP']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['CP']['obj']
if FuryCommander_Save.Pos.REC == i*-1 and FC.BARS['REC']['expire'] ~= 0 then
FC.BARS['REC']['obj']:ClearAllPoints()
FC.BARS['REC']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['REC']['obj']
end
if FuryCommander_Save.Pos.REC == i*-1 and SC.BARS['REC']['expire'] ~= 0 then
SC.BARS['REC']['obj']:ClearAllPoints()
SC.BARS['REC']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['REC']['obj']
if FuryCommander_Save.Pos.SnD == i*-1 and FC.BARS['SnD']['expire'] ~= 0 then
FC.BARS['SnD']['obj']:ClearAllPoints()
FC.BARS['SnD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['SnD']['obj']
end
if FuryCommander_Save.Pos.SnD == i*-1 and SC.BARS['SnD']['expire'] ~= 0 then
SC.BARS['SnD']['obj']:ClearAllPoints()
SC.BARS['SnD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['SnD']['obj']
if FuryCommander_Save.Pos.RUP == i*-1 and FC.BARS['RUP']['expire'] ~= 0 then
FC.BARS['RUP']['obj']:ClearAllPoints()
FC.BARS['RUP']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['RUP']['obj']
end
if FuryCommander_Save.Pos.RUP == i*-1 and SC.BARS['RUP']['expire'] ~= 0 then
SC.BARS['RUP']['obj']:ClearAllPoints()
SC.BARS['RUP']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['RUP']['obj']
if FuryCommander_Save.Pos.GAR == i*-1 and FC.BARS['GAR']['expire'] ~= 0 then
FC.BARS['GAR']['obj']:ClearAllPoints()
FC.BARS['GAR']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['GAR']['obj']
end
if FuryCommander_Save.Pos.GAR == i*-1 and SC.BARS['GAR']['expire'] ~= 0 then
SC.BARS['GAR']['obj']:ClearAllPoints()
SC.BARS['GAR']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['GAR']['obj']
if FuryCommander_Save.Pos.ToT == i*-1 and FC.BARS['ToT']['expire'] ~= 0 then
FC.BARS['ToT']['obj']:ClearAllPoints()
FC.BARS['ToT']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['ToT']['obj']
end
if FuryCommander_Save.Pos.ToT == i*-1 and SC.BARS['ToT']['expire'] ~= 0 then
SC.BARS['ToT']['obj']:ClearAllPoints()
SC.BARS['ToT']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['ToT']['obj']
if FuryCommander_Save.Pos.VEN == i*-1 and FC.BARS['VEN']['expire'] ~= 0 then
FC.BARS['VEN']['obj']:ClearAllPoints()
FC.BARS['VEN']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['VEN']['obj']
end
if FuryCommander_Save.Pos.VEN == i*-1 and SC.BARS['VEN']['expire'] ~= 0 then
SC.BARS['VEN']['obj']:ClearAllPoints()
SC.BARS['VEN']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['VEN']['obj']
if FuryCommander_Save.Pos.VENCD == i*-1 and FC.BARS['VENCD']['expire'] ~= 0 then
FC.BARS['VENCD']['obj']:ClearAllPoints()
FC.BARS['VENCD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['VENCD']['obj']
end
if FuryCommander_Save.Pos.VENCD == i*-1 and SC.BARS['VENCD']['expire'] ~= 0 then
SC.BARS['VENCD']['obj']:ClearAllPoints()
SC.BARS['VENCD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['VENCD']['obj']
if FuryCommander_Save.Pos.DP == i*-1 and FC.BARS['DP']['expire'] ~= 0 then
FC.BARS['DP']['obj']:ClearAllPoints()
FC.BARS['DP']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['DP']['obj']
end
if FuryCommander_Save.Pos.DP == i*-1 and SC.BARS['DP']['expire'] ~= 0 then
SC.BARS['DP']['obj']:ClearAllPoints()
SC.BARS['DP']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['DP']['obj']
if FuryCommander_Save.Pos.ENV == i*-1 and FC.BARS['ENV']['expire'] ~= 0 then
FC.BARS['ENV']['obj']:ClearAllPoints()
FC.BARS['ENV']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['ENV']['obj']
end
if FuryCommander_Save.Pos.ENV == i*-1 and SC.BARS['ENV']['expire'] ~= 0 then
SC.BARS['ENV']['obj']:ClearAllPoints()
SC.BARS['ENV']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['ENV']['obj']
if FuryCommander_Save.Pos.THREAT == i*-1 and FC.BARS['THREAT']['expire'] ~= 0 then
FC.BARS['THREAT']['obj']:ClearAllPoints()
FC.BARS['THREAT']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['THREAT']['obj']
end
if FuryCommander_Save.Pos.THREAT == i*-1 and SC.BARS['THREAT']['expire'] ~= 0 then
SC.BARS['THREAT']['obj']:ClearAllPoints()
SC.BARS['THREAT']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['THREAT']['obj']
if FuryCommander_Save.Pos.AR == i*-1 and FC.BARS['AR']['expire'] ~= 0 then
FC.BARS['AR']['obj']:ClearAllPoints()
FC.BARS['AR']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['AR']['obj']
end
if FuryCommander_Save.Pos.AR == i*-1 and SC.BARS['AR']['expire'] ~= 0 then
SC.BARS['AR']['obj']:ClearAllPoints()
SC.BARS['AR']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['AR']['obj']
if FuryCommander_Save.Pos.ARCD == i*-1 and FC.BARS['ARCD']['expire'] ~= 0 then
FC.BARS['ARCD']['obj']:ClearAllPoints()
FC.BARS['ARCD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['ARCD']['obj']
end
if FuryCommander_Save.Pos.ARCD == i*-1 and SC.BARS['ARCD']['expire'] ~= 0 then
SC.BARS['ARCD']['obj']:ClearAllPoints()
SC.BARS['ARCD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['ARCD']['obj']
if FuryCommander_Save.Pos.EA == i*-1 and FC.BARS['EA']['expire'] ~= 0 then
FC.BARS['EA']['obj']:ClearAllPoints()
FC.BARS['EA']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['EA']['obj']
end
if FuryCommander_Save.Pos.EA == i*-1 and SC.BARS['EA']['expire'] ~= 0 then
SC.BARS['EA']['obj']:ClearAllPoints()
SC.BARS['EA']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['EA']['obj']
if FuryCommander_Save.Pos.FE == i*-1 and FC.BARS['FE']['expire'] ~= 0 then
FC.BARS['FE']['obj']:ClearAllPoints()
FC.BARS['FE']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['FE']['obj']
end
if FuryCommander_Save.Pos.FE == i*-1 and SC.BARS['FE']['expire'] ~= 0 then
SC.BARS['FE']['obj']:ClearAllPoints()
SC.BARS['FE']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['FE']['obj']
if FuryCommander_Save.Pos.FECD == i*-1 and FC.BARS['FECD']['expire'] ~= 0 then
FC.BARS['FECD']['obj']:ClearAllPoints()
FC.BARS['FECD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = FC.BARS['FECD']['obj']
end
if FuryCommander_Save.Pos.FECD == i*-1 and SC.BARS['FECD']['expire'] ~= 0 then
SC.BARS['FECD']['obj']:ClearAllPoints()
SC.BARS['FECD']['obj']:SetPoint(AnchorFromNeg, LastAnchorNeg, AnchorToNeg, 0, offSetSize)
LastAnchorNeg = SC.BARS['FECD']['obj']
end
end
end
 
401,58 → 377,11
end
end
 
function FuryCommander:UNIT_COMBO_POINTS(eventName, unit)
if unit == "player" then
SC.BARS['CP']['target'] = UnitGUID("target")
FuryCommander:TestDPCP()
FuryCommander:SetComboPts()
FuryCommander:ChangeAnchor()
end
end
 
function FuryCommander:PLAYER_TARGET_CHANGED(eventName, arg1)
SC.OTHER['HEALTH']['obj']:Hide()
FuryCommander:TestDPCP()
FuryCommander:SetComboPts()
--FC.OTHER['HEALTH']['obj']:Hide()
FuryCommander:ChangeAnchor()
end
 
function FuryCommander:SetComboPts()
points = GetComboPoints("player")
if points == 0 then
if UnitGUID("target") ~= SC.BARS['CP']['target'] then
return
end
end
 
FuryCommander_Combo:SetText("")
SC.BARS['CP']['obj'].comboText:SetText("")
for i = 1, 5 do
SC.BARS['CP']['obj'].combos[i]:Hide()
end
SC.BARS['CP']['obj']:Hide()
SC.BARS['CP']['expire'] = 0
 
if points ~= 0 then
FuryCommander_Combo:SetText(points)
if FuryCommander_Save.display.CP == true then
SC.BARS['CP']['expire'] = points
SC.BARS['CP']['obj'].comboText:SetText(points)
for i = 1, points do
SC.BARS['CP']['obj'].combos[i]:Show()
end
SC.BARS['CP']['obj']:Show()
if points < 3 then
SC.BarFont4:SetShadowColor(0,0,0, 1)
SC.BarFont4:SetTextColor(213/255,200/255,184/255,1)
else
SC.BarFont4:SetShadowColor(0,0,0, 0)
SC.BarFont4:SetTextColor(0,0,0, 1)
end
end
end
end
 
function FuryCommander:OnDisable()
FuryCommander:UnregisterAllEvents()
end
474,7 → 403,7
 
-- text on the right --
f.text = f:CreateFontString(nil, nil, "GameFontWhite")
f.text:SetFontObject(SC.BarFont2)
f.text:SetFontObject(FC.BarFont2)
f.text:SetWidth(40)
f.text:SetPoint("TOPRIGHT", f, "TOPRIGHT", -5, 0)
f.text:SetJustifyH("RIGHT")
488,14 → 417,14
 
-- Count on the icon --
f.textIcon = f:CreateFontString(nil, "OVERLAY", nil)
f.textIcon:SetFontObject(SC.BarFont2)
f.textIcon:SetFontObject(FC.BarFont2)
f.textIcon:SetPoint("CENTER", f.icon , "CENTER", f.icon:GetHeight()+4, 0)
f.textIcon:SetJustifyH("CENTER")
 
-- text on the left --
f.text2 = f:CreateFontString(nil, nil, nil)
f.text2:SetPoint("TOPLEFT", f, "TOPLEFT", 2, 0)
f.text2:SetFontObject(SC.BarFont2)
f.text2:SetFontObject(FC.BarFont2)
f.text2:SetWidth(120)
f.text2:SetPoint("RIGHT", f, "RIGHT", 0, 0)
f.text2:SetJustifyH("CENTER")
521,8 → 450,8
insets={left=-1, right=-1, top=-1, bottom=-1}
})
FuryCommanderFrame:SetBackdropColor(0.7,0.2,0.2,1)
FuryCommanderFrame:SetScript("OnMouseDown",function () FuryCommander:MoveStart() end)
FuryCommanderFrame:SetScript("OnMouseUp",function () FuryCommander:MoveStop() end)
FuryCommanderFrame:SetScript("OnMouseDown",function () FuryCommander:MoveStart(FuryCommanderFrame) end)
FuryCommanderFrame:SetScript("OnMouseUp",function () FuryCommander:MoveStop(FuryCommanderFrame) end)
FuryCommanderFrame:SetScript("OnUpdate",function () FuryCommander:OnUpdate() end)
 
VTimerRage = CreateFrame('StatusBar', 'VTimerRage', UIParent)
552,13 → 481,13
VTimerRageTxt:SetJustifyH("RIGHT")
VTimerRageTxt:SetSize(49,20)
VTimerRageTxt:SetPoint('RIGHT', VTimerRage, 'RIGHT', -5, 0)
VTimerRageTxt:SetFontObject(SC.BarFont1)
VTimerRageTxt:SetFontObject(FC.BarFont1)
 
FuryCommander_Combo = VTimerRage:CreateFontString('FuryCommander_Combo', 'OVERLAY', GameFontWhite)
FuryCommander_Combo:SetJustifyH("LEFT")
FuryCommander_Combo:SetSize(20,20)
FuryCommander_Combo:SetPoint('TOPLEFT', VTimerRage, 'TOPLEFT', 5, 0)
FuryCommander_Combo:SetFontObject(SC.BarFont3)
FuryCommander_Combo:SetFontObject(FC.BarFont3)
 
FuryCommander_Spark = {}
for i = 1, 3 do
578,62 → 507,59
end
end
 
function FuryCommander:NewIcon(icon)
f = CreateFrame("Frame",nil,UIParent)
f:SetPoint("RIGHT", VTimerRage, "RIGHT", -50, 0)
function FuryCommander:NewIcon(icon, name, point, relativeTo, relativePoint, xOfs, yOfs)
MoveFrame = CreateFrame('Frame', name, UIParent)
MoveFrame:SetToplevel(true)
MoveFrame:EnableMouse(false)
MoveFrame:SetMovable(true)
MoveFrame:SetWidth(28)
MoveFrame:SetHeight(28)
MoveFrame:SetPoint(point, relativeTo, relativePoint, xOfs, yOfs)
MoveFrame:SetBackdrop({
bgFile="Interface\\AddOns\\FuryCommander\\Images\\solid.tga",
edgeFile="",
tile=true, tileSize=1, edgeSize=0,
insets={left=-1, right=-1, top=-1, bottom=-1}
})
MoveFrame:SetBackdropColor(0.7,0.2,0.2,1)
MoveFrame:SetScript("OnMouseDown",function () FuryCommander:MoveStart(MoveFrame) end)
MoveFrame:SetScript("OnMouseUp",function () FuryCommander:MoveStop(MoveFrame) end)
MoveFrame:SetScript("OnUpdate",function () FuryCommander:OnUpdate() end)
 
f = CreateFrame("Frame", nil, UIParent)
f:SetPoint('TOPLEFT', MoveFrame:GetName(), 'TOPRIGHT', 0, 0)
f:SetFrameStrata("HIGH")
f:SetWidth(20)
f:SetHeight(20)
f:SetWidth(30)
f:SetHeight(30)
f:Hide()
 
fIcon = f:CreateTexture(nil, "OVERLAY")
fIcon:SetHeight(20)
fIcon:SetWidth(20)
fIcon:SetHeight(30)
fIcon:SetWidth(30)
fIcon:SetPoint("RIGHT", f, "RIGHT", 0, 0)
fIcon:SetAlpha(1)
fIcon:SetTexCoord(.08, .92, .08, .92)
fIcon:SetTexture(icon)
 
return f
f.text = f:CreateFontString(nil, 'OVERLAY', "GameFontWhite")
f.text:SetFontObject(FC.BarFontIcon)
f.text:SetWidth(30)
f.text:SetPoint("CENTER", f, "CENTER", 0, 0)
f.text:SetJustifyH("CENTER")
 
return f, MoveFrame
end
 
function FuryCommander:NewFont(name, FontSize, aShadow, rColor, gColor, bColor)
f = CreateFont(name)
f:SetFont("Interface\\AddOns\\FuryCommander\\Fonts\\FRIZQT__.TTF", FontSize)
f:SetShadowColor(0, 0, 0, aShadow)
f:SetTextColor(rColor, gColor, bColor, 1)
f:SetShadowOffset(0.8, -0.8)
f:SetShadowColor(0, 0, 0, aShadow)
f:SetShadowOffset(2, -2)
 
return f
end
 
function FuryCommander:BGFrame()
f = CreateFrame("Frame",nil,UIParent)
f:SetPoint("LEFT", VTimerRage, "LEFT", 20, 0)
f:SetFrameStrata("HIGH")
f:SetWidth(34)
f:SetHeight(10)
f:Show()
 
returnArray = { }
x = 0
for i = 1,3 do
returnArray[i] = f:CreateTexture(nil, "OVERLAY")
returnArray[i]:SetHeight(16)
returnArray[i]:SetWidth(16)
returnArray[i]:SetPoint("LEFT", f, "LEFT", x, 0)
returnArray[i]:SetAlpha(1)
returnArray[i]:Hide()
x = x + 12
end
 
 
returnArray[1]:SetTexture('Interface\\AddOns\\FuryCommander\\Images\\Green.tga')
returnArray[2]:SetTexture('Interface\\AddOns\\FuryCommander\\Images\\Yellow.tga')
returnArray[3]:SetTexture('Interface\\AddOns\\FuryCommander\\Images\\Red.tga')
 
return returnArray
end
 
function FuryCommander:PLAYER_LOGIN()
FuryCommander:ApplyConf()
collectgarbage()
668,8 → 594,8
return
end
BAR['expire'] = (start+duration)
if BAR['expire'] > 0 and SC.tNow < BAR['expire'] then
x = BAR['expire'] - SC.tNow
if BAR['expire'] > 0 and FC.tNow < BAR['expire'] then
x = BAR['expire'] - FC.tNow
else
x = 0
end
720,11 → 646,11
if BAR['expire'] == nil then
BAR['expire'] = 0
end
if SC.tNow == nil then
SC.tNow = GetTime()
if FC.tNow == nil then
FC.tNow = GetTime()
end
if BAR['expire'] > 0 and SC.tNow < BAR['expire'] then
x = BAR['expire'] - SC.tNow
if BAR['expire'] > 0 and FC.tNow < BAR['expire'] then
x = BAR['expire'] - FC.tNow
else
x = 0
end
848,45 → 774,6
end
end
 
function FuryCommander:CPColor(name, count, isMine)
nameUID = UnitGUID("target")
if not nameUID then
nameUID = UnitGUID("player")
end
for i = 1, 5 do
if SC.BARS['CP']['target'] == nameUID then
if name and isMine == "player" and i <= count then
SC.BARS['CP']['obj'].combos[i].bg:SetVertexColor(64/255, 167/255, 64/255)--Green
else
SC.BARS['CP']['obj'].combos[i].bg:SetVertexColor(192/255, 176/255, 71/255)--Yellow
end
else
SC.BARS['CP']['obj'].combos[i].bg:SetVertexColor(124/255, 124/255, 124/255)--Gray
end
end
end
 
function FuryCommander:PoisonBar()
if FuryCommander_Save.display.Poison == true then
_ , mainHandExpiration , _ , _ , offHandExpiration = GetWeaponEnchantInfo()
if mainHandExpiration ~= nil then
SC.BARS['MH']['obj']:SetValue(mainHandExpiration)
SC.BARS['MH']['obj']:Show()
else
SC.BARS['MH']['obj']:Hide()
end
if offHandExpiration ~= nil then
SC.BARS['OH']['obj']:SetValue(offHandExpiration)
SC.BARS['OH']['obj']:Show()
else
SC.BARS['OH']['obj']:Hide()
end
else
SC.BARS['MH']['obj']:Hide()
SC.BARS['OH']['obj']:Hide()
end
end
 
function FuryCommander:UNIT_HEALTH()
if (GetActiveTalentGroup(false,false) == 1 and FuryCommander_Save.checkHealthSpec1)
or (GetActiveTalentGroup(false,false) == 2 and FuryCommander_Save.checkHealthSpec2) then
895,18 → 782,18
if HP ~= 0 and maxHP ~= 0 and not UnitIsFriend("player","target")then
pourcentHP = (HP / maxHP) * 100
if pourcentHP <= 35 then
if not SC.OTHER['HEALTH']['obj']:IsVisible() then
if not FC.OTHER['HEALTH']['obj']:IsVisible() then
FuryCommander:Sound("HealthUnder")
SC.OTHER['HEALTH']['obj']:Show()
FC.OTHER['HEALTH']['obj']:Show()
end
else
if SC.OTHER['HEALTH']['obj']:IsVisible() then
SC.OTHER['HEALTH']['obj']:Hide()
if FC.OTHER['HEALTH']['obj']:IsVisible() then
FC.OTHER['HEALTH']['obj']:Hide()
end
end
else
if SC.OTHER['HEALTH']['obj']:IsVisible() then
SC.OTHER['HEALTH']['obj']:Hide()
if FC.OTHER['HEALTH']['obj']:IsVisible() then
FC.OTHER['HEALTH']['obj']:Hide()
end
end
end
914,11 → 801,11
 
function FuryCommander:TargetThreat()
if FuryCommander_Save.display.THREAT == false or (FuryCommander_Save.ThreatGroupOnly and GetNumRaidMembers() == 0 and GetNumPartyMembers() == 0) then
SC.BARS['THREAT']['expire'] = 0
FC.BARS['THREAT']['expire'] = 0
else
isTanking, status, threatpct, rawthreatpct, threatvalue = UnitDetailedThreatSituation("player", "target")
if rawthreatpct == nil then
SC.BARS['THREAT']['expire'] = 0
FC.BARS['THREAT']['expire'] = 0
else
hexCol = rawthreatpct *(255/110)
rCol = hexCol-45
941,52 → 828,38
gCol = 50
end
bCol = 50
SC.BARS['THREAT']['expire'] = rawthreatpct
FC.BARS['THREAT']['expire'] = rawthreatpct
end
end
if SC.BARS['THREAT']['expire'] == 0 then
SC.BARS['THREAT']['obj']:Hide()
if FC.BARS['THREAT']['expire'] == 0 then
FC.BARS['THREAT']['obj']:Hide()
else
SC.BARS['THREAT']['obj']:SetValue(SC.BARS['THREAT']['expire'])
SC.BARS['THREAT']['obj'].text:SetText(string.format("%0.1f", SC.BARS['THREAT']['expire']))
SC.BARS['THREAT']['obj']:SetStatusBarColor(rCol/255,gCol/255,bCol/255)
SC.BARS['THREAT']['obj']:Show()
FC.BARS['THREAT']['obj']:SetValue(FC.BARS['THREAT']['expire'])
FC.BARS['THREAT']['obj'].text:SetText(string.format("%0.1f", FC.BARS['THREAT']['expire']))
FC.BARS['THREAT']['obj']:SetStatusBarColor(rCol/255,gCol/255,bCol/255)
FC.BARS['THREAT']['obj']:Show()
FuryCommander:ChangeAnchor()
end
end
 
function FuryCommander:SetPoisonTransparency(value)
VTimerRage:SetAlpha(value/100)
SC.BARS['MH']['obj']:SetAlpha(value/100)
SC.BARS['OH']['obj']:SetAlpha(value/100)
end
 
function FuryCommander:TestBF()
if FuryCommander_Save.display.BF then
name = UnitAura("player", SC_SPELL_BF, nil, "PLAYER")
if name and not SC.OTHER['BF']['obj']:IsVisible() then
SC.OTHER['BF']['obj']:Show()
elseif not name and SC.OTHER['BF']['obj']:IsVisible() then
SC.OTHER['BF']['obj']:Hide()
name = UnitAura("player", FC_SPELL_BF, nil, "PLAYER")
if name and not FC.OTHER['BF']['obj']:IsVisible() then
FC.OTHER['BF']['obj']:Show()
elseif not name and FC.OTHER['BF']['obj']:IsVisible() then
FC.OTHER['BF']['obj']:Hide()
end
else
SC.OTHER['BF']['obj']:Hide()
FC.OTHER['BF']['obj']:Hide()
end
end
 
function FuryCommander:TestDPCP()
name, _, _, count, _, _, _, isMine = UnitDebuff("target", SC_SPELL_DP, nil, "PLAYER")
if count == nil then
count = 0
end
FuryCommander:CPColor(name, count, isMine)
end
 
function FuryCommander:Latency()
SC.tNow = GetTime()
FC.tNow = GetTime()
if (FuryCommander_Save.PadLatency) then
_, _, SC.lag = GetNetStats()
SC.tNow = SC.tNow + (SC.lag*2/1000)
_, _, FC.lag = GetNetStats()
FC.tNow = FC.tNow + (FC.lag*2/1000)
end
end
 
995,43 → 868,27
VTimerRage:SetMinMaxValues(0,100)
VTimerRageTxt:SetText(VTimerRage:GetValue())
 
if SC.LastEnergy < FuryCommander_Save.Energy2 and UnitMana('player') >= FuryCommander_Save.Energy2 then
if FC.LastEnergy < FuryCommander_Save.Energy2 and UnitMana('player') >= FuryCommander_Save.Energy2 then
FuryCommander:Sound("EnergySound2")
elseif SC.LastEnergy < FuryCommander_Save.Energy1 and UnitMana('player') >= FuryCommander_Save.Energy1 then
elseif FC.LastEnergy < FuryCommander_Save.Energy1 and UnitMana('player') >= FuryCommander_Save.Energy1 then
FuryCommander:Sound("EnergySound1")
elseif SC.LastEnergy < FuryCommander_Save.Energy3 and UnitMana('player') >= FuryCommander_Save.Energy3 then
elseif FC.LastEnergy < FuryCommander_Save.Energy3 and UnitMana('player') >= FuryCommander_Save.Energy3 then
FuryCommander:Sound("EnergySound3")
end
SC.LastEnergy = UnitMana('player')
 
if UnitManaMax("player") == UnitMana('player') and UnitAffectingCombat("player")~=1 then
if FuryCommander_Save.display.Poison == true and FuryCommander_Save.PoisonTransparencyShow == true and ((SC.BARS['MH']['obj']:GetValue() ~= 0 and SC.BARS['MH']['obj']:GetValue() ~= nil) or (SC.BARS['OH']['obj']:GetValue() ~= 0 and SC.BARS['OH']['obj']:GetValue() ~= nil) ) then
FuryCommander:SetPoisonTransparency(FuryCommander_Save.FrameOpacity)
else
FuryCommander:SetPoisonTransparency(FuryCommander_Save.EnergyTrans)
end
else
FuryCommander:SetPoisonTransparency(FuryCommander_Save.FrameOpacity)
end
FC.LastEnergy = UnitMana('player')
end
 
function FuryCommander:BanditGuile()
if UnitAura("player", SC_SPELL_BG1, nil, "PLAYER") then
SC.OTHER['BG']['expire'] = 1
elseif UnitAura("player", SC_SPELL_BG2, nil, "PLAYER") then
SC.OTHER['BG']['expire'] = 2
elseif UnitAura("player", SC_SPELL_BG3, nil, "PLAYER") then
SC.OTHER['BG']['expire'] = 3
else
SC.OTHER['BG']['expire'] = 0
end
 
for i = 1, 3 do
if i <= SC.OTHER['BG']['expire'] then
SC.OTHER['BG']['obj'][i]:Show()
else
SC.OTHER['BG']['obj'][i]:Hide()
function FuryCommander:Bloodthirst()
start, duration, enabled = GetSpellCooldown(FC.ICON['BLT']['name'])
if duration == 3 then
cd = start + duration - FC.tNow
if cd < 0 then
cd = 0
end
if not FC.ICON['BLT']['obj']:IsVisible() then
FC.ICON['BLT']['obj']:Show()
end
FC.ICON['BLT']['obj']['text']:SetText(string.format("%0.1f", cd))
end
end
 
1039,29 → 896,27
FuryCommander:Rage()--Update Rage value and play sound if necessary
FuryCommander:Latency()--Update timer reference and latency
 
FuryCommander:PoisonBar()--Update Poisons Bar
FuryCommander:TargetThreat()--Update Threat Bar
 
FuryCommander:BanditGuile()--Update Bandit's Guile indicator
FuryCommander:Bloodthirst()
 
RUP_AlertPending = FuryCommander:UpdateBar(SC.BARS['RUP'], FuryCommander_Save.display.RUP, soundRup, RUP_AlertPending, 2, 2)--Update Rupture Bar
SND_AlertPending = FuryCommander:UpdateBar(SC.BARS['SnD'], FuryCommander_Save.display.SnD, soundSnd, SND_AlertPending, false, 1)--Update SnD Bar
FuryCommander:UpdateBar(SC.BARS['REC'], FuryCommander_Save.display.REC, nil, nil, 3, 0)--Update Recuprate Bar
FuryCommander:UpdateBar(SC.BARS['GAR'], FuryCommander_Save.display.GAR, nil, nil, 3, 0)--Update Garrote Bar
FuryCommander:UpdateBar(SC.BARS['EA'], FuryCommander_Save.display.EA, nil, nil, false, 0)--Update Expose Armor Bar
FuryCommander:UpdateBar(SC.BARS['FE'], FuryCommander_Save.display.FE, nil, nil, false, 0)--Update Feint Bar
FuryCommander:UpdateBar(SC.BARS['KS'], FuryCommander_Save.display.KS, nil, nil, false, 0)--Update Kidney Shot Bar
FuryCommander:UpdateBar(SC.BARS['CS'], FuryCommander_Save.display.CS, nil, nil, false, 0)--Update Cheap Shot Bar
FuryCommander:UpdateBar(SC.BARS['DP'], FuryCommander_Save.display.DP, nil, nil, false, 0)--Update Deadly poison Bar
FuryCommander:UpdateBar(SC.BARS['ENV'], FuryCommander_Save.display.ENV, nil, nil, false, 0)--Update Envenom Bar
FuryCommander:UpdateBar(SC.BARS['VEN'], FuryCommander_Save.display.VEN, nil, nil, false, 0)--Update Vendetta Bar
FuryCommander:UpdateBar(SC.BARS['AR'], FuryCommander_Save.display.AR, nil, nil, false, 3)--Update Adrenaline rush Bar
FuryCommander:AbilityCDBar(SC.BARS['VENCD'], FuryCommander_Save.display.VENCD)--Update Vendetta CD bar
FuryCommander:AbilityCDBar(SC.BARS['ToT'], FuryCommander_Save.display.ToT)--Update ToT CD bar
FuryCommander:AbilityCDBar(SC.BARS['ARCD'], FuryCommander_Save.display.ARCD)--Update Adrenaline rush CD bar
FuryCommander:AbilityCDBar(SC.BARS['FECD'], FuryCommander_Save.display.FE)--Update Feint CD bar
FuryCommander:TestDPCP()--Update Combot point color
FuryCommander:TestBF()--Update BF bar display
--[[RUP_AlertPending = FuryCommander:UpdateBar(FC.BARS['RUP'], FuryCommander_Save.display.RUP, soundRup, RUP_AlertPending, 2, 2)--Update Rupture Bar
SND_AlertPending = FuryCommander:UpdateBar(FC.BARS['SnD'], FuryCommander_Save.display.SnD, soundSnd, SND_AlertPending, false, 1)--Update SnD Bar
FuryCommander:UpdateBar(FC.BARS['REC'], FuryCommander_Save.display.REC, nil, nil, 3, 0)--Update Recuprate Bar
FuryCommander:UpdateBar(FC.BARS['GAR'], FuryCommander_Save.display.GAR, nil, nil, 3, 0)--Update Garrote Bar
FuryCommander:UpdateBar(FC.BARS['EA'], FuryCommander_Save.display.EA, nil, nil, false, 0)--Update Expose Armor Bar
FuryCommander:UpdateBar(FC.BARS['FE'], FuryCommander_Save.display.FE, nil, nil, false, 0)--Update Feint Bar
FuryCommander:UpdateBar(FC.BARS['KS'], FuryCommander_Save.display.KS, nil, nil, false, 0)--Update Kidney Shot Bar
FuryCommander:UpdateBar(FC.BARS['CS'], FuryCommander_Save.display.CS, nil, nil, false, 0)--Update Cheap Shot Bar
FuryCommander:UpdateBar(FC.BARS['DP'], FuryCommander_Save.display.DP, nil, nil, false, 0)--Update Deadly poison Bar
FuryCommander:UpdateBar(FC.BARS['ENV'], FuryCommander_Save.display.ENV, nil, nil, false, 0)--Update Envenom Bar
FuryCommander:UpdateBar(FC.BARS['VEN'], FuryCommander_Save.display.VEN, nil, nil, false, 0)--Update Vendetta Bar
FuryCommander:UpdateBar(FC.BARS['AR'], FuryCommander_Save.display.AR, nil, nil, false, 3)--Update Adrenaline rush Bar
FuryCommander:AbilityCDBar(FC.BARS['VENCD'], FuryCommander_Save.display.VENCD)--Update Vendetta CD bar
FuryCommander:AbilityCDBar(FC.BARS['ToT'], FuryCommander_Save.display.ToT)--Update ToT CD bar
FuryCommander:AbilityCDBar(FC.BARS['ARCD'], FuryCommander_Save.display.ARCD)--Update Adrenaline rush CD bar
FuryCommander:AbilityCDBar(FC.BARS['FECD'], FuryCommander_Save.display.FE)--Update Feint CD bar
FuryCommander:TestBF()--Update BF bar display]]
end
 
do