Skip to content

Commit

Permalink
ToC Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Mar 25, 2024
1 parent 6dc43b4 commit 66c94a1
Show file tree
Hide file tree
Showing 12 changed files with 39 additions and 22 deletions.
2 changes: 1 addition & 1 deletion Details.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100205
## Interface: 100206
## Title: Details! Damage Meter
## Notes: Essential tool to impress that chick in your raid.
## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде.
Expand Down
2 changes: 1 addition & 1 deletion Details_Classic.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 11500
## Interface: 11501
## Title: Details! Damage Meter
## Notes: Essential tool to impress that chick in your raid.
## Notes-ruRU: Незаменимый инструмент, чтобы произвести впечатление на цыпочку в вашем рейде.
Expand Down
14 changes: 12 additions & 2 deletions boot.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 = {
Expand Down Expand Up @@ -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.",
Expand Down
25 changes: 16 additions & 9 deletions core/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand All @@ -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
4 changes: 2 additions & 2 deletions frames/window_options2_sections.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Compare2/Details_Compare2.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_DataStorage/Details_DataStorage.toc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## Interface: 100205
## Interface: 100206
## Title: Details!: Storage
## Notes: Stores information for Details! Damage Meter
## DefaultState: Enabled
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_RaidCheck/Details_RaidCheck.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Streamer/Details_Streamer.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_TinyThreat/Details_TinyThreat.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion plugins/Details_Vanguard/Details_Vanguard.toc
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 66c94a1

Please sign in to comment.