Skip to content

Commit

Permalink
v0.9.33
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jan 19, 2024
1 parent 3435d02 commit a567ac0
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion ImproveAny.toc
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
## Interface-Wrath: 30403
## Interface: 100205

## Version: 0.9.32
## Version: 0.9.33
## 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_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 0.9.32
## Version: 0.9.33
## 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: 11500
## Version: 0.9.32
## Version: 0.9.33
## 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.32
## Version: 0.9.33
## 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
16 changes: 14 additions & 2 deletions ele/minimap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ function ImproveAny:InitMinimap()
end

function ImproveAny:UpdateIAMMBtns()
local br = 7
local sr = 1
local sum = 0
for i, v in pairs(IAMMBtns) do
if v:IsShown() then
Expand All @@ -239,7 +241,7 @@ function ImproveAny:InitMinimap()

table.sort(IAMMBtns, sortFunc)
local rows, cols = ImproveAny:GetRowsCols(sum)
IAMMBtnsFrame:SetSize(cols * MMBtnSize, rows * MMBtnSize)
IAMMBtnsFrame:SetSize(cols * (MMBtnSize + sr) + 2 * br - sr, rows * (MMBtnSize + sr) + 2 * br - sr)
local row, col = 0, 0
for i, v in pairs(IAMMBtns) do
if v:IsShown() then
Expand All @@ -250,7 +252,17 @@ function ImproveAny:InitMinimap()

v:SetParent(IAMMBtnsFrame)
v:ClearAllPoints()
v:SetPoint("TOPLEFT", IAMMBtnsFrame, "TOPLEFT", col * MMBtnSize, -row * MMBtnSize)
local cSpace = 0
local rSpace = 0
if col > 0 then
cSpace = col * sr
end

if row > 0 then
rSpace = row * sr
end

v:SetPoint("TOPLEFT", IAMMBtnsFrame, "TOPLEFT", col * MMBtnSize + cSpace + br, -row * MMBtnSize - rSpace - br)
col = col + 1
end
end
Expand Down
4 changes: 2 additions & 2 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,8 @@ function ImproveAny:InitIASettings()
IASettings:Hide()
end

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

0 comments on commit a567ac0

Please sign in to comment.