Format the text in the breakdown player list using the same font, size and outline of the damage window
This commit is contained in:
@@ -17,7 +17,7 @@ local f = CreateFrame ("frame", nil, UIParent)
|
||||
f:Hide()
|
||||
f:RegisterEvent ("ADDON_LOADED")
|
||||
|
||||
f:SetScript ("OnEvent", function (self, event, addonName)
|
||||
f:SetScript ("OnEvent", function(self, event, addonName)
|
||||
|
||||
if (addonName == "Details_DataStorage") then
|
||||
|
||||
|
||||
@@ -52,7 +52,7 @@ local class_type_misc = _detalhes.atributos.misc --> misc
|
||||
--> main combat object
|
||||
local _combat_object
|
||||
|
||||
local sort_by_name = function (t1, t2) return t1.nome < t2.nome end
|
||||
local sort_by_name = function(t1, t2) return t1.nome < t2.nome end
|
||||
|
||||
local CLASS_ICON_TCOORDS = _G.CLASS_ICON_TCOORDS
|
||||
|
||||
@@ -132,7 +132,7 @@ local function CreatePluginFrames (data)
|
||||
EncounterDetails:WasEncounter()
|
||||
end
|
||||
|
||||
local damage_done_func = function (support_table, time_table, tick_second)
|
||||
local damage_done_func = function(support_table, time_table, tick_second)
|
||||
local current_total_damage = _detalhes.tabela_vigente.totals_grupo[1]
|
||||
local current_damage = current_total_damage - support_table.last_damage
|
||||
time_table [tick_second] = current_damage
|
||||
@@ -273,7 +273,7 @@ local function CreatePluginFrames (data)
|
||||
local current_table_bigwigs = {}
|
||||
|
||||
local event_frame = CreateFrame ("frame", nil, UIParent, "BackdropTemplate")
|
||||
event_frame:SetScript ("OnEvent", function (self, event, ...)
|
||||
event_frame:SetScript ("OnEvent", function(self, event, ...)
|
||||
if (event == "ENCOUNTER_START") then
|
||||
local encounterID, encounterName, difficultyID, raidSize = select (1, ...)
|
||||
current_encounter = encounterID
|
||||
@@ -316,7 +316,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
--EncounterDetails.DBM_timers
|
||||
if (_G.DBM) then
|
||||
local dbm_timer_callback = function (bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
|
||||
local dbm_timer_callback = function(bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
|
||||
--print (bar_type, id, msg, timer, icon, bartype, spellId, colorId, modid)
|
||||
local spell = tostring (spellId)
|
||||
if (spell and not current_table_dbm [spell]) then
|
||||
@@ -591,7 +591,7 @@ local function CreatePluginFrames (data)
|
||||
|
||||
end
|
||||
|
||||
local sort_damage_from = function (a, b)
|
||||
local sort_damage_from = function(a, b)
|
||||
if (a[3] ~= "PET" and b[3] ~= "PET") then
|
||||
return a[2] > b[2]
|
||||
elseif (a[3] == "PET" and b[3] ~= "PET") then
|
||||
@@ -638,7 +638,7 @@ end
|
||||
end
|
||||
|
||||
local evtype = event [1]
|
||||
local spellname, _, spellicon = _GetSpellInfo (event [2])
|
||||
local spellname, _, spellicon = _GetSpellInfo(event [2])
|
||||
local amount = event [3]
|
||||
local time = event [4]
|
||||
local source = event [6]
|
||||
@@ -714,7 +714,7 @@ end
|
||||
GameCooltip:AddStatusBar (0, 1, .5, .5, .5, .5, false, {value = 100, color = {.5, .5, .5, 1}, specialSpark = false, texture = [[Interface\AddOns\Details\images\bar4_vidro]]})
|
||||
|
||||
if (battleress) then
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (battleress [2])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(battleress [2])
|
||||
GameCooltip:AddLine ("+" .. _cstr ("%.1f", battleress[4] - hora_da_morte) .. "s " .. nome_magia .. " (" .. battleress[6] .. ")", "", 1, "white")
|
||||
GameCooltip:AddIcon ("Interface\\Glues\\CharacterSelect\\Glues-AddOn-Icons", 1, 1, nil, nil, .75, 1, 0, 1)
|
||||
GameCooltip:AddStatusBar (0, 1, .5, .5, .5, .5, false, {value = 100, color = {.5, .5, .5, 1}, specialSpark = false, texture = [[Interface\AddOns\Details\images\bar4_vidro]]})
|
||||
@@ -722,7 +722,7 @@ end
|
||||
|
||||
if (lastcooldown) then
|
||||
if (lastcooldown[3] == 1) then
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (lastcooldown [2])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(lastcooldown [2])
|
||||
GameCooltip:AddLine (_cstr ("%.1f", lastcooldown[4] - hora_da_morte) .. "s " .. nome_magia .. " (" .. Loc ["STRING_LAST_COOLDOWN"] .. ")")
|
||||
GameCooltip:AddIcon (icone_magia)
|
||||
else
|
||||
@@ -776,10 +776,10 @@ local function DispellInfo (dispell, barra)
|
||||
end
|
||||
end
|
||||
|
||||
local spellname = GetSpellInfo (barra.spellid)
|
||||
local spellname = GetSpellInfo(barra.spellid)
|
||||
if (spellname) then
|
||||
GameTooltip:SetOwner (GameCooltipFrame1, "ANCHOR_NONE")
|
||||
GameTooltip:SetSpellByID (barra.spellid)
|
||||
GameTooltip:SetSpellByID(barra.spellid)
|
||||
GameTooltip:SetPoint ("topright", GameCooltipFrame1, "topleft", -2, 0)
|
||||
GameTooltip:Show()
|
||||
end
|
||||
@@ -798,7 +798,7 @@ local function KickBy (magia, barra)
|
||||
|
||||
_table_sort (tabela_jogadores, _detalhes.Sort2)
|
||||
|
||||
local spellName, _, spellIcon = GetSpellInfo (barra.lineText1:GetText())
|
||||
local spellName, _, spellIcon = GetSpellInfo(barra.lineText1:GetText())
|
||||
GameCooltip:AddLine (barra.lineText1:GetText())
|
||||
if (spellIcon) then
|
||||
GameCooltip:AddIcon (spellIcon, nil, 1, EncounterDetails.CooltipLineHeight, EncounterDetails.CooltipLineHeight, 5/64, 59/64, 5/64, 59/64)
|
||||
@@ -819,10 +819,10 @@ local function KickBy (magia, barra)
|
||||
GameCooltip:AddStatusBar (100, 1, .3, .3, .3, .3, false, false, false)
|
||||
end
|
||||
|
||||
local spellname = GetSpellInfo (barra.spellid)
|
||||
local spellname = GetSpellInfo(barra.spellid)
|
||||
if (spellname) then
|
||||
GameTooltip:SetOwner (GameCooltipFrame1, "ANCHOR_NONE")
|
||||
GameTooltip:SetSpellByID (barra.spellid)
|
||||
GameTooltip:SetSpellByID(barra.spellid)
|
||||
GameTooltip:SetPoint ("topright", GameCooltipFrame1, "topleft", -2, 0)
|
||||
GameTooltip:Show()
|
||||
end
|
||||
@@ -878,10 +878,10 @@ local function EnemySkills (habilidade, barra)
|
||||
end
|
||||
end
|
||||
|
||||
local spellname = GetSpellInfo (barra.spellid)
|
||||
local spellname = GetSpellInfo(barra.spellid)
|
||||
if (spellname) then
|
||||
GameTooltip:SetOwner (GameCooltipFrame1, "ANCHOR_NONE")
|
||||
GameTooltip:SetSpellByID (barra.spellid)
|
||||
GameTooltip:SetSpellByID(barra.spellid)
|
||||
GameTooltip:SetPoint ("right", barra, "left", -2, 0)
|
||||
GameTooltip:Show()
|
||||
end
|
||||
@@ -930,7 +930,7 @@ local function DamageTakenDetails (jogador, barra)
|
||||
local topDamage = meus_agressores[1] and meus_agressores[1][2]
|
||||
|
||||
for i = 1, max do
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (meus_agressores[i][1])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(meus_agressores[i][1])
|
||||
|
||||
if (meus_agressores[i][1] == 1) then
|
||||
nome_magia = "*"..meus_agressores[i][3]
|
||||
@@ -1016,7 +1016,7 @@ local backdrop_bar_onleave = {bgFile = [[Interface\AddOns\Details\images\backgro
|
||||
|
||||
function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
|
||||
barra:SetScript ("OnMouseDown", function (self)
|
||||
barra:SetScript ("OnMouseDown", function(self)
|
||||
if (self.fading_in) then
|
||||
return
|
||||
end
|
||||
@@ -1031,7 +1031,7 @@ function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
|
||||
end)
|
||||
|
||||
barra:SetScript ("OnMouseUp", function (self)
|
||||
barra:SetScript ("OnMouseUp", function(self)
|
||||
|
||||
if (self.fading_in) then
|
||||
return
|
||||
@@ -1053,7 +1053,7 @@ function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
end)
|
||||
|
||||
barra:SetScript ("OnEnter", --> MOUSE OVER
|
||||
function (self)
|
||||
function(self)
|
||||
--> aqui 1
|
||||
if (container.fading_in or container.faded) then
|
||||
return
|
||||
@@ -1096,7 +1096,7 @@ function EncounterDetails:SetRowScripts (barra, index, container)
|
||||
end)
|
||||
|
||||
barra:SetScript ("OnLeave", --> MOUSE OUT
|
||||
function (self)
|
||||
function(self)
|
||||
|
||||
self:SetScript ("OnUpdate", nil)
|
||||
|
||||
@@ -1525,7 +1525,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra.t:SetVertexColor (1, .8, .8, .8)
|
||||
end
|
||||
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (habilidade[4])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(habilidade[4])
|
||||
|
||||
barra.lineText1:SetText (nome_magia) -- .. " (|cFFa0a0a0" .. habilidade[4] .. "|r)
|
||||
barra.lineText4:SetText (ToK (_, habilidade[1]))
|
||||
@@ -1905,7 +1905,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
|
||||
local spellid = tabela [3]
|
||||
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (tabela [3])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(tabela [3])
|
||||
local successful = 0
|
||||
--> pegar quantas vezes a magia passou com sucesso.
|
||||
for _, enemy_actor in _ipairs (DamageContainer._ActorTable) do
|
||||
@@ -2017,7 +2017,7 @@ function EncounterDetails:OpenAndRefresh (_, segment)
|
||||
barra:SetWidth (160)
|
||||
end
|
||||
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo (tabela [3])
|
||||
local nome_magia, _, icone_magia = _GetSpellInfo(tabela [3])
|
||||
|
||||
barra.lineText1:SetText (nome_magia)
|
||||
barra.lineText4:SetText (tabela [2])
|
||||
@@ -2129,7 +2129,7 @@ local events_to_track = {
|
||||
}
|
||||
|
||||
local enemy_spell_pool
|
||||
local CLEvents = function (self, event)
|
||||
local CLEvents = function(self, event)
|
||||
|
||||
local time, token, hidding, who_serial, who_name, who_flags, who_flags2, alvo_serial, alvo_name, alvo_flags, alvo_flags2, spellid, spellname, school, aura_type = CombatLogGetCurrentEventInfo()
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ do
|
||||
backdropbordercolor = {.9, .7, 0, 1},
|
||||
}
|
||||
|
||||
local set_backdrop = function (frame)
|
||||
local set_backdrop = function(frame)
|
||||
frame:SetBackdrop ({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = "Interface\\Tooltips\\UI-Tooltip-Background", tileSize = 64, tile = true})
|
||||
frame:SetBackdropColor (0, 0, 0, .2)
|
||||
frame:SetBackdropBorderColor (0, 0, 0, 1)
|
||||
@@ -46,14 +46,14 @@ do
|
||||
local BGColorDefault_Hover = {0.5, 0.5, 0.5, 0.7}
|
||||
local BackdropDefault = {bgFile = [[Interface\Tooltips\UI-Tooltip-Background]], tileSize = 64, tile = true}
|
||||
|
||||
_detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
_detalhes.EncounterDetailsTempWindow = function(EncounterDetails)
|
||||
|
||||
--> options panel
|
||||
|
||||
EncounterDetails.SetBarBackdrop_OnEnter = function (self)
|
||||
EncounterDetails.SetBarBackdrop_OnEnter = function(self)
|
||||
self:SetBackdropColor (unpack (BGColorDefault_Hover))
|
||||
end
|
||||
EncounterDetails.SetBarBackdrop_OnLeave = function (self)
|
||||
EncounterDetails.SetBarBackdrop_OnLeave = function(self)
|
||||
self:SetBackdropColor (unpack (BGColorDefault))
|
||||
end
|
||||
|
||||
@@ -84,7 +84,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
-- 4 = always show
|
||||
-- 5 = automatic show when have at least 1 encounter with boss
|
||||
|
||||
local set = function (_, _, value)
|
||||
local set = function(_, _, value)
|
||||
EncounterDetails.db.show_icon = value
|
||||
if (value == 1) then
|
||||
if (EncounterDetails:GetZoneType() == "raid") then
|
||||
@@ -131,14 +131,14 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return EncounterDetails.db.hide_on_combat end,
|
||||
set = function (self, fixedparam, value) EncounterDetails.db.hide_on_combat = value end,
|
||||
set = function(self, fixedparam, value) EncounterDetails.db.hide_on_combat = value end,
|
||||
desc = "Encounter Breakdown window automatically close when you enter in combat.",
|
||||
name = "Hide on Combat"
|
||||
},
|
||||
{
|
||||
type = "range",
|
||||
get = function() return EncounterDetails.db.max_emote_segments end,
|
||||
set = function (self, fixedparam, value) EncounterDetails.db.max_emote_segments = value end,
|
||||
set = function(self, fixedparam, value) EncounterDetails.db.max_emote_segments = value end,
|
||||
min = 1,
|
||||
max = 10,
|
||||
step = 1,
|
||||
@@ -149,7 +149,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return EncounterDetails.db.window_scale end,
|
||||
set = function (self, fixedparam, value) EncounterDetails.db.window_scale = value; EncounterDetails:RefreshScale() end,
|
||||
set = function(self, fixedparam, value) EncounterDetails.db.window_scale = value; EncounterDetails:RefreshScale() end,
|
||||
min = 0.65,
|
||||
max = 1.50,
|
||||
step = 0.1,
|
||||
@@ -499,7 +499,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
vRowFrame:SetHeight (43)
|
||||
vRowFrame:SetFrameLevel (g:GetFrameLevel()+2)
|
||||
|
||||
vRowFrame:SetScript ("OnEnter", function (frame)
|
||||
vRowFrame:SetScript ("OnEnter", function(frame)
|
||||
|
||||
if (vRowFrame.dead[1] and vRowFrame.dead[1][3] and vRowFrame.dead[1][3][2]) then
|
||||
|
||||
@@ -519,7 +519,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
for i = #death[1], 1, -1 do
|
||||
local this_hit = death[1][i]
|
||||
if (type (this_hit[1]) == "boolean" and this_hit[1]) then
|
||||
local spellname, _, spellicon = _GetSpellInfo (this_hit[2])
|
||||
local spellname, _, spellicon = _GetSpellInfo(this_hit[2])
|
||||
local t = death [2] - this_hit [4]
|
||||
GameCooltip:AddLine ("-" .. _cstr ("%.1f", t) .. " " .. spellname .. " (" .. this_hit[6] .. ")", EncounterDetails:comma_value (this_hit [3]))
|
||||
GameCooltip:AddIcon (spellicon, 1, 1, 12, 12, 0.1, 0.9, 0.1, 0.9)
|
||||
@@ -538,7 +538,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
end)
|
||||
|
||||
vRowFrame:SetScript ("OnLeave", function (frame)
|
||||
vRowFrame:SetScript ("OnLeave", function(frame)
|
||||
_detalhes.popup:ShowMe (false)
|
||||
end)
|
||||
|
||||
@@ -701,7 +701,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
t:Hide()
|
||||
tinsert (spark_container, t)
|
||||
end
|
||||
local get_spark = function (index)
|
||||
local get_spark = function(index)
|
||||
local spark = spark_container [index]
|
||||
if (not spark) then
|
||||
create_spark()
|
||||
@@ -716,7 +716,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
end
|
||||
|
||||
local phase_on_enter = function (self)
|
||||
local phase_on_enter = function(self)
|
||||
|
||||
local spark1 = get_spark (1)
|
||||
local spark2 = get_spark (2)
|
||||
@@ -830,7 +830,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
|
||||
end
|
||||
local phase_on_leave = function (self)
|
||||
local phase_on_leave = function(self)
|
||||
table.wipe (self.damage_actors)
|
||||
table.wipe (self.heal_actors)
|
||||
|
||||
@@ -843,11 +843,11 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
phase_panel:Hide()
|
||||
end
|
||||
|
||||
local phase_on_click = function (self, button)
|
||||
local phase_on_click = function(self, button)
|
||||
if (button == "LeftButton") then
|
||||
|
||||
local result = {}
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
local reportFunc = function(IsCurrent, IsReverse, AmtLines)
|
||||
AmtLines = AmtLines + 1
|
||||
if (#result > AmtLines) then
|
||||
for i = #result, AmtLines+1, -1 do
|
||||
@@ -867,7 +867,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
elseif (button == "RightButton") then
|
||||
|
||||
local result = {}
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
local reportFunc = function(IsCurrent, IsReverse, AmtLines)
|
||||
AmtLines = AmtLines + 1
|
||||
if (#result > AmtLines) then
|
||||
for i = #result, AmtLines+1, -1 do
|
||||
@@ -1103,7 +1103,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
----
|
||||
|
||||
BossFrame:SetScript ("OnMouseDown",
|
||||
function (self, botao)
|
||||
function(self, botao)
|
||||
if (botao == "LeftButton") then
|
||||
self:StartMoving()
|
||||
self.isMoving = true
|
||||
@@ -1113,7 +1113,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end)
|
||||
|
||||
BossFrame:SetScript ("OnMouseUp",
|
||||
function (self)
|
||||
function(self)
|
||||
if (self.isMoving) then
|
||||
self:StopMovingOrSizing()
|
||||
self.isMoving = false
|
||||
@@ -1204,7 +1204,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
BossFrame.buttonSwitchBossEmotes:SetTemplate (DetailsFrameWork:GetTemplate ("button", "DETAILS_PLUGIN_BUTTON_TEMPLATE"))
|
||||
end
|
||||
|
||||
BossFrame.switch = function (to, _, to2)
|
||||
BossFrame.switch = function(to, _, to2)
|
||||
if (type (to) == "string") then
|
||||
to = to
|
||||
elseif (type (to2) == "string") then
|
||||
@@ -1433,7 +1433,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
|
||||
local CONST_EMOTES_MAX_LINES = 32
|
||||
|
||||
local refresh_emotes = function (self)
|
||||
local refresh_emotes = function(self)
|
||||
--update emote scroll
|
||||
|
||||
local offset = FauxScrollFrame_GetOffset (self)
|
||||
@@ -1512,17 +1512,17 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
tinsert (BossFrame.EmoteWidgets, bar_div_emotes)
|
||||
|
||||
scrollframe = CreateFrame ("ScrollFrame", "EncounterDetails_EmoteScroll", BossFrame, "FauxScrollFrameTemplate, BackdropTemplate")
|
||||
scrollframe:SetScript ("OnVerticalScroll", function (self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 14, refresh_emotes) end)
|
||||
scrollframe:SetScript ("OnVerticalScroll", function(self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 14, refresh_emotes) end)
|
||||
scrollframe:SetPoint ("topleft", BossFrame, "topleft", 249, -75)
|
||||
scrollframe:SetPoint ("bottomright", BossFrame, "bottomright", -33, 42)
|
||||
scrollframe.Update = refresh_emotes
|
||||
scrollframe:Hide()
|
||||
_detalhes.gump:ReskinSlider (scrollframe, 3)
|
||||
_detalhes.gump:ReskinSlider(scrollframe, 3)
|
||||
|
||||
--
|
||||
tinsert (BossFrame.EmoteWidgets, scrollframe)
|
||||
|
||||
local row_on_enter = function (self)
|
||||
local row_on_enter = function(self)
|
||||
self:SetBackdrop ({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16})
|
||||
self:SetBackdropColor (1, 1, 1, .6)
|
||||
if (self.righttext:IsTruncated()) then
|
||||
@@ -1532,13 +1532,13 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
GameCooltip:Show()
|
||||
end
|
||||
end
|
||||
local row_on_leave = function (self)
|
||||
local row_on_leave = function(self)
|
||||
self:SetBackdrop ({bgFile = [[Interface\AddOns\Details\images\background]], tile = true, tileSize = 16})
|
||||
self:SetBackdropColor (1, 1, 1, .3)
|
||||
GameCooltip:Hide()
|
||||
end
|
||||
|
||||
local row_on_mouse_up = function (self)
|
||||
local row_on_mouse_up = function(self)
|
||||
--report
|
||||
local text = self.righttext:GetText()
|
||||
local time = self.lefttext:GetText()
|
||||
@@ -1552,7 +1552,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
-- replace links
|
||||
for _, spellid in text:gmatch ("(|Hspell:)(.-)(|h)") do
|
||||
local spell = tonumber (spellid)
|
||||
local link = GetSpellLink (spell)
|
||||
local link = GetSpellLink(spell)
|
||||
text = text:gsub ("(|Hspell).*(|h)", link)
|
||||
end
|
||||
-- remove unit links
|
||||
@@ -1605,7 +1605,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
local emotes_segment_label = DetailsFrameWork:CreateLabel (BossFrame, "Segment:", 11, nil, "GameFontHighlightSmall")
|
||||
emotes_segment_label:SetPoint ("topleft", BossFrame, "topleft", 10, -85)
|
||||
|
||||
local on_emote_Segment_select = function (_, _, segment)
|
||||
local on_emote_Segment_select = function(_, _, segment)
|
||||
FauxScrollFrame_SetOffset (scrollframe, 0)
|
||||
emote_segment = segment
|
||||
scrollframe:Update()
|
||||
@@ -1679,7 +1679,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
|
||||
-- report button
|
||||
local report_emote_button = DetailsFrameWork:NewButton (BossFrame, nil, "$parentReportEmoteButton", "ReportEmoteButton", 180, 20, function()
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
local reportFunc = function(IsCurrent, IsReverse, AmtLines)
|
||||
local segment = EncounterDetails.charsaved.emotes and EncounterDetails.charsaved.emotes [emote_segment]
|
||||
|
||||
if (segment) then
|
||||
@@ -1702,7 +1702,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
-- replace links
|
||||
for _, spellid in text:gmatch ("(|Hspell:)(.-)(|h)") do
|
||||
local spell = tonumber (spellid)
|
||||
local link = GetSpellLink (spell)
|
||||
local link = GetSpellLink(spell)
|
||||
text = text:gsub ("(|Hspell).*(|h)", link)
|
||||
end
|
||||
-- remove unit links
|
||||
@@ -1761,15 +1761,15 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
local spell_blocks = {}
|
||||
local bossmods_blocks = {}
|
||||
|
||||
local on_focus_gain = function (self)
|
||||
local on_focus_gain = function(self)
|
||||
self:HighlightText()
|
||||
end
|
||||
|
||||
local on_focus_lost = function (self)
|
||||
local on_focus_lost = function(self)
|
||||
self:HighlightText (0, 0)
|
||||
end
|
||||
|
||||
local on_enter_spell = function (self)
|
||||
local on_enter_spell = function(self)
|
||||
if (self.MyObject._spellid) then
|
||||
GameTooltip:SetOwner (self, "ANCHOR_TOPLEFT")
|
||||
|
||||
@@ -1790,17 +1790,17 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
end
|
||||
|
||||
local on_leave_spell = function (self, capsule)
|
||||
local on_leave_spell = function(self, capsule)
|
||||
GameTooltip:Hide()
|
||||
self:SetBackdropColor (.3, .3, .3, .5)
|
||||
end
|
||||
|
||||
local create_aura_func = function (self, button, spellid, encounter_id)
|
||||
local create_aura_func = function(self, button, spellid, encounter_id)
|
||||
local name, _, icon = EncounterDetails.getspellinfo (spellid)
|
||||
EncounterDetails:OpenAuraPanel (spellid, name, self and self.MyObject._icon.texture, encounter_id)
|
||||
end
|
||||
|
||||
local info_onenter = function (self)
|
||||
local info_onenter = function(self)
|
||||
local spellid = self._spellid
|
||||
|
||||
local info = EncounterDetails.EnemySpellPool [spellid]
|
||||
@@ -1823,7 +1823,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
|
||||
self:SetBackdropColor (1, 1, 1, .5)
|
||||
end
|
||||
local info_onleave = function (self)
|
||||
local info_onleave = function(self)
|
||||
GameCooltip:Hide()
|
||||
self:SetBackdropColor (.3, .3, .3, .5)
|
||||
end
|
||||
@@ -2055,7 +2055,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
end
|
||||
|
||||
local refresh_spellauras = function (self)
|
||||
local refresh_spellauras = function(self)
|
||||
|
||||
local pool = EncounterDetails_SpellAurasScroll.spell_pool
|
||||
local encounter_id = EncounterDetails_SpellAurasScroll.encounter_id
|
||||
@@ -2098,7 +2098,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
end
|
||||
|
||||
local spell_scrollframe = CreateFrame ("ScrollFrame", "EncounterDetails_SpellAurasScroll", BossFrame, "FauxScrollFrameTemplate, BackdropTemplate")
|
||||
spell_scrollframe:SetScript ("OnVerticalScroll", function (self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 14, refresh_spellauras) end)
|
||||
spell_scrollframe:SetScript ("OnVerticalScroll", function(self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 14, refresh_spellauras) end)
|
||||
spell_scrollframe:SetPoint ("topleft", BossFrame, "topleft", 200, -75)
|
||||
spell_scrollframe:SetPoint ("bottomright", BossFrame, "bottomright", -33, 42)
|
||||
spell_scrollframe.Update = refresh_spellauras
|
||||
@@ -2111,7 +2111,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
|
||||
|
||||
local bossmods_scrollframe = CreateFrame ("ScrollFrame", "EncounterDetails_BossModsScroll", BossFrame, "FauxScrollFrameTemplate, BackdropTemplate")
|
||||
bossmods_scrollframe:SetScript ("OnVerticalScroll", function (self, offset) FauxScrollFrame_OnVerticalScroll(self, offset, 14, refresh_bossmods_timers) end)
|
||||
bossmods_scrollframe:SetScript ("OnVerticalScroll", function(self, offset) FauxScrollFrame_OnVerticalScroll(self, offset, 14, refresh_bossmods_timers) end)
|
||||
bossmods_scrollframe:SetPoint ("topleft", BossFrame, "topleft", 10, -75)
|
||||
bossmods_scrollframe:SetPoint ("bottomleft", BossFrame, "bottomleft", 250, 42)
|
||||
bossmods_scrollframe.Update = refresh_bossmods_timers
|
||||
@@ -2141,7 +2141,7 @@ _detalhes.EncounterDetailsTempWindow = function (EncounterDetails)
|
||||
local title, description, depth, abilityIcon, displayInfo, siblingID, nextSectionID, filteredByDifficulty, link, startsOpen, flag1, flag2, flag3, flag4 = C_EncounterJournal.GetSectionInfo (abs (int_spell))
|
||||
tinsert (t, {label = title, value = {timer_table [2], title, timer_table [5] or abilityIcon, timer_table.id}, icon = timer_table [5] or abilityIcon, onclick = on_select_bw_bar})
|
||||
else
|
||||
local spellname, _, spellicon = _GetSpellInfo (int_spell)
|
||||
local spellname, _, spellicon = _GetSpellInfo(int_spell)
|
||||
tinsert (t, {label = spellname, value = {timer_table [2], spellname, timer_table [5] or spellicon, timer_table.id}, icon = timer_table [5] or spellicon, onclick = on_select_bw_bar})
|
||||
end
|
||||
|
||||
@@ -2193,7 +2193,7 @@ function PhaseFrame:ClearAll()
|
||||
PhaseFrame:ClearPhaseBars()
|
||||
end
|
||||
|
||||
local selectSegment = function (_, _, phaseSelected)
|
||||
local selectSegment = function(_, _, phaseSelected)
|
||||
PhaseFrame ["OnSelectPhase"] (phaseSelected)
|
||||
end
|
||||
|
||||
@@ -2263,9 +2263,9 @@ local DamageLabel = _detalhes.gump:CreateLabel (PhaseFrame, "Damage Done")
|
||||
local HealLabel = _detalhes.gump:CreateLabel (PhaseFrame, "Healing Done")
|
||||
local PhaseTimersLabel = _detalhes.gump:CreateLabel (PhaseFrame, "Time Spent on Each Phase")
|
||||
|
||||
local report_damage = function (IsCurrent, IsReverse, AmtLines)
|
||||
local report_damage = function(IsCurrent, IsReverse, AmtLines)
|
||||
local result = {}
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
local reportFunc = function(IsCurrent, IsReverse, AmtLines)
|
||||
AmtLines = AmtLines + 1
|
||||
if (#result > AmtLines) then
|
||||
for i = #result, AmtLines+1, -1 do
|
||||
@@ -2290,7 +2290,7 @@ Report_DamageButton.textsize = 9
|
||||
|
||||
local report_healing = function()
|
||||
local result = {}
|
||||
local reportFunc = function (IsCurrent, IsReverse, AmtLines)
|
||||
local reportFunc = function(IsCurrent, IsReverse, AmtLines)
|
||||
AmtLines = AmtLines + 1
|
||||
if (#result > AmtLines) then
|
||||
for i = #result, AmtLines+1, -1 do
|
||||
@@ -2325,7 +2325,7 @@ for i = 1, 10 do
|
||||
tinsert (PhaseFrame.PhaseButtons, button)
|
||||
end
|
||||
|
||||
local ScrollRefresh = function (self, data, offset, total_lines)
|
||||
local ScrollRefresh = function(self, data, offset, total_lines)
|
||||
local formatToK = Details:GetCurrentToKFunction()
|
||||
local removeRealm = _detalhes.GetOnlyName
|
||||
|
||||
@@ -2353,15 +2353,15 @@ local ScrollRefresh = function (self, data, offset, total_lines)
|
||||
end
|
||||
end
|
||||
|
||||
local line_onenter = function (self)
|
||||
local line_onenter = function(self)
|
||||
self:SetBackdropColor (unpack (BGColorDefault_Hover))
|
||||
end
|
||||
|
||||
local line_onleave = function (self)
|
||||
local line_onleave = function(self)
|
||||
self:SetBackdropColor (unpack (BGColorDefault))
|
||||
end
|
||||
|
||||
local ScrollCreateLine = function (self, index)
|
||||
local ScrollCreateLine = function(self, index)
|
||||
local line = CreateFrame ("button", "$parentLine" .. index, self,"BackdropTemplate")
|
||||
line:SetPoint ("topleft", self, "topleft", 0, -((index-1)*(ScrollLineHeight+1)))
|
||||
line:SetSize (ScrollWidth, ScrollLineHeight)
|
||||
@@ -2406,8 +2406,8 @@ local Heal_Scroll = _detalhes.gump:CreateScrollBox (PhaseFrame, "$parentHealScro
|
||||
Damage_Scroll:SetPoint ("topleft", DamageLabel.widget, "bottomleft", 0, -4)
|
||||
Heal_Scroll:SetPoint ("topleft", HealLabel.widget, "bottomleft", 0, -4)
|
||||
|
||||
_detalhes.gump:ReskinSlider (Damage_Scroll, 4)
|
||||
_detalhes.gump:ReskinSlider (Heal_Scroll, 4)
|
||||
_detalhes.gump:ReskinSlider(Damage_Scroll, 4)
|
||||
_detalhes.gump:ReskinSlider(Heal_Scroll, 4)
|
||||
|
||||
for i = 1, ScrollLineAmount do
|
||||
Damage_Scroll:CreateLine (ScrollCreateLine)
|
||||
@@ -2429,15 +2429,15 @@ Heal_Scroll:SetBackdropColor (0, 0, 0, .4)
|
||||
PhaseFrame.PhasesBars = {}
|
||||
PhaseFrame.PhasesSegmentCompare = {}
|
||||
|
||||
local PhaseBarOnEnter = function (self)
|
||||
local PhaseBarOnEnter = function(self)
|
||||
PhaseFrame:UpdateSegmentCompareBars (self.phase)
|
||||
self:SetBackdropColor (unpack (BGColorDefault_Hover))
|
||||
end
|
||||
local PhaseBarOnLeave = function (self)
|
||||
local PhaseBarOnLeave = function(self)
|
||||
PhaseFrame:ClearSegmentCompareBars()
|
||||
self:SetBackdropColor (unpack (BGColorDefault))
|
||||
end
|
||||
local PhaseBarOnClick = function (self)
|
||||
local PhaseBarOnClick = function(self)
|
||||
--report
|
||||
end
|
||||
|
||||
@@ -2532,7 +2532,7 @@ function PhaseFrame:GetPhaseTimers (segment, ordered)
|
||||
for phase, _ in pairs (t) do
|
||||
tinsert (order, phase)
|
||||
end
|
||||
table.sort (order, function (a, b) return a < b end)
|
||||
table.sort (order, function(a, b) return a < b end)
|
||||
return order, t
|
||||
end
|
||||
|
||||
@@ -2613,7 +2613,7 @@ end
|
||||
|
||||
--> Selecionar o segmento
|
||||
|
||||
local buildSegmentosMenu = function (self)
|
||||
local buildSegmentosMenu = function(self)
|
||||
local historico = _detalhes.tabela_historico.tabelas
|
||||
local return_table = {}
|
||||
|
||||
@@ -2715,7 +2715,7 @@ end
|
||||
container_damagetaken_window.slider:cimaPoint (0, 1)
|
||||
container_damagetaken_window.slider:baixoPoint (0, -1)
|
||||
container_damagetaken_frame.slider = container_damagetaken_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_damagetaken_window)
|
||||
_detalhes.gump:ReskinSlider(container_damagetaken_window)
|
||||
|
||||
container_damagetaken_window.gump = container_damagetaken_frame
|
||||
container_damagetaken_frame.window = container_damagetaken_window
|
||||
@@ -2768,7 +2768,7 @@ end
|
||||
container_habilidades_window.slider:cimaPoint (0, 1)
|
||||
container_habilidades_window.slider:baixoPoint (0, -1)
|
||||
container_habilidades_frame.slider = container_habilidades_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_habilidades_window)
|
||||
_detalhes.gump:ReskinSlider(container_habilidades_window)
|
||||
|
||||
container_habilidades_window.gump = container_habilidades_frame
|
||||
container_habilidades_frame.window = container_habilidades_window
|
||||
@@ -2814,7 +2814,7 @@ end
|
||||
container_adds_window.slider:cimaPoint (0, 1)
|
||||
container_adds_window.slider:baixoPoint (0, -1)
|
||||
container_adds_frame.slider = container_adds_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_adds_window)
|
||||
_detalhes.gump:ReskinSlider(container_adds_window)
|
||||
|
||||
container_adds_window.gump = container_adds_frame
|
||||
container_adds_frame.window = container_adds_window
|
||||
@@ -2859,7 +2859,7 @@ end
|
||||
container_interrupt_window.slider:cimaPoint (0, 1)
|
||||
container_interrupt_window.slider:baixoPoint (0, -1)
|
||||
container_interrupt_frame.slider = container_interrupt_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_interrupt_window)
|
||||
_detalhes.gump:ReskinSlider(container_interrupt_window)
|
||||
|
||||
|
||||
container_interrupt_window.gump = container_interrupt_frame
|
||||
@@ -2905,7 +2905,7 @@ end
|
||||
container_dispell_window.slider:cimaPoint (0, 1)
|
||||
container_dispell_window.slider:baixoPoint (0, -1)
|
||||
container_dispell_frame.slider = container_dispell_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_dispell_window)
|
||||
_detalhes.gump:ReskinSlider(container_dispell_window)
|
||||
|
||||
container_dispell_window.gump = container_dispell_frame
|
||||
container_dispell_frame.window = container_dispell_window
|
||||
@@ -2955,7 +2955,7 @@ end
|
||||
container_dead_window.slider:cimaPoint (0, 1)
|
||||
container_dead_window.slider:baixoPoint (0, -1)
|
||||
container_dead_frame.slider = container_dead_window.slider
|
||||
_detalhes.gump:ReskinSlider (container_dead_window)
|
||||
_detalhes.gump:ReskinSlider(container_dead_window)
|
||||
|
||||
container_dead_window.gump = container_dead_frame
|
||||
container_dead_frame.window = container_dead_window
|
||||
@@ -2983,7 +2983,7 @@ end
|
||||
["CHAT_MSG_MONSTER_YELL"] = 7,
|
||||
}
|
||||
|
||||
emote_frame:SetScript ("OnEvent", function (...)
|
||||
emote_frame:SetScript ("OnEvent", function(...)
|
||||
|
||||
if (not EncounterDetails.current_whisper_table) then
|
||||
return
|
||||
|
||||
@@ -727,7 +727,7 @@ local CreatePluginFrames = function()
|
||||
raidCheckFrame:SetScript("OnUpdate", updateRaidCheckFrame)
|
||||
end)
|
||||
|
||||
DetailsRaidCheck.ToolbarButton:SetScript("OnLeave", function (self)
|
||||
DetailsRaidCheck.ToolbarButton:SetScript("OnLeave", function(self)
|
||||
raidCheckFrame:SetScript("OnUpdate", nil)
|
||||
raidCheckFrame:Hide()
|
||||
end)
|
||||
@@ -903,21 +903,21 @@ local buildOptionsPanel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.pre_pot_healers end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.pre_pot_healers = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.pre_pot_healers = value end,
|
||||
desc = "If enabled, pre potion for healers are also shown.",
|
||||
name = "Track Healers Pre Pot"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.pre_pot_tanks end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.pre_pot_tanks = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.pre_pot_tanks = value end,
|
||||
desc = "If enabled, pre potion for tanks are also shown.",
|
||||
name = "Track Tank Pre Pot"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.mythic_1_4 end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.mythic_1_4 = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.mythic_1_4 = value end,
|
||||
desc = "When raiding on Mythic difficult, only check the first 4 groups.",
|
||||
name = "Mythic 1-4 Group Only"
|
||||
},
|
||||
@@ -928,21 +928,21 @@ local buildOptionsPanel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.food_tier1 end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.food_tier1 = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.food_tier1 = value end,
|
||||
desc = "Consider players using Tier 1 food.",
|
||||
name = "Food Tier 1 [41]"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.food_tier2 end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.food_tier2 = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.food_tier2 = value end,
|
||||
desc = "Consider players using Tier 2 food.",
|
||||
name = "Food Tier 2 [55]"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return DetailsRaidCheck.db.food_tier3 end,
|
||||
set = function (self, fixedparam, value) DetailsRaidCheck.db.food_tier3 = value end,
|
||||
set = function(self, fixedparam, value) DetailsRaidCheck.db.food_tier3 = value end,
|
||||
desc = "Consider players using Tier 3 food.",
|
||||
name = "Food Tier 3 [>= 75]"
|
||||
},
|
||||
|
||||
@@ -148,7 +148,7 @@ local function CreatePluginFrames()
|
||||
titlebar.text = titlebar:CreateFontString (nil, "overlay", "GameFontNormal")
|
||||
titlebar.text:SetPoint ("center", titlebar, "center")
|
||||
titlebar.text:SetText ("Details! Streamer: Action Tracker")
|
||||
titlebar:SetScript ("OnEnter", function (self)
|
||||
titlebar:SetScript ("OnEnter", function(self)
|
||||
GameTooltip:SetOwner (self)
|
||||
GameTooltip:SetOwner (self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine ("|cFFFF7700Left Click|r: Open Options\n|cFFFF7700Right Click|r: Lock the Frame\n|cFFFF7700Slash Command|r: /streamer")
|
||||
@@ -158,14 +158,14 @@ local function CreatePluginFrames()
|
||||
GameTooltip:Hide()
|
||||
end)
|
||||
|
||||
SOF:SetScript ("OnMouseDown", function (self)
|
||||
SOF:SetScript ("OnMouseDown", function(self)
|
||||
|
||||
end)
|
||||
SOF:SetScript ("OnMouseUp", function (self)
|
||||
SOF:SetScript ("OnMouseUp", function(self)
|
||||
|
||||
end)
|
||||
|
||||
titlebar:SetScript ("OnMouseDown", function (self, button)
|
||||
titlebar:SetScript ("OnMouseDown", function(self, button)
|
||||
if (not SOF.moving and not StreamOverlay.db.main_frame_locked) then
|
||||
SOF:StartMoving()
|
||||
SOF.moving = true
|
||||
@@ -173,7 +173,7 @@ local function CreatePluginFrames()
|
||||
end
|
||||
end)
|
||||
|
||||
titlebar:SetScript ("OnMouseUp", function (self, button)
|
||||
titlebar:SetScript ("OnMouseUp", function(self, button)
|
||||
|
||||
if (SOF.movingAt) then
|
||||
if (SOF.moving) then
|
||||
@@ -262,13 +262,13 @@ local function CreatePluginFrames()
|
||||
left_resize:GetHighlightTexture():SetTexCoord (1, 0, 0, 1)
|
||||
left_resize:GetPushedTexture():SetTexCoord (1, 0, 0, 1)
|
||||
|
||||
left_resize:SetScript ("OnMouseDown", function (self)
|
||||
left_resize:SetScript ("OnMouseDown", function(self)
|
||||
if (not SOF.resizing and not StreamOverlay.db.main_frame_locked) then
|
||||
SOF.resizing = true
|
||||
SOF:StartSizing ("bottomleft")
|
||||
end
|
||||
end)
|
||||
left_resize:SetScript ("OnMouseUp", function (self)
|
||||
left_resize:SetScript ("OnMouseUp", function(self)
|
||||
if (SOF.resizing) then
|
||||
SOF.resizing = false
|
||||
SOF:StopMovingOrSizing()
|
||||
@@ -277,13 +277,13 @@ local function CreatePluginFrames()
|
||||
StreamOverlay:SaveWindowSizeAnLocation()
|
||||
end
|
||||
end)
|
||||
right_resize:SetScript ("OnMouseDown", function (self)
|
||||
right_resize:SetScript ("OnMouseDown", function(self)
|
||||
if (not SOF.resizing and not StreamOverlay.db.main_frame_locked) then
|
||||
SOF.resizing = true
|
||||
SOF:StartSizing ("bottomright")
|
||||
end
|
||||
end)
|
||||
right_resize:SetScript ("OnMouseUp", function (self)
|
||||
right_resize:SetScript ("OnMouseUp", function(self)
|
||||
if (SOF.resizing) then
|
||||
SOF.resizing = false
|
||||
SOF:StopMovingOrSizing()
|
||||
@@ -293,17 +293,17 @@ local function CreatePluginFrames()
|
||||
end
|
||||
end)
|
||||
|
||||
SOF:SetScript ("OnSizeChanged", function (self)
|
||||
SOF:SetScript ("OnSizeChanged", function(self)
|
||||
StreamOverlay:Refresh()
|
||||
end)
|
||||
|
||||
SOF:SetScript ("OnMouseDown", function (self)
|
||||
SOF:SetScript ("OnMouseDown", function(self)
|
||||
if (not SOF.moving and not StreamOverlay.db.main_frame_locked) then
|
||||
SOF:StartMoving()
|
||||
SOF.moving = true
|
||||
end
|
||||
end)
|
||||
SOF:SetScript ("OnMouseUp", function (self)
|
||||
SOF:SetScript ("OnMouseUp", function(self)
|
||||
if (SOF.moving) then
|
||||
SOF.moving = false
|
||||
SOF:StopMovingOrSizing()
|
||||
@@ -315,7 +315,7 @@ local function CreatePluginFrames()
|
||||
|
||||
--> scroll frame
|
||||
local autoscroll = CreateFrame ("scrollframe", "Details_StreamOverlayScrollFrame", SOF, "FauxScrollFrameTemplate, BackdropTemplate")
|
||||
autoscroll:SetScript ("OnVerticalScroll", function (self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 20, StreamOverlay.UpdateLines) end)
|
||||
autoscroll:SetScript ("OnVerticalScroll", function(self, offset) FauxScrollFrame_OnVerticalScroll (self, offset, 20, StreamOverlay.UpdateLines) end)
|
||||
|
||||
--> looks like this isn't working
|
||||
function StreamOverlay:ClearAll()
|
||||
@@ -960,11 +960,11 @@ local DefaultCoords = {0, 1, 0, 1}
|
||||
local DefaultColor = {r=1, g=1, b=1}
|
||||
local PetCoords = {0.25, 0.49609375, 0.75, 1}
|
||||
|
||||
local parse_target_name = function (target)
|
||||
local parse_target_name = function(target)
|
||||
return StreamOverlay:GetOnlyName (target)
|
||||
end
|
||||
|
||||
local parse_target_icon = function (targetObject, target)
|
||||
local parse_target_icon = function(targetObject, target)
|
||||
local icon2, icon2coords, pclass
|
||||
if (targetObject) then
|
||||
local role = targetObject.role
|
||||
@@ -1022,7 +1022,7 @@ local parse_target_icon = function (targetObject, target)
|
||||
return icon2, icon2coords, pclass
|
||||
end
|
||||
|
||||
local parse_target_color = function (class)
|
||||
local parse_target_color = function(class)
|
||||
local color2 = RAID_CLASS_COLORS [class]
|
||||
return color2
|
||||
end
|
||||
@@ -1040,7 +1040,7 @@ function StreamOverlay:CastStart (castGUID)
|
||||
end
|
||||
|
||||
local icon, backgroundcolor, bordercolor = StreamOverlay:GetSpellInformation (spellid)
|
||||
local spellname, _, spellicon = GetSpellInfo (spellid)
|
||||
local spellname, _, spellicon = GetSpellInfo(spellid)
|
||||
|
||||
local targetObject = Details:GetActor ("current", 1, target) or Details:GetActor ("current", 2, target)
|
||||
local icon2, icon2coords, class = parse_target_icon (targetObject, target)
|
||||
@@ -1078,7 +1078,7 @@ function StreamOverlay:CastFinished (castid)
|
||||
--just casted a instant spell
|
||||
|
||||
local icon, backgroundcolor, bordercolor = StreamOverlay:GetSpellInformation (spellid)
|
||||
local spellname, _, spellicon = GetSpellInfo (spellid)
|
||||
local spellname, _, spellicon = GetSpellInfo(spellid)
|
||||
|
||||
local targetObject = Details:GetActor ("current", 1, target) or Details:GetActor ("current", 2, target)
|
||||
|
||||
@@ -1346,7 +1346,7 @@ APM_FRAME:SetScript ("OnEvent", function()
|
||||
ACTIONS = ACTIONS + 1
|
||||
end)
|
||||
|
||||
eventFrame:SetScript ("OnEvent", function (self, event, ...)
|
||||
eventFrame:SetScript ("OnEvent", function(self, event, ...)
|
||||
if (event ~= "UNIT_SPELLCAST_SENT" and event ~= "UNIT_SPELLCAST_SUCCEEDED" and ACTIONS_EVENT_TIME [event] ~= GetTime()) then
|
||||
ACTIONS = ACTIONS + 1
|
||||
ACTIONS_EVENT_TIME [event] = GetTime()
|
||||
@@ -1355,7 +1355,7 @@ eventFrame:SetScript ("OnEvent", function (self, event, ...)
|
||||
if (event == "UNIT_SPELLCAST_SENT") then
|
||||
local unitID, target, castGUID, spellID = ...
|
||||
--local unitID, spell, rank, target, id = ...
|
||||
local spell = GetSpellInfo (spellID)
|
||||
local spell = GetSpellInfo(spellID)
|
||||
|
||||
if (unitID == "player") then
|
||||
CastsTable [castGUID] = {Target = target or "", Id = castGUID, CastStart = GetTime()}
|
||||
@@ -1447,7 +1447,7 @@ eventFrame:SetScript ("OnEvent", function (self, event, ...)
|
||||
elseif (event == "UNIT_SPELLCAST_SUCCEEDED") then
|
||||
--local unitID, spell, rank, id, spellID = ...
|
||||
local unitID, castGUID, spellID = ...
|
||||
local spell = GetSpellInfo (spellID)
|
||||
local spell = GetSpellInfo(spellID)
|
||||
|
||||
if (unitID == "player" and CastsTable[castGUID] and not channelspells [spell]) then
|
||||
if (CastsTable[castGUID].HasCastTime and not CastsTable[castGUID].IsChanneled) then
|
||||
@@ -1466,7 +1466,7 @@ eventFrame:SetScript ("OnEvent", function (self, event, ...)
|
||||
|
||||
end)
|
||||
|
||||
local format_time = function (v) return "-" .. format ("%.2f", v) end
|
||||
local format_time = function(v) return "-" .. format ("%.2f", v) end
|
||||
|
||||
--when the player die, show the events before the death
|
||||
function StreamOverlay.OnDeath (_, token, time, who_serial, who_name, who_flags, alvo_serial, alvo_name, alvo_flags, death_table, last_cooldown, death_at_combattime, max_health)
|
||||
@@ -1576,14 +1576,14 @@ screen_frame:SetBackdropColor (.1, .1, .1, .9)
|
||||
screen_frame:SetMovable (true)
|
||||
screen_frame:Hide()
|
||||
screen_frame:SetPoint ("center", UIParent, "center")
|
||||
screen_frame:SetScript ("OnMouseDown", function (self)
|
||||
screen_frame:SetScript ("OnMouseDown", function(self)
|
||||
if (not screen_frame.moving and not StreamOverlay.db.main_frame_locked) then
|
||||
screen_frame:StartMoving()
|
||||
screen_frame.moving = true
|
||||
screen_frame.movingAt = GetTime()
|
||||
end
|
||||
end)
|
||||
screen_frame:SetScript ("OnMouseUp", function (self)
|
||||
screen_frame:SetScript ("OnMouseUp", function(self)
|
||||
if (screen_frame.movingAt) then
|
||||
if (screen_frame.moving) then
|
||||
screen_frame.moving = false
|
||||
@@ -1599,7 +1599,7 @@ screen_frame:SetScript ("OnMouseUp", function (self)
|
||||
StreamOverlay.OpenOptionsPanel()
|
||||
end
|
||||
end)
|
||||
screen_frame:SetScript ("OnEnter", function (self)
|
||||
screen_frame:SetScript ("OnEnter", function(self)
|
||||
GameTooltip:SetOwner (self)
|
||||
GameTooltip:SetOwner (self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:AddLine ("|cFFFF7700Left Click|r: Open Options\n|cFFFF7700Slash Command|r: /streamer")
|
||||
@@ -1790,7 +1790,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
for name, fontPath in pairs(fontObjects) do
|
||||
fontTable[#fontTable+1] = {value = name, label = name, onclick = setFontFace, font = fontPath, descfont = name}
|
||||
end
|
||||
table.sort(fontTable, function (t1, t2) return t1.label < t2.label end)
|
||||
table.sort(fontTable, function(t1, t2) return t1.label < t2.label end)
|
||||
|
||||
-- select arrow
|
||||
local arrows = {
|
||||
@@ -1831,7 +1831,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
|
||||
--
|
||||
|
||||
local setWindowStrataCallback = function (_, _, strata)
|
||||
local setWindowStrataCallback = function(_, _, strata)
|
||||
StreamOverlay.db.main_frame_strata = strata
|
||||
SOF:SetFrameStrata(strata)
|
||||
StreamerOverlayDpsHpsFrame:SetFrameStrata(strata)
|
||||
@@ -1868,7 +1868,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
desc = "Can't move or interact within the frame when it's locked.",
|
||||
order = 1,
|
||||
get = function() return StreamOverlay.db.main_frame_locked end,
|
||||
set = function (self, fixedParam, val)
|
||||
set = function(self, fixedParam, val)
|
||||
StreamOverlay:SetLocked (not StreamOverlay.db.main_frame_locked)
|
||||
end,
|
||||
},
|
||||
@@ -1879,7 +1879,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
desc = "Show/Hide minimap icon.",
|
||||
order = 1,
|
||||
get = function() return not StreamOverlay.db.minimap.hide end,
|
||||
set = function (self, fixedParam, val)
|
||||
set = function(self, fixedParam, val)
|
||||
StreamOverlay.db.minimap.hide = not StreamOverlay.db.minimap.hide
|
||||
if (LDBIcon) then
|
||||
LDBIcon:Refresh ("DetailsStreamer", StreamOverlay.db.minimap)
|
||||
@@ -1890,7 +1890,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "color",
|
||||
get = function() return StreamOverlay.db.main_frame_color end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
StreamOverlay:SetBackgroundColor (r, g, b, a)
|
||||
end,
|
||||
desc = "Color used on the background.",
|
||||
@@ -1900,7 +1900,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.scale or 1 end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.scale = value; StreamOverlay.Frame:SetScale(value) end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.scale = value; StreamOverlay.Frame:SetScale(value) end,
|
||||
min = 0.6,
|
||||
max = 2,
|
||||
step = 0.1,
|
||||
@@ -1914,7 +1914,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.row_height end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.row_height = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.row_height = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = 10,
|
||||
max = 30,
|
||||
step = 1,
|
||||
@@ -1925,7 +1925,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.row_spacement end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.row_spacement = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.row_spacement = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = 8,
|
||||
max = 31,
|
||||
step = 1,
|
||||
@@ -1944,7 +1944,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "color",
|
||||
get = function() return StreamOverlay.db.row_color end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
local c = StreamOverlay.db.row_color
|
||||
c[1], c[2], c[3], c[4] = r, g, b, a
|
||||
StreamOverlay:RefreshAllBattleLineStyle()
|
||||
@@ -1958,7 +1958,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.font_size end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.font_size = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.font_size = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = 8,
|
||||
max = 32,
|
||||
step = 1,
|
||||
@@ -1977,7 +1977,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "color",
|
||||
get = function() return StreamOverlay.db.font_color end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
local c = StreamOverlay.db.font_color
|
||||
c[1], c[2], c[3], c[4] = r, g, b, a
|
||||
StreamOverlay:RefreshAllBattleLineStyle()
|
||||
@@ -1994,7 +1994,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
desc = "Show in the screen your current Dps or Hps.",
|
||||
order = 1,
|
||||
get = function() return StreamOverlay.db.per_second.enabled end,
|
||||
set = function (self, fixedParam, val)
|
||||
set = function(self, fixedParam, val)
|
||||
StreamOverlay.db.per_second.enabled = not StreamOverlay.db.per_second.enabled
|
||||
-- update hps dps frame
|
||||
StreamOverlay:UpdateDpsHpsFrameConfig()
|
||||
@@ -2012,7 +2012,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.per_second.size end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.per_second.size = value;
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.per_second.size = value;
|
||||
-- update hps dps frame
|
||||
StreamOverlay:UpdateDpsHpsFrameConfig()
|
||||
end,
|
||||
@@ -2026,7 +2026,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.per_second.scale end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.per_second.scale = value;
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.per_second.scale = value;
|
||||
-- update hps dps frame
|
||||
StreamOverlay:UpdateDpsHpsFrameConfig()
|
||||
end,
|
||||
@@ -2041,7 +2041,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.per_second.update_speed end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.per_second.update_speed = value;
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.per_second.update_speed = value;
|
||||
-- update hps dps frame
|
||||
StreamOverlay:UpdateDpsHpsFrameConfig()
|
||||
end,
|
||||
@@ -2059,7 +2059,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
desc = "Enable text shadow.",
|
||||
order = 1,
|
||||
get = function() return StreamOverlay.db.per_second.font_shadow end,
|
||||
set = function (self, fixedParam, val)
|
||||
set = function(self, fixedParam, val)
|
||||
StreamOverlay.db.per_second.font_shadow = not StreamOverlay.db.per_second.font_shadow
|
||||
-- update hps dps frame
|
||||
StreamOverlay:UpdateDpsHpsFrameConfig()
|
||||
@@ -2071,7 +2071,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.square_amount end,
|
||||
set = function (self, fixedparam, value)
|
||||
set = function(self, fixedparam, value)
|
||||
StreamOverlay.db.square_amount = value
|
||||
StreamOverlay:Refresh()
|
||||
end,
|
||||
@@ -2084,7 +2084,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.square_size end,
|
||||
set = function (self, fixedparam, value)
|
||||
set = function(self, fixedparam, value)
|
||||
StreamOverlay.db.square_size = value
|
||||
StreamOverlay:RefreshAllBoxesStyle()
|
||||
end,
|
||||
@@ -2115,7 +2115,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.arrow_size end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.arrow_size = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.arrow_size = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = 6,
|
||||
max = 32,
|
||||
step = 1,
|
||||
@@ -2126,7 +2126,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "color",
|
||||
get = function() return StreamOverlay.db.arrow_color end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
local c = StreamOverlay.db.arrow_color
|
||||
c[1], c[2], c[3], c[4] = r, g, b, a
|
||||
StreamOverlay:RefreshAllBattleLineStyle()
|
||||
@@ -2138,7 +2138,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.arrow_anchor_x end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.arrow_anchor_x = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.arrow_anchor_x = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = -16,
|
||||
max = 16,
|
||||
step = 1,
|
||||
@@ -2149,7 +2149,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.arrow_anchor_y end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.arrow_anchor_y = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.arrow_anchor_y = value; StreamOverlay:RefreshAllBattleLineStyle() end,
|
||||
min = -16,
|
||||
max = 16,
|
||||
step = 1,
|
||||
@@ -2162,7 +2162,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.main_frame_size[1] end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.main_frame_size[1] = value; StreamOverlay:RestoreWindowSizeAndLocation() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.main_frame_size[1] = value; StreamOverlay:RestoreWindowSizeAndLocation() end,
|
||||
min = 150,
|
||||
max = 800,
|
||||
step = 1,
|
||||
@@ -2173,7 +2173,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
{
|
||||
type = "range",
|
||||
get = function() return StreamOverlay.db.main_frame_size[2] end,
|
||||
set = function (self, fixedparam, value) StreamOverlay.db.main_frame_size[2] = value; StreamOverlay:RestoreWindowSizeAndLocation() end,
|
||||
set = function(self, fixedparam, value) StreamOverlay.db.main_frame_size[2] = value; StreamOverlay:RestoreWindowSizeAndLocation() end,
|
||||
min = 40,
|
||||
max = 1024,
|
||||
step = 1,
|
||||
@@ -2196,7 +2196,7 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel)
|
||||
desc = "Show or hide the spark at bars",
|
||||
order = 1,
|
||||
get = function() return StreamOverlay.db.use_spark end,
|
||||
set = function (self, fixedParam, val)
|
||||
set = function(self, fixedParam, val)
|
||||
StreamOverlay.db.use_spark = not StreamOverlay.db.use_spark
|
||||
|
||||
|
||||
@@ -2543,7 +2543,7 @@ function StreamOverlay:CreateMinimapIcon()
|
||||
type = "data source",
|
||||
icon = [[Interface\MINIMAP\MOVIERECORDINGICON]],
|
||||
|
||||
OnClick = function (self, button)
|
||||
OnClick = function(self, button)
|
||||
if (button == "LeftButton") then
|
||||
StreamOverlay.OpenOptionsPanel()
|
||||
elseif (button == "RightButton") then
|
||||
@@ -2554,7 +2554,7 @@ function StreamOverlay:CreateMinimapIcon()
|
||||
end
|
||||
end,
|
||||
|
||||
OnTooltipShow = function (tooltip)
|
||||
OnTooltipShow = function(tooltip)
|
||||
tooltip:AddLine ("Details!: Action Tracker", 1, 1, 1)
|
||||
tooltip:AddLine ("|cFFFF7700Left Click|r: open options.")
|
||||
tooltip:AddLine ("|cFFFF7700Right Click|r: hide this icon.")
|
||||
|
||||
@@ -259,7 +259,7 @@ local function CreatePluginFrames (data)
|
||||
return newrow
|
||||
end
|
||||
|
||||
local absoluteSort = function (table1, table2)
|
||||
local absoluteSort = function(table1, table2)
|
||||
if (table1[6] > table2[6]) then
|
||||
return true
|
||||
else
|
||||
@@ -267,7 +267,7 @@ local function CreatePluginFrames (data)
|
||||
end
|
||||
end
|
||||
|
||||
local relativeSort = function (table1, table2)
|
||||
local relativeSort = function(table1, table2)
|
||||
if (table1[2] > table2[2]) then
|
||||
return true
|
||||
else
|
||||
@@ -528,7 +528,7 @@ local function CreatePluginFrames (data)
|
||||
end
|
||||
|
||||
if gougeThreshold and ((not threatActor) or (threatActor[6] < gougeThreshold)) then
|
||||
local spellName, _, spellTexture = GetSpellInfo (gougeSpellId)
|
||||
local spellName, _, spellTexture = GetSpellInfo(gougeSpellId)
|
||||
thisRow._icon:SetTexture (spellTexture)
|
||||
thisRow._icon:SetTexCoord (0, 1, 0, 1)
|
||||
|
||||
@@ -736,7 +736,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return ThreatMeter.saveddata.updatespeed end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.updatespeed = value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.updatespeed = value end,
|
||||
min = 0.2,
|
||||
max = 3,
|
||||
step = 0.2,
|
||||
@@ -747,14 +747,14 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return ThreatMeter.saveddata.useplayercolor end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.useplayercolor = value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.useplayercolor = value end,
|
||||
desc = "When enabled, your bar get the following color.",
|
||||
name = "Player Color Enabled"
|
||||
},
|
||||
{
|
||||
type = "color",
|
||||
get = function() return ThreatMeter.saveddata.playercolor end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
local current = ThreatMeter.saveddata.playercolor
|
||||
current[1], current[2], current[3], current[4] = r, g, b, a
|
||||
end,
|
||||
@@ -764,7 +764,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return ThreatMeter.saveddata.useclasscolors end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.useclasscolors = value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.useclasscolors = value end,
|
||||
desc = "When enabled, threat bars uses the class color of the character.",
|
||||
name = "Use Class Colors"
|
||||
},
|
||||
@@ -774,14 +774,14 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return ThreatMeter.saveddata.usefocus end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.usefocus = value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.usefocus = value end,
|
||||
desc = "Show threat for the focus target if there's one.",
|
||||
name = "Track Focus Target (if any)"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return not ThreatMeter.saveddata.hide_pull_bar end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.hide_pull_bar = not value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.hide_pull_bar = not value end,
|
||||
desc = "Show Pull Aggro Bar",
|
||||
name = "Show Pull Aggro Bar"
|
||||
},
|
||||
@@ -805,7 +805,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return ThreatMeter.saveddata.playSound end,
|
||||
set = function (self, fixedparam, value) ThreatMeter.saveddata.playSound = value end,
|
||||
set = function(self, fixedparam, value) ThreatMeter.saveddata.playSound = value end,
|
||||
desc = "Except for tanks",
|
||||
name = "Play Audio On High Threat"
|
||||
},
|
||||
|
||||
@@ -311,7 +311,7 @@ local function CreatePluginFrames (data)
|
||||
end
|
||||
end
|
||||
|
||||
local SetTank = function (self, index)
|
||||
local SetTank = function(self, index)
|
||||
local name = Vanguard.TankList [index]
|
||||
self.tankname:SetText (Vanguard:GetOnlyName (name))
|
||||
self.tankname_string = name
|
||||
@@ -354,22 +354,22 @@ local function CreatePluginFrames (data)
|
||||
self.unitFrame.castBar:SetTexture (SharedMedia:Fetch("statusbar", Vanguard.db.tank_block_texture))
|
||||
end
|
||||
|
||||
local debuff_on_enter = function (self)
|
||||
local debuff_on_enter = function(self)
|
||||
if (self.spellid) then
|
||||
--self.texture:SetBlendMode ("ADD")
|
||||
GameTooltip:SetOwner (self, "ANCHOR_TOPLEFT")
|
||||
GameTooltip:SetSpellByID (self.spellid)
|
||||
GameTooltip:SetSpellByID(self.spellid)
|
||||
GameTooltip:Show()
|
||||
end
|
||||
end
|
||||
local debuff_on_leave = function (self)
|
||||
local debuff_on_leave = function(self)
|
||||
--self.texture:SetBlendMode ("BLEND")
|
||||
if (self.spellid) then
|
||||
GameTooltip:Hide()
|
||||
end
|
||||
end
|
||||
|
||||
local on_click = function (self, button)
|
||||
local on_click = function(self, button)
|
||||
if (button == "LeftButton") then
|
||||
Vanguard.OpenOptionsPanel()
|
||||
|
||||
@@ -928,7 +928,7 @@ end
|
||||
local build_options_panel = function()
|
||||
local options_frame = Vanguard:CreatePluginOptionsFrame ("VanguardOptionsWindow", "Vanguard Options", 1)
|
||||
|
||||
local tank_texture_set = function (_, _, value)
|
||||
local tank_texture_set = function(_, _, value)
|
||||
Vanguard.db.tank_block_texture = value;
|
||||
Vanguard:ResetBars()
|
||||
Vanguard:RefreshTanks()
|
||||
@@ -944,7 +944,7 @@ local build_options_panel = function()
|
||||
for name, texturePath in pairs (textures) do
|
||||
texTable[#texTable+1] = {value = name, label = name, iconsize = texture_icon_size, statusbar = texturePath, onclick = tank_texture_set, icon = texture_icon, texcoord = texture_texcoord}
|
||||
end
|
||||
table.sort (texTable, function (t1, t2) return t1.label < t2.label end)
|
||||
table.sort (texTable, function(t1, t2) return t1.label < t2.label end)
|
||||
|
||||
local tank_texture_menu = texTable
|
||||
|
||||
@@ -969,14 +969,14 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return Vanguard.db.show_inc_bars end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.show_inc_bars = value; Vanguard:ResetBars() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.show_inc_bars = value; Vanguard:ResetBars() end,
|
||||
--desc = "Shows the incoming heal vs incoming damage.",
|
||||
name = "Show Incoming Damage"
|
||||
},
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.bar_height end,
|
||||
set = function (self, fixedparam, value)
|
||||
set = function(self, fixedparam, value)
|
||||
Vanguard.db.bar_height = value
|
||||
Vanguard:ResetBars()
|
||||
Vanguard:RefreshTanks()
|
||||
@@ -992,26 +992,26 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return Vanguard.db.show_health_bar end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.show_health_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.show_health_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
name = "Show Health Bar"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return Vanguard.db.show_cast_bar end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.show_cast_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.show_cast_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
name = "Show Cast Bar"
|
||||
},
|
||||
{
|
||||
type = "toggle",
|
||||
get = function() return Vanguard.db.show_power_bar end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.show_power_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.show_power_bar = value; Vanguard:RefreshTanks(); Vanguard:ResetBars() end,
|
||||
name = "Show Power Bar"
|
||||
},
|
||||
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.tank_block_size end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.tank_block_size = value; Vanguard:RefreshTanks() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.tank_block_size = value; Vanguard:RefreshTanks() end,
|
||||
min = 70,
|
||||
max = 250,
|
||||
step = 1,
|
||||
@@ -1021,7 +1021,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.tank_block_size_height end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.tank_block_size_height = value; Vanguard:RefreshTanks() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.tank_block_size_height = value; Vanguard:RefreshTanks() end,
|
||||
min = 10,
|
||||
max = 100,
|
||||
step = 1,
|
||||
@@ -1030,7 +1030,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.tank_block_castbar_size_height end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.tank_block_castbar_size_height = value; Vanguard:RefreshTanks() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.tank_block_castbar_size_height = value; Vanguard:RefreshTanks() end,
|
||||
min = 10,
|
||||
max = 60,
|
||||
step = 1,
|
||||
@@ -1039,7 +1039,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.tank_block_powerbar_size_height end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.tank_block_powerbar_size_height = value; Vanguard:RefreshTanks() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.tank_block_powerbar_size_height = value; Vanguard:RefreshTanks() end,
|
||||
min = 10,
|
||||
max = 60,
|
||||
step = 1,
|
||||
@@ -1048,7 +1048,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "color",
|
||||
get = function() return Vanguard.db.tank_block_color end,
|
||||
set = function (self, r, g, b, a)
|
||||
set = function(self, r, g, b, a)
|
||||
local current = Vanguard.db.tank_block_color;
|
||||
current[1], current[2], current[3], current[4] = r, g, b, a;
|
||||
Vanguard:RefreshTanks()
|
||||
@@ -1061,7 +1061,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.aura_offset_y end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.aura_offset_y = value; Vanguard.RefreshWidgets() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.aura_offset_y = value; Vanguard.RefreshWidgets() end,
|
||||
min = -20,
|
||||
max = 20,
|
||||
step = 1,
|
||||
@@ -1070,7 +1070,7 @@ local build_options_panel = function()
|
||||
{
|
||||
type = "range",
|
||||
get = function() return Vanguard.db.aura_timer_text_size end,
|
||||
set = function (self, fixedparam, value) Vanguard.db.aura_timer_text_size = value; Vanguard.RefreshWidgets() end,
|
||||
set = function(self, fixedparam, value) Vanguard.db.aura_timer_text_size = value; Vanguard.RefreshWidgets() end,
|
||||
min = 6,
|
||||
max = 24,
|
||||
step = 1,
|
||||
|
||||
Reference in New Issue
Block a user