Skip to content

Commit

Permalink
v1.6.244
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jul 29, 2024
1 parent 4accd76 commit c03d3b7
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 9 deletions.
2 changes: 1 addition & 1 deletion MoveAny.toc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
## Interface-Cata: 40400
## Interface: 100207, 110000

## Version: 1.6.243
## Version: 1.6.244
## Title: MoveAny by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Move Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion MoveAny_Cata.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 40400
## Version: 1.6.243
## Version: 1.6.244
## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Move Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion MoveAny_TBC.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 20504
## Version: 1.6.243
## Version: 1.6.244
## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Move Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion MoveAny_Vanilla.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 11503
## Version: 1.6.243
## Version: 1.6.244
## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Move Any Ui or Frame
## Author: D4KiR
Expand Down
2 changes: 1 addition & 1 deletion MoveAny_Wrath.toc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## Interface: 30403
## Version: 1.6.243
## Version: 1.6.244
## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t
## Notes: Move Any Ui or Frame
## Author: D4KiR
Expand Down
20 changes: 16 additions & 4 deletions settings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -417,8 +417,8 @@ function MoveAny:InitMALock()
end
)

MoveAny:SetVersion(AddonName, 135994, "1.6.243")
MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.243"))
MoveAny:SetVersion(AddonName, 135994, "1.6.244")
MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.244"))
MALock.CloseButton:SetScript(
"OnClick",
function()
Expand Down Expand Up @@ -1051,7 +1051,7 @@ function MoveAny:ShowProfiles()
end
)

MAProfiles.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.243"))
MAProfiles.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.244"))
MAProfiles.CloseButton:SetScript(
"OnClick",
function()
Expand Down Expand Up @@ -3800,12 +3800,24 @@ function MoveAny:LoadAddon()
end
end

function MoveAny:BossCount()
local count = 0
for i = 1, 5 do
local frame = _G["Boss" .. i .. "TargetFrame"]
if frame and UnitExists("boss" .. i) then
count = count + 1
end
end

return count
end

function MoveAny:HandleBossFrames()
for i = 1, 6 do
local frame = _G["Boss" .. i .. "TargetFrame"]
local unit = "boss" .. i
if frame then
if UnitExists(unit) then
if UnitExists(unit) and MoveAny:BossCount() > 1 then
frame.ma_show = true
frame:SetAlpha(1)
else
Expand Down

0 comments on commit c03d3b7

Please sign in to comment.