You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

647 lines
22 KiB

4 years ago
--[=[
Details startup file
The function Details:StartMeUp() is called when the addon is fully loaded with saved variables and profiles
--]=]
4 years ago
local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details")
local _
local tocName, Details222 = ...
4 years ago
--start funtion
function Details:StartMeUp()
if (Details.AndIWillNeverStop) then
return
end
Details.AndIWillNeverStop = true
--note: this runs after profile loaded
3 years ago
--set default time for arena and bg to be the Details! load time in case the client loads mid event
Details.lastArenaStartTime = GetTime()
Details.lastBattlegroundStartTime = GetTime()
4 years ago
--save the time when the addon finished loading
Details.AddOnStartTime = GetTime()
function Details.GetStartupTime()
return Details.AddOnStartTime or GetTime()
end
C_Timer.After(3, function()
--load custom spells on login
Details:FillUserCustomSpells()
end)
4 years ago
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 years ago
--row single click, this determines what happen when the user click on a bar
4 years ago
3 years ago
--single click row function replace
4 years ago
--damage, dps, damage taken, friendly fire
Details.row_singleclick_overwrite[1] = {true, true, true, true, Details.atributo_damage.ReportSingleFragsLine, Details.atributo_damage.ReportEnemyDamageTaken, Details.atributo_damage.ReportSingleVoidZoneLine, Details.atributo_damage.ReportSingleDTBSLine}
4 years ago
--healing, hps, overheal, healing taken
Details.row_singleclick_overwrite[2] = {true, true, true, true, false, Details.atributo_heal.ReportSingleDamagePreventedLine}
4 years ago
--mana, rage, energy, runepower
Details.row_singleclick_overwrite[3] = {true, true, true, true} --missing other resources and alternate power
4 years ago
--cc breaks, ress, interrupts, dispells, deaths
Details.row_singleclick_overwrite[4] = {true, true, true, true, Details.atributo_misc.ReportSingleDeadLine, Details.atributo_misc.ReportSingleCooldownLine, Details.atributo_misc.ReportSingleBuffUptimeLine, Details.atributo_misc.ReportSingleDebuffUptimeLine}
3 years ago
function Details:ReplaceRowSingleClickFunction(attribute, subAttribute, func)
4 years ago
assert(type(attribute) == "number" and attribute >= 1 and attribute <= 4, "ReplaceRowSingleClickFunction expects a attribute index on #1 argument.")
3 years ago
assert(type(subAttribute) == "number" and subAttribute >= 1 and subAttribute <= 10, "ReplaceRowSingleClickFunction expects a sub attribute index on #2 argument.")
4 years ago
assert(type(func) == "function", "ReplaceRowSingleClickFunction expects a function on #3 argument.")
3 years ago
Details.row_singleclick_overwrite[attribute][subAttribute] = func
4 years ago
return true
end
3 years ago
Details.click_to_report_color = {1, 0.8, 0, 1}
3 years ago
--death tooltip function, exposed for 3rd party customization
--called when the mouse hover over a player line when displaying deaths
--the function called receives 4 parameters: instanceObject, lineFrame, combatObject, deathTable
--@instance: the details! object of the window showing the deaths
--@lineFrame: the frame to setpoint your frame
--@combatObject: the combat itself
3 years ago
--@deathTable: a table containing all the information about the player's death
Details.ShowDeathTooltipFunction = Details.ShowDeathTooltip
4 years ago
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
3 years ago
--initialize
3 years ago
--plugin container
Details:CreatePluginWindowContainer()
Details:InitializeForge() --to install into the container plugin
Details:InitializeRaidHistoryWindow()
--Details:InitializeOptionsWindow()
3 years ago
C_Timer.After(2, function()
Details:InitializeAuraCreationWindow()
3 years ago
end)
Details:InitializeCustomDisplayWindow()
Details:InitializeAPIWindow()
Details:InitializeRunCodeWindow()
Details:InitializePlaterIntegrationWindow()
Details:InitializeMacrosWindow()
3 years ago
if (Details.ocd_tracker.show_options) then
Details:InitializeCDTrackerWindow()
3 years ago
end
--/run Details.ocd_tracker.show_options = true; ReloadUI()
3 years ago
--custom window
Details.custom = Details.custom or {}
3 years ago
--micro button alert
--"MainMenuBarMicroButton" has been removed on 9.0
Details.MicroButtonAlert = CreateFrame("frame", "DetailsMicroButtonAlert", UIParent)
Details.MicroButtonAlert.Text = Details.MicroButtonAlert:CreateFontString(nil, "overlay", "GameFontNormal")
Details.MicroButtonAlert.Text:SetPoint("center")
Details.MicroButtonAlert:Hide()
3 years ago
--actor details window
Details.BreakdownWindowFrame = Details:CreateBreakdownWindow()
Details.FadeHandler.Fader(Details.BreakdownWindowFrame, 1)
3 years ago
--copy and paste window
Details:CreateCopyPasteWindow()
Details.CreateCopyPasteWindow = nil
3 years ago
--start instances
if (Details:GetNumInstancesAmount() == 0) then
Details:CreateInstance()
3 years ago
end
Details:GetLowerInstanceNumber()
3 years ago
--start time machine
Details222.TimeMachine.Start()
3 years ago
--update abbreviation shortcut
Details.atributo_damage:UpdateSelectedToKFunction()
Details.atributo_heal:UpdateSelectedToKFunction()
Details.atributo_energy:UpdateSelectedToKFunction()
Details.atributo_misc:UpdateSelectedToKFunction()
Details.atributo_custom:UpdateSelectedToKFunction()
3 years ago
--start instances updater
Details:CheckSwitchOnLogon()
3 years ago
function Details:ScheduledWindowUpdate(bIsForced)
if (not bIsForced and Details.in_combat) then
3 years ago
return
4 years ago
end
3 years ago
Details.scheduled_window_update = nil
Details:RefreshMainWindow(-1, true)
end
function Details:ScheduleWindowUpdate(time, bIsForced)
3 years ago
if (Details.scheduled_window_update) then
Details.Schedules.Cancel(Details.scheduled_window_update)
Details.scheduled_window_update = nil
4 years ago
end
Details.scheduled_window_update = Details.Schedules.NewTimer(time or 1, Details.ScheduledWindowUpdate, Details, bIsForced)
3 years ago
end
Details:RefreshMainWindow(-1, true)
3 years ago
Details:RefreshUpdater()
for instanceId = 1, Details:GetNumInstances() do
local instance = Details:GetInstance(instanceId)
3 years ago
if (instance:IsEnabled()) then
Details.Schedules.NewTimer(1, Details.RefreshBars, Details, instance)
Details.Schedules.NewTimer(1, Details.InstanceReset, Details, instance)
Details.Schedules.NewTimer(1, Details.InstanceRefreshRows, Details, instance)
end
end
function Details:RefreshAfterStartup()
3 years ago
--repair nicknames as nicknames aren't saved within the actor when leaving the game
if (not Details.ignore_nicktag) then
local currentCombat = Details:GetCurrentCombat()
local containerDamage = currentCombat:GetContainer(DETAILS_ATTRIBUTE_DAMAGE)
for _, actorObject in containerDamage:ListActors() do
--get the actor nickname
local nickname = Details:GetNickname(actorObject:Name(), false, true)
if (nickname and type(nickname) == "string" and nickname:len() >= 2) then
actorObject:SetDisplayName(nickname)
end
4 years ago
end
end
3 years ago
local refreshAllInstances = -1
local forceRefresh = true
Details:RefreshMainWindow(refreshAllInstances, forceRefresh)
3 years ago
local lowerInstance = Details:GetLowerInstanceNumber()
for id = 1, Details:GetNumInstances() do
local instance = Details:GetInstance(id)
if (instance:IsEnabled()) then
--refresh wallpaper
if (instance.wallpaper.enabled) then
instance:InstanceWallpaper(true)
else
instance:InstanceWallpaper(false)
end
--refresh desaturated icons if is lower instance because plugins shall have installed their icons at this point
if (id == lowerInstance) then
instance:DesaturateMenu()
instance:SetAutoHideMenu(nil, nil, true)
end
4 years ago
end
end
--after plugins are loaded and they have registered their icons, reorganize them after the start
3 years ago
Details.ToolBar:ReorganizeIcons()
--refresh skin for other windows
if (lowerInstance) then
for instanceId = lowerInstance+1, Details:GetNumInstances() do
local instance = Details:GetInstance(instanceId)
3 years ago
if (instance and instance.baseframe and instance.ativa) then
instance:ChangeSkin()
4 years ago
end
end
3 years ago
end
4 years ago
Details.RefreshAfterStartup = nil
4 years ago
--the wallpaper could have been loaded by another addon
--need to refresh wallpaper a few frames or seconds after the game starts
3 years ago
function Details:CheckWallpaperAfterStartup()
if (not Details.profile_loaded) then
Details.Schedules.NewTimer(5, Details.CheckWallpaperAfterStartup, Details)
end
4 years ago
for id = 1, Details.instances_amount do
local instance = Details:GetInstance(id)
3 years ago
if (instance and instance:IsEnabled()) then
if (not instance.wallpaper.enabled) then
4 years ago
instance:InstanceWallpaper(false)
end
3 years ago
instance.do_not_snap = true
Details.move_janela_func(instance.baseframe, true, instance, true)
Details.move_janela_func(instance.baseframe, false, instance, true)
3 years ago
instance.do_not_snap = false
4 years ago
end
end
3 years ago
Details.CheckWallpaperAfterStartup = nil
3 years ago
Details.profile_loaded = nil
4 years ago
end
3 years ago
Details.Schedules.NewTimer(5, Details.CheckWallpaperAfterStartup, Details)
end
4 years ago
3 years ago
Details.Schedules.NewTimer(5, Details.RefreshAfterStartup, Details)
4 years ago
--start garbage collector
Details222.GarbageCollector.lastCollectTime = 0
Details222.GarbageCollector.intervalTime = 300
Details222.GarbageCollector.collectorTimer = Details.Schedules.NewTicker(Details222.GarbageCollector.intervalTime, Details222.GarbageCollector.RestartInternalGarbageCollector)
4 years ago
--player role
local UnitGroupRolesAssigned = _G.DetailsFramework.UnitGroupRolesAssigned
Details.last_assigned_role = UnitGroupRolesAssigned and UnitGroupRolesAssigned("player")
3 years ago
--load parser capture options
Details:CaptureRefresh()
3 years ago
--register parser events
Details.listener:RegisterEvent("PLAYER_REGEN_DISABLED")
Details.listener:RegisterEvent("PLAYER_REGEN_ENABLED")
Details.listener:RegisterEvent("UNIT_PET")
3 years ago
Details.listener:RegisterEvent("GROUP_ROSTER_UPDATE")
Details.listener:RegisterEvent("INSTANCE_ENCOUNTER_ENGAGE_UNIT")
3 years ago
Details.listener:RegisterEvent("ZONE_CHANGED_NEW_AREA")
Details.listener:RegisterEvent("PLAYER_ENTERING_WORLD")
3 years ago
Details.listener:RegisterEvent("ENCOUNTER_START")
Details.listener:RegisterEvent("ENCOUNTER_END")
3 years ago
Details.listener:RegisterEvent("START_TIMER")
Details.listener:RegisterEvent("UNIT_NAME_UPDATE")
3 years ago
Details.listener:RegisterEvent("PLAYER_ROLES_ASSIGNED")
Details.listener:RegisterEvent("ROLE_CHANGED_INFORM")
4 years ago
Details.listener:RegisterEvent("UNIT_FACTION")
3 years ago
Details.listener:RegisterEvent("PLAYER_TARGET_CHANGED")
3 years ago
if (not DetailsFramework.IsTimewalkWoW()) then
Details.listener:RegisterEvent("PET_BATTLE_OPENING_START")
Details.listener:RegisterEvent("PET_BATTLE_CLOSE")
Details.listener:RegisterEvent("PLAYER_SPECIALIZATION_CHANGED")
Details.listener:RegisterEvent("PLAYER_TALENT_UPDATE")
Details.listener:RegisterEvent("CHALLENGE_MODE_START")
Details.listener:RegisterEvent("CHALLENGE_MODE_COMPLETED")
3 years ago
end
Details.parser_frame:RegisterEvent("COMBAT_LOG_EVENT_UNFILTERED")
4 years ago
--update is in group
Details.details_users = {}
Details.in_group = IsInGroup() or IsInRaid()
3 years ago
4 years ago
--done
Details.initializing = nil
3 years ago
4 years ago
--scan pets
3 years ago
Details:SchedulePetUpdate(1)
4 years ago
--send messages gathered on initialization
Details.Schedules.NewTimer(10, Details.ShowDelayMsg, Details)
3 years ago
4 years ago
--send instance open signal
3 years ago
for id, instancia in Details:ListInstances() do
4 years ago
if (instancia.ativa) then
Details:SendEvent("DETAILS_INSTANCE_OPEN", nil, instancia)
4 years ago
end
end
--send details startup done signal
function Details:AnnounceStartup()
Details:SendEvent("DETAILS_STARTED", "SEND_TO_ALL")
3 years ago
if (Details.in_group) then
Details:SendEvent("GROUP_ONENTER")
4 years ago
else
3 years ago
Details:SendEvent("GROUP_ONLEAVE")
4 years ago
end
3 years ago
Details.last_zone_type = "INIT"
Details.parser_functions:ZONE_CHANGED_NEW_AREA()
Details.AnnounceStartup = nil
4 years ago
end
Details.Schedules.NewTimer(4, Details.AnnounceStartup, Details)
3 years ago
if (Details.failed_to_load) then
Details.failed_to_load:Cancel()
Details.failed_to_load = nil
4 years ago
end
--announce alpha version
function Details:AnnounceVersion()
3 years ago
for index, instancia in Details:ListInstances() do
4 years ago
if (instancia.ativa) then
Details.FadeHandler.Fader(instancia._version, "in", 0.1)
end
end
end
--check version
3 years ago
Details:CheckVersion(true)
4 years ago
--restore cooltip anchor position, this is for the custom anchor in the screen
3 years ago
DetailsTooltipAnchor:Restore()
--check is this is the first run ever
if (Details.is_first_run) then
if (#Details.custom == 0) then
3 years ago
Details:AddDefaultCustomDisplays()
4 years ago
end
3 years ago
Details:FillUserCustomSpells()
4 years ago
end
3 years ago
4 years ago
--check is this is the first run of this version
if (Details.is_version_first_run) then
local breakdownData = Details.breakdown_spell_tab
if (breakdownData) then
local spellContainerHeaders = breakdownData.spellcontainer_headers
if (spellContainerHeaders) then
if (spellContainerHeaders.overheal) then
spellContainerHeaders.overheal.enabled = true
spellContainerHeaders.overheal.width = 70
end
end
local targetContainerHeaders = breakdownData.targetcontainer_headers
if (targetContainerHeaders) then
if (targetContainerHeaders.overheal) then
targetContainerHeaders.overheal.enabled = true
targetContainerHeaders.overheal.width = 70
end
end
end
3 years ago
local lowerInstanceId = Details:GetLowerInstanceNumber()
if (lowerInstanceId) then
lowerInstanceId = Details:GetInstance(lowerInstanceId)
if (lowerInstanceId) then
4 years ago
--check if there's changes in the size of the news string
if (Details.last_changelog_size ~= #Loc["STRING_VERSION_LOG"]) then
4 years ago
Details.last_changelog_size = #Loc["STRING_VERSION_LOG"]
if (Details.auto_open_news_window) then
C_Timer.After(5, function()
Details.OpenNewsWindow()
end)
end
3 years ago
if (lowerInstanceId) then
C_Timer.After(10, function()
if (lowerInstanceId:IsEnabled()) then
lowerInstanceId:InstanceAlert(Loc ["STRING_VERSION_UPDATE"], {[[Interface\GossipFrame\AvailableQuestIcon]], 16, 16, false}, 60, {Details.OpenNewsWindow}, true)
4 years ago
Details:Msg("A new version has been installed: /details news") --localize-me
end
end)
end
end
end
end
3 years ago
Details:FillUserCustomSpells()
Details:AddDefaultCustomDisplays()
4 years ago
end
3 years ago
local lowerInstanceId = Details:GetLowerInstanceNumber()
if (lowerInstanceId) then
local instance = Details:GetInstance(lowerInstanceId)
if (instance) then
4 years ago
--in development
3 years ago
local devIcon = instance.bgdisplay:CreateTexture(nil, "overlay")
devIcon:SetWidth(40)
devIcon:SetHeight(40)
devIcon:SetPoint("bottomleft", instance.baseframe, "bottomleft", 4, 8)
devIcon:SetAlpha(.3)
local devText = instance.bgdisplay:CreateFontString(nil, "overlay", "GameFontHighlightSmall")
devText:SetHeight(64)
devText:SetPoint("left", devIcon, "right", 5, 0)
devText:SetTextColor(1, 1, 1)
devText:SetAlpha(.3)
4 years ago
--version
3 years ago
Details.FadeHandler.Fader(instance._version, 0)
instance._version:SetText("Details! " .. Details.userversion .. " (core " .. Details.realversion .. ")")
3 years ago
instance._version:SetTextColor(1, 1, 1, .35)
instance._version:SetPoint("bottomleft", instance.baseframe, "bottomleft", 5, 1)
4 years ago
if (instance.auto_switch_to_old) then
instance:SwitchBack()
end
3 years ago
function Details:FadeStartVersion()
Details.FadeHandler.Fader(devIcon, "in", 2)
Details.FadeHandler.Fader(devText, "in", 2)
Details.FadeHandler.Fader(instance._version, "in", 2)
4 years ago
end
Details.Schedules.NewTimer(12, Details.FadeStartVersion, Details)
end
end
3 years ago
function Details:OpenOptionsWindowAtStart()
--Details:OpenOptionsWindow (Details.tabela_instancias[1])
--print(_G ["DetailsClearSegmentsButton1"]:GetSize())
--Details:OpenCustomDisplayWindow()
--Details:OpenWelcomeWindow()
4 years ago
end
3 years ago
Details.Schedules.NewTimer(2, Details.OpenOptionsWindowAtStart, Details)
--Details:OpenCustomDisplayWindow()
4 years ago
3 years ago
--minimap registration
Details.SafeRun(Details.RegisterMinimap, "Register Minimap Icon", Details)
--hot corner addon
Details.Schedules.NewTimer(5, function() Details.SafeRun(Details.DoRegisterHotCorner, "Register on Hot Corner Addon", Details) end, Details)
4 years ago
--restore mythic dungeon state
3 years ago
Details:RestoreState_CurrentMythicDungeonRun()
4 years ago
--open profiler
3 years ago
Details:OpenProfiler()
4 years ago
--start announcers
3 years ago
Details:StartAnnouncers()
4 years ago
--open welcome
if (Details.is_first_run) then
3 years ago
C_Timer.After(1, function() --wait details full load the rest of the systems before executing the welcome window
Details:OpenWelcomeWindow()
4 years ago
end)
end
3 years ago
4 years ago
--load broadcaster tools
3 years ago
Details:LoadFramesForBroadcastTools()
Details:BrokerTick()
---return the table where the trinket data is stored
---@return table<spellid, trinketdata>
function Details:GetTrinketData()
return Details.trinket_data
end
local customSpellList = Details:GetDefaultCustomItemList()
local trinketData = Details:GetTrinketData()
for spellId, trinketTable in pairs(customSpellList) do
if (trinketTable.isPassive) then
if (not trinketData[spellId]) then
---@type trinketdata
local thisTrinketData = {
itemName = C_Item.GetItemNameByID(trinketTable.itemId),
spellName = GetSpellInfo(spellId) or "spell not found",
lastActivation = 0,
lastPlayerName = "",
totalCooldownTime = 0,
activations = 0,
lastCombatId = 0,
minTime = 9999999,
maxTime = 0,
averageTime = 0,
}
trinketData[spellId] = thisTrinketData
end
elseif (trinketTable.onUse and trinketTable.castId) then
Details222.OnUseItem.Trinkets[trinketTable.castId] = spellId
end
end
4 years ago
--register boss mobs callbacks (DBM and BigWigs) -> functions/bossmods.lua
Details.Schedules.NewTimer(5, Details.BossModsLink, Details)
--limit item level life for 24Hs
3 years ago
local now = time()
for guid, ilevelTable in pairs(Details.ilevel:GetPool()) do
if (ilevelTable.time + 86400 < now) then
Details.ilevel:ClearIlvl(guid)
4 years ago
end
end
3 years ago
4 years ago
--dailly reset of the cache for talents and specs
3 years ago
local today = date("%d")
if (Details.last_day ~= today) then
Details:Destroy(Details.cached_specs)
Details:Destroy(Details.cached_talents)
4 years ago
end
3 years ago
--get the player spec
C_Timer.After(2, Details.parser_functions.PLAYER_SPECIALIZATION_CHANGED)
4 years ago
--embed windows on the chat window
3 years ago
Details.chat_embed:CheckChatEmbed(true)
if (Details.player_details_window.skin ~= "ElvUI") then --obsolete
3 years ago
local setDefaultSkinOnPlayerBreakdownWindow = function()
Details:ApplyPDWSkin("ElvUI")
4 years ago
end
3 years ago
C_Timer.After(2, setDefaultSkinOnPlayerBreakdownWindow)
4 years ago
end
3 years ago
4 years ago
--coach feature startup
Details.Coach.StartUp()
--force the group edit be always enabled when Details! starts
3 years ago
Details.options_group_edit = true
4 years ago
--shutdown pre-pot announcer
Details.announce_prepots.enabled = false
--remove standard skin on 9.0.1
3 years ago
Details.standard_skin = false
4 years ago
--enforce to show 6 abilities on the tooltip
--_detalhes.tooltip.tooltip_max_abilities = 6 freeeeeedooommmmm
Details.InstallRaidInfo()
--Plater integration
C_Timer.After(2, function()
3 years ago
Details:RefreshPlaterIntegration()
4 years ago
end)
3 years ago
4 years ago
--show warning message about classic beta
if (not DetailsFramework.IsClassicWow()) then
3 years ago
--i'm not in classc wow
4 years ago
else
--print("|CFFFFFF00[Details!]: you're using Details! for RETAIL on Classic WOW, please get the classic version (Details! Damage Meter Classic WoW), if you need help see our Discord (/details discord).")
4 years ago
end
Details:InstallHook("HOOK_DEATH", Details.Coach.Client.SendMyDeath)
if (not Details.slash_me_used) then
if (math.random(25) == 1) then
--Details:Msg("use '/details me' macro to open the player breakdown for you!")
end
4 years ago
end
if (not DetailsFramework.IsTimewalkWoW()) then
Details.cached_specs[UnitGUID("player")] = GetSpecializationInfo(GetSpecialization() or 0)
end
if (GetExpansionLevel() == 9) then
if (not Details.data_wipes_exp["10"]) then
Details:Destroy(Details.encounter_spell_pool or {})
Details:Destroy(Details.boss_mods_timers or {})
Details:Destroy(Details.spell_school_cache or {})
Details:Destroy(Details.spell_pool or {})
Details:Destroy(Details.npcid_pool or {})
Details:Destroy(Details.current_exp_raid_encounters or {})
Details.data_wipes_exp["10"] = true
end
4 years ago
end
Details.boss_mods_timers.encounter_timers_dbm = Details.boss_mods_timers.encounter_timers_dbm or {}
Details.boss_mods_timers.encounter_timers_bw = Details.boss_mods_timers.encounter_timers_bw or {}
if (Details.time_type == 3 or not Details.time_type) then
Details.time_type = 2
end
4 years ago
--clear overall data on new session
--if (Details.overall_clear_logout) then --this is suppose to be in the load data file
-- Details.tabela_overall = Details.combate:NovaTabela()
--end
4 years ago
if (not DetailsFramework.IsTimewalkWoW()) then
--wipe overall on torghast - REMOVE ON 10.0
local torghastTracker = CreateFrame("frame")
torghastTracker:RegisterEvent("JAILERS_TOWER_LEVEL_UPDATE") --shadowlands tower challenge
4 years ago
torghastTracker:SetScript("OnEvent", function(self, event, level, towerType)
if (level == 1) then
if (Details.overall_clear_newtorghast) then
Details.historico:ResetOverallData()
3 years ago
Details:Msg("overall data are now reset.") --localize-me
4 years ago
end
end
end)
end
3 years ago
--hide the panel shown by pressing the right mouse button on the title bar when a cooltip is opened
hooksecurefunc(GameCooltip, "SetMyPoint", function()
if (DetailsAllAttributesFrame) then
DetailsAllAttributesFrame:Hide()
end
end)
--to ignore this, use /run _G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Original or add to any script that run on login
--also the slash command "/details stopperfcheck" stop it as well
if (Details.check_stuttering) then
_G["UpdateAddOnMemoryUsage"] = Details.UpdateAddOnMemoryUsage_Custom
end
Details.InitializeSpellBreakdownTab()
pcall(Details222.EJCache.MakeCache)
pcall(Details222.ClassCache.MakeCache)
Details:BuildSpecsNameCache()
Details222.Cache.DoMaintenance()
4 years ago
function Details:InstallOkey()
return true
end
3 years ago
if (DetailsFramework:IsNearlyEqual(Details.class_coords.ROGUE[4], 0.25)) then
DetailsFramework.table.copy(Details.class_coords, Details.default_profile.class_coords)
3 years ago
end
4 years ago
3 years ago
--shutdown the old OnDeathMenu
--cleanup: this line can be removed after the first month of dragonflight
Details.on_death_menu = false
end
4 years ago
3 years ago
Details.AddOnLoadFilesTime = _G.GetTime()