From 66c94a135ff266d3ce2f41544746cde581dfca54 Mon Sep 17 00:00:00 2001 From: Tercio Jose Date: Mon, 25 Mar 2024 13:48:33 -0300 Subject: [PATCH] ToC Updates --- Details.toc | 2 +- Details_Classic.toc | 2 +- boot.lua | 14 +++++++++-- core/util.lua | 25 ++++++++++++------- frames/window_options2_sections.lua | 4 +-- plugins/Details_Compare2/Details_Compare2.toc | 2 +- .../Details_DataStorage.toc | 2 +- .../Details_EncounterDetails.toc | 2 +- .../Details_RaidCheck/Details_RaidCheck.toc | 2 +- plugins/Details_Streamer/Details_Streamer.toc | 2 +- .../Details_TinyThreat/Details_TinyThreat.toc | 2 +- plugins/Details_Vanguard/Details_Vanguard.toc | 2 +- 12 files changed, 39 insertions(+), 22 deletions(-) diff --git a/Details.toc b/Details.toc index de737f0d..365ba369 100644 --- a/Details.toc +++ b/Details.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. ## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. diff --git a/Details_Classic.toc b/Details_Classic.toc index 082809b2..e913f486 100644 --- a/Details_Classic.toc +++ b/Details_Classic.toc @@ -1,4 +1,4 @@ -## Interface: 11500 +## Interface: 11501 ## Title: Details! Damage Meter ## Notes: Essential tool to impress that chick in your raid. ## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде. diff --git a/boot.lua b/boot.lua index e39a0d61..87b75d8a 100644 --- a/boot.lua +++ b/boot.lua @@ -18,8 +18,8 @@ local addonName, Details222 = ... local version, build, date, tocversion = GetBuildInfo() - Details.build_counter = 12553 - Details.alpha_build_counter = 12553 --if this is higher than the regular counter, use it instead + Details.build_counter = 12578 + Details.alpha_build_counter = 12578 --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 @@ -119,6 +119,8 @@ Details222.AutoRunCode = {} --options panel Details222.OptionsPanel = {} + --store bar icons (left side of the damage bar) + Details222.BarIconSetList = {} Details222.Instances = {} Details222.Combat = {} Details222.MythicPlus = { @@ -181,6 +183,14 @@ do local Loc = _G.LibStub("AceLocale-3.0"):GetLocale("Details") local news = { + {"v10.2.6.12578.156", "March 25th, 2024"}, + "Added phase and elapsed time for boss wipes on the segment selection menu.", + "Added an option to toggle between rounded and squared tooltips.", + "Fixed an issue with icons not showing on classic versions of the game.", + "Changed Augmentation tooltip color to darkgreen.", + "When leaving a m+ dungeon, Details! will wait for the player to re-enter the dungeon before finishing and creating the overall m+ segment.", + "Added a function for artists add custom icon sets for class or specs: Details:AddCustomIconSet(path, dropdownOptionName[[[[[, isSpecIcons], icon], texCoords], iconSize], iconColor]) (Flamanis).", + {"v10.2.5.12550.156", "March 13th, 2024"}, "Added a combat selection option into the breakdown window, providing convenience when browsing damage or healing data in that window.", "Added a report button to the breakdown window, allowing you to report spell damage, targets, and phases directly from that window.", diff --git a/core/util.lua b/core/util.lua index 235217be..477680b4 100644 --- a/core/util.lua +++ b/core/util.lua @@ -1810,7 +1810,7 @@ end local defaultClassIconCoords = {0.25, 0.50, 0, 0.25} local defaultSpecIconCoords = {2/512, 32/512, 480/512, 510/512} - Details222.iconSetList = { + Details222.BarIconSetList = { {value = [[]], label = Loc ["STRING_OPTIONS_BAR_ICONFILE1"], icon = defaultIconTexture, texcoord = defaultClassIconCoords, iconsize = defaultIconSize, iconcolor = {1, 1, 1, .3}}, {value = [[Interface\AddOns\Details\images\classes_small]], label = Loc ["STRING_OPTIONS_BAR_ICONFILE2"], icon = defaultIconTexture, texcoord = defaultClassIconCoords, iconsize = defaultIconSize}, {value = [[Interface\AddOns\Details\images\spec_icons_normal]], label = "Specialization", isSpec = true, icon = [[Interface\AddOns\Details\images\icons]], texcoord = defaultSpecIconCoords, iconsize = defaultIconSize}, @@ -1821,16 +1821,23 @@ end {value = [[Interface\AddOns\Details\images\classes]], label = Loc ["STRING_OPTIONS_BAR_ICONFILE5"], icon = defaultIconTexture, texcoord = defaultClassIconCoords, iconsize = defaultIconSize}, } - function Details:AddCustomIconSet (path, label, isSpecIcons, icon, texCoords, iconSize, iconColor) - table.insert(Details222.iconSetList, + function Details:AddCustomIconSet(path, dropdownLabel, isSpecIcons, dropdownIcon, dropdownIconTexCoords, dropdownIconSize, dropdownIconColor) + --checking the parameters to improve debug for the icon set author + assert(type(self) == "string", "Details:AddCustomIconSet() did you used Details.AddCustomIconSet instead of Details:AddCustomIconSet?") + assert(type(path) ~= "string", "Details:AddCustomIconSet() 'path' must be a string.") + assert(string.len(path) < 16, "Details:AddCustomIconSet() invalid path.") + + table.insert(Details222.BarIconSetList, { - value = path or [[]], - label = label or 'Missing Label', + value = path, + label = dropdownLabel or "Missing Label", isSpec = isSpecIcons, - icon = icon or defaultIconTexture, - texcoord = texCoords or (isSpecIcons and defaultSpecIconCoords or defaultClassIconCoords), - iconsize = iconSize or defaultIconSize, - iconcolor = iconColor + icon = dropdownIcon or defaultIconTexture, + texcoord = dropdownIconTexCoords or (isSpecIcons and defaultSpecIconCoords or defaultClassIconCoords), + iconsize = dropdownIconSize or defaultIconSize, + iconcolor = dropdownIconColor } ) + + return true end \ No newline at end of file diff --git a/frames/window_options2_sections.lua b/frames/window_options2_sections.lua index 03cf3646..17a19e17 100644 --- a/frames/window_options2_sections.lua +++ b/frames/window_options2_sections.lua @@ -1166,14 +1166,14 @@ do end local builtIconList = function() - for k,v in ipairs(Details222.iconSetList) do + for k,v in ipairs(Details222.BarIconSetList) do if v.isSpec then v.onclick = OnSelectIconFileSpec else v.onclick = OnSelectIconFile end end - return Details222.iconSetList + return Details222.BarIconSetList end local buildSection = function(sectionFrame) diff --git a/plugins/Details_Compare2/Details_Compare2.toc b/plugins/Details_Compare2/Details_Compare2.toc index 1cf849bb..a0f4217a 100644 --- a/plugins/Details_Compare2/Details_Compare2.toc +++ b/plugins/Details_Compare2/Details_Compare2.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## 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 7aec1be8..8fb3db02 100644 --- a/plugins/Details_DataStorage/Details_DataStorage.toc +++ b/plugins/Details_DataStorage/Details_DataStorage.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## 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 61cd9511..4b091d50 100644 --- a/plugins/Details_EncounterDetails/Details_EncounterDetails.toc +++ b/plugins/Details_EncounterDetails/Details_EncounterDetails.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## 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_RaidCheck/Details_RaidCheck.toc b/plugins/Details_RaidCheck/Details_RaidCheck.toc index 75bdb063..4dc687d1 100644 --- a/plugins/Details_RaidCheck/Details_RaidCheck.toc +++ b/plugins/Details_RaidCheck/Details_RaidCheck.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## 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 diff --git a/plugins/Details_Streamer/Details_Streamer.toc b/plugins/Details_Streamer/Details_Streamer.toc index 8d0f72e1..7f306722 100644 --- a/plugins/Details_Streamer/Details_Streamer.toc +++ b/plugins/Details_Streamer/Details_Streamer.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## Title: Details!: Streamer (plugin) ## Notes: Show which spells you are casting, viewers can see what are you doing and follow your steps. ## RequiredDeps: Details diff --git a/plugins/Details_TinyThreat/Details_TinyThreat.toc b/plugins/Details_TinyThreat/Details_TinyThreat.toc index e8187f1d..394acbfa 100644 --- a/plugins/Details_TinyThreat/Details_TinyThreat.toc +++ b/plugins/Details_TinyThreat/Details_TinyThreat.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## 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 diff --git a/plugins/Details_Vanguard/Details_Vanguard.toc b/plugins/Details_Vanguard/Details_Vanguard.toc index dd925a5d..9f80f983 100644 --- a/plugins/Details_Vanguard/Details_Vanguard.toc +++ b/plugins/Details_Vanguard/Details_Vanguard.toc @@ -1,4 +1,4 @@ -## Interface: 100205 +## Interface: 100206 ## Title: Details!: Vanguard (plugin) ## Notes: Show the health and debuffs for tanks in your group. ## SavedVariablesPerCharacter: _detalhes_databaseVanguard