Skip to content

Commit

Permalink
v0.9.107
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Oct 8, 2024
1 parent eefe74f commit d16060d
Show file tree
Hide file tree
Showing 9 changed files with 23 additions and 13 deletions.
2 changes: 1 addition & 1 deletion ImproveAny.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Interface-Cata: 40400
## Interface: 110002

## Version: 0.9.106
## Version: 0.9.107
## Title: ImproveAny by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40400
## Version: 0.9.106
## Version: 0.9.107
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.9.106
## Version: 0.9.107
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11504
## Version: 0.9.106
## Version: 0.9.107
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion ImproveAny_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 0.9.106
## Version: 0.9.107
## Title: ImproveAny |T136033:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Improve Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ function ImproveAny:Event(event, ...)
["icon"] = 136033,
["var"] = mmbtn,
["dbtab"] = IATAB,
["vTT"] = {{"ImproveAny |T136033:16:16:0:0|t", "v|cff3FC7EB0.9.106"}, {ImproveAny:GT("LEFTCLICK"), ImproveAny:GT("MMBTNLEFT")}, {ImproveAny:GT("RIGHTCLICK"), ImproveAny:GT("MMBTNRIGHT")}},
["vTT"] = {{"ImproveAny |T136033:16:16:0:0|t", "v|cff3FC7EB0.9.107"}, {ImproveAny:GT("LEFTCLICK"), ImproveAny:GT("MMBTNLEFT")}, {ImproveAny:GT("RIGHTCLICK"), ImproveAny:GT("MMBTNRIGHT")}},
["funcL"] = function()
ImproveAny:ToggleSettings()
end,
Expand Down
2 changes: 1 addition & 1 deletion ele/minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ function ImproveAny:InitMinimap()
C_Timer.After(
0.3,
function()
local mmBtnsNames = {"Lib_GPI_Minimap_", "D4Lib_MMBTN_", "LibDBIcon10_", "BtWQuests", "MinimapButton", "MinimapIcon", "_Minimap_"}
local mmBtnsNames = {"Lib_GPI_Minimap_", "MinimapButton_D4Lib_", "LibDBIcon10_", "BtWQuests", "MinimapButton", "MinimapIcon", "_Minimap_"}
local IAMMBtnsBliz = {}
local IAMMBtnsFrame = CreateFrame("Frame", "IAMMBtnsFrame", UIParent)
IAMMBtnsFrame:SetSize(100, 100)
Expand Down
18 changes: 14 additions & 4 deletions libs/D4Lib/D4MinimapButtons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ function D4:CreateMinimapButton(params)
end

params.dbtab[params.name] = params.dbtab[params.name] or {}
_G["D4Lib_MMBTN_" .. params.name] = CreateFrame("Button", "D4Lib_MMBTN_" .. params.name, Minimap)
local btn = _G["D4Lib_MMBTN_" .. params.name]
_G["MinimapButton_D4Lib_" .. params.name] = CreateFrame("Button", "MinimapButton_D4Lib_" .. params.name, Minimap)
local btn = _G["MinimapButton_D4Lib_" .. params.name]
btn.border = params.border
btn.db = params.dbtab
btn.db.minimapPos = btn.db.minimapPos or 0
Expand Down Expand Up @@ -241,7 +241,12 @@ function D4:ShowMMBtn(name)
return
end

D4:GetMMBtn("D4Lib_MMBTN_" .. name):Show()
local btn = D4:GetMMBtn("MinimapButton_D4Lib_" .. name)
if btn then
btn:Show()
else
D4:MSG("[ShowMMBtn] Missing Button", name)
end
end

function D4:HideMMBtn(name)
Expand All @@ -251,5 +256,10 @@ function D4:HideMMBtn(name)
return
end

D4:GetMMBtn("D4Lib_MMBTN_" .. name):Hide()
local btn = D4:GetMMBtn("MinimapButton_D4Lib_" .. name)
if btn then
btn:Hide()
else
D4:MSG("[HideMMBtn] Missing Button", name)
end
end
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -441,8 +441,8 @@ function ImproveAny:InitIASettings()
IASettings:Hide()
end

ImproveAny:SetVersion(AddonName, 136033, "0.9.106")
IASettings.TitleText:SetText(format("ImproveAny |T136033:16:16:0:0|t v|cff3FC7EB%s", "0.9.106"))
ImproveAny:SetVersion(AddonName, 136033, "0.9.107")
IASettings.TitleText:SetText(format("ImproveAny |T136033:16:16:0:0|t v|cff3FC7EB%s", "0.9.107"))
IASettings.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit d16060d

Please sign in to comment.