From 9a4f6b882b02563de9b52ba0dde7c4afed467a18 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 19 Aug 2024 09:52:36 -0300 Subject: [PATCH] Toc-toc-tocking's on heaven's door --- Details.toc | 2 +- Libs/DF/LibDFramework-1.0.toc | 2 +- boot.lua | 4 ++-- plugins/Details_Compare2/Details_Compare2.toc | 2 +- plugins/Details_DataStorage/Details_DataStorage.toc | 2 +- .../Details_EncounterDetails.toc | 2 +- plugins/Details_EncounterDetails/frames_chart.lua | 6 ++++-- .../Details_RaidCheck/Details_RaidCheck-Wrath.toc | 4 ---- plugins/Details_RaidCheck/Details_RaidCheck.toc | 6 +----- plugins/Details_RaidCheck/Details_RaidCheck_Cata.toc | 4 ---- .../Details_RaidCheck/Details_RaidCheck_Wrath.toc | 4 ---- plugins/Details_Streamer/Details_Streamer-Wrath.toc | 3 --- plugins/Details_Streamer/Details_Streamer.lua | 12 +++++------- plugins/Details_Streamer/Details_Streamer.toc | 6 +----- plugins/Details_Streamer/Details_Streamer_Cata.toc | 4 ---- plugins/Details_Streamer/Details_Streamer_Wrath.toc | 3 --- .../Details_TinyThreat-Classic.toc | 6 +----- .../Details_TinyThreat/Details_TinyThreat-Wrath.toc | 4 ---- plugins/Details_TinyThreat/Details_TinyThreat.toc | 5 +---- .../Details_TinyThreat/Details_TinyThreat_Cata.toc | 3 --- .../Details_TinyThreat/Details_TinyThreat_Wrath.toc | 4 ---- plugins/Details_Vanguard/Details_Vanguard-Wrath.toc | 4 ---- plugins/Details_Vanguard/Details_Vanguard.toc | 6 +----- plugins/Details_Vanguard/Details_Vanguard_Cata.toc | 4 ---- plugins/Details_Vanguard/Details_Vanguard_Wrath.toc | 4 ---- 25 files changed, 21 insertions(+), 85 deletions(-) diff --git a/Details.toc b/Details.toc index 9506a81a5..37081f221 100644 --- a/Details.toc +++ b/Details.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Interface-Cata: 40400 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. diff --git a/Libs/DF/LibDFramework-1.0.toc b/Libs/DF/LibDFramework-1.0.toc index c61998f83..48ecdae37 100644 --- a/Libs/DF/LibDFramework-1.0.toc +++ b/Libs/DF/LibDFramework-1.0.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Lib: LibDFramework-1.0 ## Notes: Base Framework for many Addons diff --git a/boot.lua b/boot.lua index 60d12c148..6891ec5fe 100644 --- a/boot.lua +++ b/boot.lua @@ -19,8 +19,8 @@ local addonName, Details222 = ... local version, build, date, tvs = GetBuildInfo() - Details.build_counter = 12877 - Details.alpha_build_counter = 12877 --if this is higher than the regular counter, use it instead + Details.build_counter = 12878 + Details.alpha_build_counter = 12878 --if this is higher than the regular counter, use it instead Details.dont_open_news = true Details.game_version = version Details.userversion = version .. " " .. Details.build_counter diff --git a/plugins/Details_Compare2/Details_Compare2.toc b/plugins/Details_Compare2/Details_Compare2.toc index 8fbe22440..9e749e8ad 100644 --- a/plugins/Details_Compare2/Details_Compare2.toc +++ b/plugins/Details_Compare2/Details_Compare2.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Compare 2.0 ## Notes: Replace the Compare tab in the player breakdown window. ## RequiredDeps: Details diff --git a/plugins/Details_DataStorage/Details_DataStorage.toc b/plugins/Details_DataStorage/Details_DataStorage.toc index 89b37495f..b3216d941 100644 --- a/plugins/Details_DataStorage/Details_DataStorage.toc +++ b/plugins/Details_DataStorage/Details_DataStorage.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Storage ## Notes: Stores information for Details! Damage Meter ## DefaultState: Enabled diff --git a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc index 134b1a940..0373a4117 100644 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc +++ b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Encounter Breakdown (plugin) ## Notes: Show detailed information about a boss encounter. Also provide damage per phase, graphic charts, easy weakauras creation. ## RequiredDeps: Details diff --git a/plugins/Details_EncounterDetails/frames_chart.lua b/plugins/Details_EncounterDetails/frames_chart.lua index 57e9a2c0d..80eea699b 100644 --- a/plugins/Details_EncounterDetails/frames_chart.lua +++ b/plugins/Details_EncounterDetails/frames_chart.lua @@ -7,6 +7,8 @@ local Graphics = LibStub:GetLibrary("LibGraph-2.0") local ipairs = ipairs local _GetSpellInfo = Details.getspellinfo local unpack = unpack + +---@type detailsframework local detailsFramework = DetailsFramework local CreateFrame = CreateFrame local GameCooltip = GameCooltip @@ -137,7 +139,7 @@ function encounterDetails:ShowChartFrame() --check if this is a valid chart data if (thisChartData and thisChartData.max_value and thisChartData.max_value > 0) then local tryNumber = thisCombatObject.is_boss.try_number or i - multiChartPanel:AddData(thisChartData, smoothnessLevel, "Try #" .. tryNumber, chartLineColors[chartIndex]) + multiChartPanel:AddData(thisChartData, nil, smoothnessLevel, "Try #" .. tryNumber, chartLineColors[chartIndex]) multiChartPanel:SetXAxisData(elapsedTime) chartIndex = chartIndex + 1 end @@ -154,7 +156,7 @@ function encounterDetails:ShowChartFrame() encounterDetails:UpdatePhaseIndicators(multiChartPanel, combatObject) - multiChartPanel:AddData(currentChartData, smoothnessLevel, "current", chartLineColors[1]) + multiChartPanel:AddData(currentChartData, nil, smoothnessLevel, "current", chartLineColors[1]) multiChartPanel:SetXAxisData(combatObject:GetCombatTime()) multiChartPanel:Plot() multiChartPanel:Show() diff --git a/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc b/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc index f799578d8..4d93a1827 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck-Wrath.toc @@ -4,8 +4,4 @@ ## RequiredDeps: Details ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_RaidCheck.lua diff --git a/plugins/Details_RaidCheck/Details_RaidCheck.toc b/plugins/Details_RaidCheck/Details_RaidCheck.toc index 6ac17f0de..d138d3da6 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Raid Check (plugin) ## Notes: Show talents and item level for all members in your group, also shows food and flask state. ## RequiredDeps: Details @@ -6,8 +6,4 @@ ## X-Wago-ID: WL6Jk2Kv -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_RaidCheck.lua diff --git a/plugins/Details_RaidCheck/Details_RaidCheck_Cata.toc b/plugins/Details_RaidCheck/Details_RaidCheck_Cata.toc index 171e332df..8139548aa 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck_Cata.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck_Cata.toc @@ -6,8 +6,4 @@ ## X-Wago-ID: WL6Jk2Kv -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_RaidCheck.lua diff --git a/plugins/Details_RaidCheck/Details_RaidCheck_Wrath.toc b/plugins/Details_RaidCheck/Details_RaidCheck_Wrath.toc index f799578d8..4d93a1827 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck_Wrath.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck_Wrath.toc @@ -4,8 +4,4 @@ ## RequiredDeps: Details ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_RaidCheck.lua diff --git a/plugins/Details_Streamer/Details_Streamer-Wrath.toc b/plugins/Details_Streamer/Details_Streamer-Wrath.toc index 9c144001b..ded821456 100644 --- a/plugins/Details_Streamer/Details_Streamer-Wrath.toc +++ b/plugins/Details_Streamer/Details_Streamer-Wrath.toc @@ -5,8 +5,5 @@ ## SavedVariables: Details_StreamerDB ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ Details_Streamer.lua diff --git a/plugins/Details_Streamer/Details_Streamer.lua b/plugins/Details_Streamer/Details_Streamer.lua index 3bf61a3e7..ece3e7668 100644 --- a/plugins/Details_Streamer/Details_Streamer.lua +++ b/plugins/Details_Streamer/Details_Streamer.lua @@ -3,8 +3,6 @@ local SharedMedia = LibStub:GetLibrary ("LibSharedMedia-3.0") local LDB = LibStub ("LibDataBroker-1.1", true) local LDBIcon = LDB and LibStub ("LibDBIcon-1.0", true) local LibWindow = LibStub ("LibWindow-1.1") -local Details = _G.Details -local GetSpellInfo = Details.GetSpellInfo local _ ---need cleanup Loc ["STRING_MEMORY_ALERT_BUTTON"], @@ -2279,23 +2277,23 @@ function StreamOverlay.OpenOptionsPanel (fromOptionsPanel) dropdown_profile:Select (Details_StreamerDB.characters [pname]) end - optionsFrame.NewProfileButton = Details.gump:CreateButton (optionsFrame, add_profile, 60, 18, "New Profiile", _, _, _, _, _, _, Details.gump:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE"), Details.gump:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE")) + optionsFrame.NewProfileButton = Details.gump:CreateButton (optionsFrame, add_profile, 60, 18, "New Profile", _, _, _, _, _, _, Details.gump:GetTemplate ("dropdown", "OPTIONS_DROPDOWN_TEMPLATE"), Details.gump:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE")) optionsFrame.NewProfileButton:SetPoint ("left", dropdown_profile, "right", 4, 0) end --enable / disable plugin button local toggle_OnOff = function() - local pluginStable = Details:GetPluginSavedTable("DETAILS_PLUGIN_STREAM_OVERLAY") + local pluginSavedTable = Details:GetPluginSavedTable("DETAILS_PLUGIN_STREAM_OVERLAY") local pluginObject = Details:GetPlugin("DETAILS_PLUGIN_STREAM_OVERLAY") - if (pluginStable.enabled) then - pluginStable.enabled = false + if (pluginSavedTable.enabled) then + pluginSavedTable.enabled = false pluginObject.__enabled = false Details:SendEvent("PLUGIN_DISABLED", pluginObject) optionsFrame.toggleButton.text = "Start Plugin" else - pluginStable.enabled = true + pluginSavedTable.enabled = true pluginObject.__enabled = true Details:SendEvent("PLUGIN_ENABLED", pluginObject) optionsFrame.toggleButton.text = "Disable Plugin" diff --git a/plugins/Details_Streamer/Details_Streamer.toc b/plugins/Details_Streamer/Details_Streamer.toc index 7608212eb..f94c0119f 100644 --- a/plugins/Details_Streamer/Details_Streamer.toc +++ b/plugins/Details_Streamer/Details_Streamer.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Streamer (plugin) ## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. ## RequiredDeps: Details @@ -7,8 +7,4 @@ ## X-Wago-ID: VBNB9MGx -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Streamer.lua diff --git a/plugins/Details_Streamer/Details_Streamer_Cata.toc b/plugins/Details_Streamer/Details_Streamer_Cata.toc index fd22bc0ae..2ef8818a6 100644 --- a/plugins/Details_Streamer/Details_Streamer_Cata.toc +++ b/plugins/Details_Streamer/Details_Streamer_Cata.toc @@ -7,8 +7,4 @@ ## X-Wago-ID: VBNB9MGx -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Streamer.lua diff --git a/plugins/Details_Streamer/Details_Streamer_Wrath.toc b/plugins/Details_Streamer/Details_Streamer_Wrath.toc index 9c144001b..ded821456 100644 --- a/plugins/Details_Streamer/Details_Streamer_Wrath.toc +++ b/plugins/Details_Streamer/Details_Streamer_Wrath.toc @@ -5,8 +5,5 @@ ## SavedVariables: Details_StreamerDB ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ Details_Streamer.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc b/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc index 501ec0e54..bb37de940 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat-Classic.toc @@ -1,14 +1,10 @@ -## Interface: 11503 +## Interface: 11501 ## Title: Details!: Tiny Threat (plugin) ## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. ## RequiredDeps: Details ## OptionalDeps: Ace3 ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - enUS.lua ptBR.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc b/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc index 2430703e7..ebf588736 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat-Wrath.toc @@ -5,10 +5,6 @@ ## OptionalDeps: Ace3 ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - enUS.lua ptBR.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.toc b/plugins/Details_TinyThreat/Details_TinyThreat.toc index 4d4db3403..9d22a1dd5 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Tiny Threat (plugin) ## Notes: Threat meter plugin, show threat for group members in the window. Select it from the Plugin menu in the Orange Cogwheel. ## RequiredDeps: Details @@ -7,9 +7,6 @@ ## X-Wago-ID: Rn6VJW6d -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ enUS.lua ptBR.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat_Cata.toc b/plugins/Details_TinyThreat/Details_TinyThreat_Cata.toc index c845ed4b8..0e8a432fb 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat_Cata.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat_Cata.toc @@ -7,9 +7,6 @@ ## X-Wago-ID: Rn6VJW6d -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ enUS.lua ptBR.lua diff --git a/plugins/Details_TinyThreat/Details_TinyThreat_Wrath.toc b/plugins/Details_TinyThreat/Details_TinyThreat_Wrath.toc index 2430703e7..ebf588736 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat_Wrath.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat_Wrath.toc @@ -5,10 +5,6 @@ ## OptionalDeps: Ace3 ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - enUS.lua ptBR.lua diff --git a/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc b/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc index 27af7f056..e25cdbc29 100644 --- a/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc +++ b/plugins/Details_Vanguard/Details_Vanguard-Wrath.toc @@ -6,8 +6,4 @@ ## OptionalDeps: Ace3 ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Vanguard.lua diff --git a/plugins/Details_Vanguard/Details_Vanguard.toc b/plugins/Details_Vanguard/Details_Vanguard.toc index 7018d090d..e952057cc 100644 --- a/plugins/Details_Vanguard/Details_Vanguard.toc +++ b/plugins/Details_Vanguard/Details_Vanguard.toc @@ -1,4 +1,4 @@ -## Interface: 110000 +## Interface: 110002 ## Title: Details!: Vanguard (plugin) ## Notes: Show the health and debuffs for tanks in your group. ## SavedVariablesPerCharacter: _detalhes_databaseVanguard @@ -8,8 +8,4 @@ ## X-Wago-ID: ZQ6abgKW -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Vanguard.lua diff --git a/plugins/Details_Vanguard/Details_Vanguard_Cata.toc b/plugins/Details_Vanguard/Details_Vanguard_Cata.toc index 9c2ed2710..b1ce40ebd 100644 --- a/plugins/Details_Vanguard/Details_Vanguard_Cata.toc +++ b/plugins/Details_Vanguard/Details_Vanguard_Cata.toc @@ -8,9 +8,5 @@ ## X-Wago-ID: ZQ6abgKW -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Vanguard.lua diff --git a/plugins/Details_Vanguard/Details_Vanguard_Wrath.toc b/plugins/Details_Vanguard/Details_Vanguard_Wrath.toc index 27af7f056..e25cdbc29 100644 --- a/plugins/Details_Vanguard/Details_Vanguard_Wrath.toc +++ b/plugins/Details_Vanguard/Details_Vanguard_Wrath.toc @@ -6,8 +6,4 @@ ## OptionalDeps: Ace3 ## IconTexture: Interface\AddOns\Details\images\minimap -#@no-lib-strip@ -embeds.xml -#@end-no-lib-strip@ - Details_Vanguard.lua