Release Candidate 3

This commit is contained in:
Tercio Jose
2022-11-21 20:57:39 -03:00
parent 4a8492b984
commit dde1bb28b8
10 changed files with 391 additions and 195 deletions
+186 -82
View File
@@ -1,3 +1,6 @@
--parei (20/11) declarando o header, precisa agora modificar a config do header quando atualizar
--fazer uma função para alterar a config header.columns para adicionar ou remover attributos
--próximo: ao criar uma janela AllInOne, precisa criar uma nova instancia no Details!
--na tabela de configuração precisa dizer que é uma all in one e o details vai chamar esse arquivo pra atualizar
@@ -12,6 +15,37 @@
local LibWindow = LibStub("LibWindow-1.1")
local df = DetailsFramework
local detailsFramework = DetailsFramework
local Details = Details
local addonName, DetailsPrivite = ...
local defaultWindowSettings = {
isOpened = true,
libwindow = {},
width = 350,
height = 150,
titlebar = {
--done here: all options can be retrived from details! settings
},
header = {
show_name = true, --false | on for debug
show_icon = true,
auto_size = true, --false | on for debug
columns = { --damage, dps, percent
{1, 1},
{1, 2},
{1, 1, "%"}
},
},
}
--namespace
DetailsPrivite.AllInOneWindow = {}
local attributeCodes = {
}
local textureCoords = {
show_mainmenu = {0/256, 32/256, 0, 1},
@@ -233,7 +267,13 @@
end,
}
local titleBarMixin = {
local headerMixin = {
Constructor = function(header)
end,
}
local titleBarMixin = { --~titlebar
--run when the title bar is created
Constructor = function(titleBar)
titleBar:EnableMouse(false)
@@ -244,6 +284,12 @@
--create the elapsed time string
titleBar:CreateCombatTimeString()
titleBar:SetCombatTimeText("02:36") --debug
--create titlebar texture
titleBar:CreateTexture()
--create header
titleBar:CreateHeader()
end,
GetSettings = function(titleBar)
@@ -287,6 +333,43 @@
end,
SetTexture = function(titleBar, texturePath, textureCoord, vertexColor, maskTexture)
if (texturePath) then
titleBar.BackgroundTexture:SetTexture(texturePath)
if (maskTexture) then
titleBar.BackgroundTexture:SetMask(maskTexture)
else
titleBar.BackgroundTexture:SetMask("")
end
if (vertexColor) then
local r, g, b, a = detailsFramework:ParseColors(vertexColor)
titleBar.BackgroundTexture:SetVertexColor(r, g, b, a)
else
titleBar.BackgroundTexture:SetVertexColor(1, 1, 1, 1)
end
if (textureCoord) then
titleBar.BackgroundTexture:SetTexCoord(unpack(textureCoord))
else
titleBar.BackgroundTexture:SetTexCoord(0, 1, 0, 1)
end
else
titleBar.BackgroundTexture:SetTexture("")
end
end,
CreateTexture = function(titleBar)
local texture = titleBar:CreateTexture("$parentBackgroundTexture", "border")
titleBar.BackgroundTexture = texture
return texture
end,
GetTexture = function(titleBar)
return titleBar.BackgroundTexture
end,
CreateCombatTimeString = function(titleBar)
local combatTimeString = titleBar:CreateFontString("$parentCombatTime", "overlay", "GameFontNormal")
titleBar.CombatTime = combatTimeString
@@ -312,34 +395,37 @@
end,
Refresh = function(titleBar)
local config = titleBar:GetSettings()
local settings = titleBar:GetSettings()
--height
local height = config.titlebar.height
titleBar:SetHeight(height)
--title bar is always shown
settings.titlebar_shown = true
--titlebar_shown = false,
--titlebar_height = 16,
--titlebar_texture = "Details Serenity",
--titlebar_texture_color = {.2, .2, .2, 0.8},
if (settings.titlebar_shown) then
titleBar:Show()
--height
local height = settings.titlebar_height
titleBar:SetHeight(height)
titleBar:SetTexture(settings.titlebar_texture, nil, settings.titlebar_texture_color)
local header = titleBar:GetHeader()
else
titleBar:Hide()
end
local timerShown = settings.timer_show
local timerShown = config.timer_show
local menuSupportFrame = titleBar:GetMenuSupportFrame()
menuSupportFrame:Update()
--[=[
--height = 20,
timer_show = true,
timer_ignore_openworld = true,
timer_only_encounters = false,
text_size = 10,
text_font = "Friz Quadrata TT",
text_outline = "NONE",
text_shadow = {
enabled = false,
color = {1, 1, 1, 1},
x_offset = 1,
y_offset = -1,
},
--]=]
end,
GetMenuSupportFrame = function(titleBar)
@@ -355,6 +441,34 @@
return menuSupportFrame
end,
CreateHeader = function(titleBar)
local defaultHeaderTable = {
{text = "", width = 20}, --spec icon
{text = "Actor Name", width = 60, attribute = {name = true}},
{text = "Damage Done", width = 60, attribute = {1, 1}},
{text = "DPS", width = 50, attribute = {1, 2}},
{text = "Damage %", width = 50, attribute = {percent = true}},
{text = "Healing Done", width = 60, attribute = {1, 1}},
{text = "HPS", width = 50, attribute = {1, 2}},
{text = "Healing %", width = 50, attribute = {percent = true}},
}
local defaultHeaderOptions = {
padding = 2,
}
local headerFrame = DetailsFramework:CreateHeader(titleBar, defaultHeaderTable, defaultHeaderOptions)
titleBar.Header = headerFrame
detailsFramework:Mixin(headerFrame, headerMixin)
headerFrame:Constructor()
return headerFrame
end,
GetHeader = function(titleBar)
return titleBar.Header
end,
}
local AllInOneWindowMixin = {
@@ -428,50 +542,6 @@
--override
titleBarMixin.SetSetting = AllInOneWindowMixin.SetSetting
local defaultWindowSettings = {
isOpened = true,
libwindow = {},
width = 350, --
height = 150, --
titlebar = {
--done here: all options can be retrived from details! settings
menu_buttons = {},
},
}
--create only the frame for a new window ~newwindow ñewwindow
function Details.AllInOneWindow.CreateFrame(settingId)
--create the new window
local newWindowFrame = CreateFrame("frame", "DetailsNewWindow" .. settingId, UIParent, "BackdropTemplate")
newWindowFrame.id = settingId
df:Mixin(newWindowFrame, AllInOneWindowMixin)
newWindowFrame:SetPoint("center", UIParent, "center", -400, 0)
--create the title bar
newWindowFrame:CreateTitleBar()
--creare header
--create scroll bar
--create resizers
--add the frame to the frame pool
local frameId = Details.AllInOneWindow.AddFrame(newWindowFrame)
return newWindowFrame
end
--[=[
lib window need to be on the AllInOneWindow:Update() so it can register the new libwindow table on profile change
--register on libwindow
@@ -497,30 +567,58 @@
combatTimeString:SetPoint("left", titleBar, "left", 2, 0)
--]=]
--create only the frame for a new window ~newwindow ñewwindow
function Details.AllInOneWindow.CreateFrame(settingId)
--create the new window
local newFrame = CreateFrame("frame", "DetailsNewWindow" .. settingId, UIParent, "BackdropTemplate")
newFrame.id = settingId
df:Mixin(newFrame, AllInOneWindowMixin)
newFrame:SetPoint("center", UIParent, "center", -400, 0)
--create the title bar
newFrame:CreateTitleBar()
--create scroll bar
--create resizers
--add the frame to the frame pool
local frameId = Details.AllInOneWindow.AddFrame(newFrame)
return newFrame
end
--Entry Point to create a new window, must pass here at least once
--create the settings for a new window plus the frames
function Details:CreateNewAllInOneWindow()
--get profile settings
local profileSettings = Details:GetSettingsForAll_AllInOneWindows()
--get what is the ID if a new window is added
local nextSettingId = Details.AllInOneWindow.GetNextSettingID()
function Details.AllInOneWindow.CreateNew()
local newSettings = {}
--copy the settings prototype
local windowSettings = df.table.deploy({}, defaultWindowSettings)
df.table.deploy(newSettings, defaultWindowSettings)
--copy the settings from a skin
local skinTable = Details:GetSkin("Minimalistic")
df.table.deploy(newSettings, skinTable.instance_cprops)
--add the new settings table into the profile where the new window settings are stored
local settingId = Details.AllInOneWindow.AddSetting(windowSettings)
local settingId = Details.AllInOneWindow.AddSetting(newSettings)
--create window body
local windowFrame = Details.AllInOneWindow.CreateFrame(settingId)
--reload all windows
Details.AllInOneWindow.ReloadAll()
return windowFrame
return settingId
end
--assuming this will run when the profile is loaded
--assuming there will be only one All In One Window
--used when a profile finished loading
--CURRENT THE ONLY ENTRY POINT
--entry point for loading a window on profile change, on Initialization or when a new window is created
--at the moment of details! creation, there's zero settings available
function Details.AllInOneWindow.ReloadAll()
--get the amount of settings
local numSettings = Details.AllInOneWindow.GetNumSettings()
@@ -539,6 +637,12 @@
end
frameIndex = frameIndex + 1
windowFrame:SetSettingID(settingId)
--libwindow
LibWindow.RegisterConfig(windowFrame, windowSetting.libwindow)
LibWindow.RestorePosition(windowFrame)
LibWindow.MakeDraggable(windowFrame)
--setup the frame using the settings
windowFrame:Refresh()
end
+78 -64
View File
@@ -3,50 +3,55 @@
local Details = _G.Details
local DF = _G.DetailsFramework
local openRaidLib = LibStub:GetLibrary("LibOpenRaid-1.0", true)
local addonName, Details222 = ...
--namespace
Details.CooldownTracking = {
Details222.CooldownTracking = {
cooldownPanels = {},
}
--return truen if the cooldown tracker is enabled
function Details.CooldownTracking.IsEnabled()
function Details222.CooldownTracking.IsEnabled()
return Details.ocd_tracker.enabled
end
--return a hash table with all cooldown panels created [filterName] = Frame
function Details.CooldownTracking.GetAllPanels()
return Details.CooldownTracking.cooldownPanels
function Details222.CooldownTracking.GetAllPanels()
return Details222.CooldownTracking.cooldownPanels
end
--enable the cooldown tracker
function Details.CooldownTracking.EnableTracker()
function Details222.CooldownTracking.EnableTracker()
if (not Details.ocd_tracker.show_options) then
return
end
Details.ocd_tracker.enabled = true
--register callbacks with the openRaidLib
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownListUpdate", "OnReceiveUnitFullCooldownList")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownUpdate", "OnReceiveSingleCooldownUpdate")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownListWipe", "OnCooldownListWipe")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownAdded", "OnCooldownAdded")
openRaidLib.RegisterCallback(Details.CooldownTracking, "CooldownRemoved", "OnCooldownRemoved")
openRaidLib.RegisterCallback(Details222.CooldownTracking, "CooldownListUpdate", "OnReceiveUnitFullCooldownList")
openRaidLib.RegisterCallback(Details222.CooldownTracking, "CooldownUpdate", "OnReceiveSingleCooldownUpdate")
openRaidLib.RegisterCallback(Details222.CooldownTracking, "CooldownListWipe", "OnCooldownListWipe")
openRaidLib.RegisterCallback(Details222.CooldownTracking, "CooldownAdded", "OnCooldownAdded")
openRaidLib.RegisterCallback(Details222.CooldownTracking, "CooldownRemoved", "OnCooldownRemoved")
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end
--disable the cooldown tracker
function Details.CooldownTracking.DisableTracker()
function Details222.CooldownTracking.DisableTracker()
Details.ocd_tracker.enabled = false
--hide the panel
local allPanels = Details.CooldownTracking.GetAllPanels()
local allPanels = Details222.CooldownTracking.GetAllPanels()
for filterName, frameObject in pairs(allPanels) do
frameObject:Hide()
end
--unregister callbacks
openRaidLib.UnregisterCallback(Details.CooldownTracking, "CooldownListUpdate", "OnReceiveUnitFullCooldownList")
openRaidLib.UnregisterCallback(Details.CooldownTracking, "CooldownUpdate", "OnReceiveSingleCooldownUpdate")
openRaidLib.UnregisterCallback(Details.CooldownTracking, "CooldownListWipe", "OnCooldownListWipe")
openRaidLib.UnregisterCallback(Details222.CooldownTracking, "CooldownListUpdate", "OnReceiveUnitFullCooldownList")
openRaidLib.UnregisterCallback(Details222.CooldownTracking, "CooldownUpdate", "OnReceiveSingleCooldownUpdate")
openRaidLib.UnregisterCallback(Details222.CooldownTracking, "CooldownListWipe", "OnCooldownListWipe")
end
@@ -55,9 +60,9 @@ end
--@unitId: which unit got updated
--@unitCooldows: a table with [spellId] = cooldownInfo
--@allUnitsCooldowns: a table containing all units [unitName] = {[spellId] = cooldownInfo}
function Details.CooldownTracking.OnReceiveUnitFullCooldownList(unitId, unitCooldows, allUnitsCooldowns)
function Details222.CooldownTracking.OnReceiveUnitFullCooldownList(unitId, unitCooldows, allUnitsCooldowns)
--print("|cFFFFFF00received full cooldown list|r from:", unitId)
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end
--callback on the event 'CooldownUpdate', this is triggered when a player uses a cooldown or a cooldown got updated (time left reduced, etc)
@@ -66,12 +71,12 @@ end
--@cooldownInfo: cooldown information table to be passed with other functions
--@unitCooldows: a table with [spellId] = cooldownInfo
--@allUnitsCooldowns: a table containing all units [unitName] = {[spellId] = cooldownInfo}
function Details.CooldownTracking.OnReceiveSingleCooldownUpdate(unitId, spellId, cooldownInfo, unitCooldows, allUnitsCooldowns)
function Details222.CooldownTracking.OnReceiveSingleCooldownUpdate(unitId, spellId, cooldownInfo, unitCooldows, allUnitsCooldowns)
--TODO: make a function inside lib open raid to get the filters the cooldown is in
--I dont known which panel will be used
--need to get the filter name which that spell belong
--and then check if that filter is enabled
local allPanels = Details.CooldownTracking.GetAllPanels()
local allPanels = Details222.CooldownTracking.GetAllPanels()
local screenPanel = allPanels["main"] --this should be replaced with the cooldown panel
local gotUpdated = false
@@ -92,33 +97,33 @@ end
end
if (not gotUpdated) then
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end
end
--when the list of cooldowns got wiped, usually happens when the player left a group
--@allUnitsCooldowns: a table containing all units [unitName] = {[spellId] = cooldownInfo}
function Details.CooldownTracking.OnCooldownListWipe(allUnitsCooldowns)
Details.CooldownTracking.RefreshCooldownFrames()
function Details222.CooldownTracking.OnCooldownListWipe(allUnitsCooldowns)
Details222.CooldownTracking.RefreshCooldownFrames()
end
--when a cooldown has been added to an unit
function Details.CooldownTracking.OnCooldownAdded(unitId, spellId, cooldownInfo, unitCooldows, allUnitsCooldowns)
function Details222.CooldownTracking.OnCooldownAdded(unitId, spellId, cooldownInfo, unitCooldows, allUnitsCooldowns)
--here could update the cooldown of the unit, but I'm too lazy so it update all units
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end
--when a cooldown has been removed from an unit
function Details.CooldownTracking.OnCooldownRemoved(unitId, spellId, unitCooldows, allUnitsCooldowns)
Details.CooldownTracking.RefreshCooldownFrames()
function Details222.CooldownTracking.OnCooldownRemoved(unitId, spellId, unitCooldows, allUnitsCooldowns)
Details222.CooldownTracking.RefreshCooldownFrames()
end
--Frames
--hide all bars created
function Details.CooldownTracking.HideAllBars(filterName)
function Details222.CooldownTracking.HideAllBars(filterName)
filterName = filterName or "main"
local allPanels = Details.CooldownTracking.GetAllPanels()
local allPanels = Details222.CooldownTracking.GetAllPanels()
for _, bar in ipairs(allPanels[filterName].bars) do
bar:ClearAllPoints()
bar:Hide()
@@ -131,7 +136,7 @@ end
end
--get a cooldown frame
function Details.CooldownTracking.GetOrCreateNewCooldownFrame(screenPanel, frameId)
function Details222.CooldownTracking.GetOrCreateNewCooldownFrame(screenPanel, frameId)
local cooldownFrame = screenPanel.bars[frameId]
if (cooldownFrame) then
return cooldownFrame
@@ -157,12 +162,12 @@ end
if (eventFrame.scheduleRosterUpdate) then
return
end
eventFrame.scheduleRosterUpdate = C_Timer.NewTimer(1, Details.CooldownTracking.RefreshCooldownFrames)
eventFrame.scheduleRosterUpdate = C_Timer.NewTimer(1, Details222.CooldownTracking.RefreshCooldownFrames)
end
end)
--create the screen panel, goes into the UIParent and show cooldowns
function Details.CooldownTracking.CreateScreenFrame(filterName)
function Details222.CooldownTracking.CreateScreenFrame(filterName)
filterName = filterName or "main"
local frameName = "DetailsOnlineCDTrackerScreenPanel" .. filterName
local cooldownPanel = CreateFrame("frame", frameName, UIParent, "BackdropTemplate")
@@ -184,7 +189,7 @@ end
cooldownPanel.playerCache = {}
cooldownPanel.statusBarFrameIndex = 1
local allPanels = Details.CooldownTracking.GetAllPanels()
local allPanels = Details222.CooldownTracking.GetAllPanels()
allPanels[filterName] = cooldownPanel
return cooldownPanel
@@ -192,7 +197,7 @@ end
function Details.CooldownTracking.SetupCooldownFrame(cooldownFrame)
function Details222.CooldownTracking.SetupCooldownFrame(cooldownFrame)
local spellIcon = GetSpellTexture(cooldownFrame.spellId)
if (spellIcon) then
cooldownFrame:SetIcon(spellIcon, .1, .9, .1, .9)
@@ -204,16 +209,16 @@ end
end
end
function Details.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
function Details222.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
if (unitCooldowns) then
local unitInfo = openRaidLib.GetUnitInfo(unitId)
local filterName = false
if (unitInfo) then
local allPanels = Details.CooldownTracking.GetAllPanels()
local allPanels = Details222.CooldownTracking.GetAllPanels()
local screenPanel = allPanels[filterName or "main"]
for spellId, cooldownInfo in pairs(unitCooldowns) do
--get a bar
local cooldownFrame = Details.CooldownTracking.GetOrCreateNewCooldownFrame(screenPanel, screenPanel.statusBarFrameIndex)
local cooldownFrame = Details222.CooldownTracking.GetOrCreateNewCooldownFrame(screenPanel, screenPanel.statusBarFrameIndex)
cooldownFrame.cooldownInfo = cooldownInfo
local isReady, normalizedPercent, timeLeft, charges, minValue, maxValue, currentValue = openRaidLib.GetCooldownStatusFromCooldownInfo(cooldownInfo)
@@ -222,7 +227,7 @@ end
cooldownFrame.unitName = unitInfo.nameFull
--setup the cooldown in the bar
Details.CooldownTracking.SetupCooldownFrame(cooldownFrame)
Details222.CooldownTracking.SetupCooldownFrame(cooldownFrame)
--add the cooldown into the organized by class table
tinsert(cooldownsOrganized[unitInfo.classId], cooldownFrame)
--iterate to the next cooldown frame
@@ -237,12 +242,12 @@ end
end
--update cooldown frames based on the amount of players in the group or raid
function Details.CooldownTracking.RefreshCooldownFrames(filterName)
local allPanels = Details.CooldownTracking.GetAllPanels()
function Details222.CooldownTracking.RefreshCooldownFrames(filterName)
local allPanels = Details222.CooldownTracking.GetAllPanels()
local screenPanel = allPanels[filterName or "main"]
if (not screenPanel) then
screenPanel = Details.CooldownTracking.CreateScreenFrame()
screenPanel = Details222.CooldownTracking.CreateScreenFrame()
end
if (Details.ocd_tracker.framme_locked) then
@@ -251,7 +256,7 @@ end
screenPanel:EnableMouse(true)
end
Details.CooldownTracking.HideAllBars()
Details222.CooldownTracking.HideAllBars()
screenPanel.scheduleRosterUpdate = nil
wipe(screenPanel.playerCache)
screenPanel.statusBarFrameIndex = 1
@@ -289,24 +294,24 @@ end
for i = 1, numGroupMembers do
local unitId = "raid"..i
local unitCooldowns = openRaidLib.GetUnitCooldowns(unitId, filter)
Details.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
Details222.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
end
elseif (IsInGroup()) then
for i = 1, numGroupMembers - 1 do
local unitId = "party"..i
local unitCooldowns = openRaidLib.GetUnitCooldowns(unitId, filter)
Details.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
Details222.CooldownTracking.ProcessUnitCooldowns(unitId, unitCooldowns, cooldownsOrganized)
end
--player
local unitCooldowns = openRaidLib.GetUnitCooldowns("player", filter)
Details.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized)
Details222.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized)
else
--player
local unitCooldowns = openRaidLib.GetUnitCooldowns("player", filter)
Details.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized)
Details222.CooldownTracking.ProcessUnitCooldowns("player", unitCooldowns, cooldownsOrganized)
end
for classId = 1, 13 do --13 classes
@@ -364,6 +369,9 @@ end
--initialize the cooldown options window and embed it to Details! options panel
function Details:InitializeCDTrackerWindow()
if (not Details.ocd_tracker.show_options) then
return
end
local DetailsCDTrackerWindow = CreateFrame("frame", "DetailsCDTrackerWindow", UIParent, "BackdropTemplate")
DetailsCDTrackerWindow:SetSize(700, 480)
DetailsCDTrackerWindow.Frame = DetailsCDTrackerWindow
@@ -375,18 +383,21 @@ end
_G.DetailsPluginContainerWindow.EmbedPlugin(DetailsCDTrackerWindow, DetailsCDTrackerWindow, true)
function DetailsCDTrackerWindow.RefreshWindow()
Details.OpenCDTrackerWindow()
Details222.CooldownTracking.OpenCDTrackerWindow()
end
--check if is enabled at startup
if (Details.CooldownTracking.IsEnabled()) then
Details.CooldownTracking.EnableTracker()
if (Details222.CooldownTracking.IsEnabled()) then
Details222.CooldownTracking.EnableTracker()
end
DetailsCDTrackerWindow:Hide()
end
function Details.OpenCDTrackerWindow()
function Details222.CooldownTracking.OpenCDTrackerWindow()
if (not Details.ocd_tracker.show_options) then
return
end
--check if the window exists, if not create it
if (not _G.DetailsCDTrackerWindow or not _G.DetailsCDTrackerWindow.Initialized) then
@@ -408,9 +419,12 @@ end
get = function() return Details.ocd_tracker.enabled end,
set = function(self, fixedparam, value)
if (value) then
Details.CooldownTracking.EnableTracker()
if (not Details.ocd_tracker.show_options) then
return
end
Details222.CooldownTracking.EnableTracker()
else
Details.CooldownTracking.DisableTracker()
Details222.CooldownTracking.DisableTracker()
end
end,
name = "Enable Experimental Cooldown Tracker",
@@ -422,7 +436,7 @@ end
get = function() return Details.ocd_tracker.show_conditions.only_in_group end,
set = function(self, fixedparam, value)
Details.ocd_tracker.show_conditions.only_in_group = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Only in Group",
desc = "Only in Group",
@@ -433,7 +447,7 @@ end
get = function() return Details.ocd_tracker.show_conditions.only_inside_instance end,
set = function(self, fixedparam, value)
Details.ocd_tracker.show_conditions.only_inside_instance = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Only Inside Instances",
desc = "Only Inside Instances",
@@ -443,7 +457,7 @@ end
get = function() return Details.ocd_tracker.framme_locked end,
set = function(self, fixedparam, value)
Details.ocd_tracker.framme_locked = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Lock Frame",
desc = "Lock Frame",
@@ -456,7 +470,7 @@ end
get = function() return Details.ocd_tracker.filters["defensive-raid"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["defensive-raid"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Raid",
desc = "Exanple: druid tranquility.",
@@ -467,7 +481,7 @@ end
get = function() return Details.ocd_tracker.filters["defensive-target"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["defensive-target"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Target",
desc = "Exanple: priest pain suppression.",
@@ -478,7 +492,7 @@ end
get = function() return Details.ocd_tracker.filters["defensive-personal"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["defensive-personal"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Defensive: Personal",
desc = "Exanple: mage ice block.",
@@ -489,7 +503,7 @@ end
get = function() return Details.ocd_tracker.filters["ofensive"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["ofensive"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Offensive Cooldowns",
desc = "Exanple: priest power infusion.",
@@ -500,7 +514,7 @@ end
get = function() return Details.ocd_tracker.filters["utility"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["utility"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Utility Cooldowns",
desc = "Exanple: druid roar.",
@@ -511,7 +525,7 @@ end
get = function() return Details.ocd_tracker.filters["interrupt"] end,
set = function(self, fixedparam, value)
Details.ocd_tracker.filters["interrupt"] = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
name = "Interrupt Cooldowns",
desc = "Exanple: rogue kick.",
@@ -524,7 +538,7 @@ end
get = function() return Details.ocd_tracker.width end,
set = function(self, fixedparam, value)
Details.ocd_tracker.width = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
min = 10,
max = 200,
@@ -538,7 +552,7 @@ end
get = function() return Details.ocd_tracker.height end,
set = function(self, fixedparam, value)
Details.ocd_tracker.height = value
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
min = 10,
max = 200,
@@ -552,7 +566,7 @@ end
get = function() return Details.ocd_tracker.lines_per_column end,
set = function(self, fixedparam, value)
Details.ocd_tracker.lines_per_column = floor(value)
Details.CooldownTracking.RefreshCooldownFrames()
Details222.CooldownTracking.RefreshCooldownFrames()
end,
min = 1,
max = 30,