Skip to content

Commit

Permalink
v1.6.239
Browse files Browse the repository at this point in the history
  • Loading branch information
d4kir92 committed Jul 26, 2024
1 parent b82124e commit 2979aaa
Show file tree
Hide file tree
Showing 7 changed files with 32 additions and 14 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.238
## Version: 1.6.239
## 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.238
## Version: 1.6.239
## 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.238
## Version: 1.6.239
## 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.238
## Version: 1.6.239
## 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.238
## Version: 1.6.239
## 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
30 changes: 24 additions & 6 deletions moveframes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ function MoveAny:UpdateMoveFrames(force)
end

if sca and sca > 0 and (currentFrame == nil or currentFrame ~= sel) then
if sel:GetName() == "WorldMapFrame" then
print("#1", sel:GetName(), sca)
end

sel:SetScale(sca)
end
end
Expand All @@ -375,16 +379,30 @@ function MoveAny:UpdateMoveFrames(force)
end
)

if MoveAny:GetFrameScale(name) then
print(name, MoveAny:GetFrameScale(name))
end

if MoveAny:GetFrameScale(name) and MoveAny:GetFrameScale(name) > 0 then
if frame:GetHeight() * MoveAny:GetFrameScale(name) > GetScreenHeight() then
if GetScreenHeight() / frame:GetHeight() > 0 then
MoveAny:SetFrameScale(name, GetScreenHeight() / frame:GetHeight())
end

frame:SetScale(MoveAny:GetFrameScale(name))
end
C_Timer.After(
4,
function()
if frame:GetHeight() * MoveAny:GetFrameScale(name) > GetScreenHeight() then
if GetScreenHeight() / frame:GetHeight() > 0 then
MoveAny:SetFrameScale(name, GetScreenHeight() / frame:GetHeight())
end

frame:SetScale(MoveAny:GetFrameScale(name))
end
end
)
elseif MoveAny:GetFrameScale(name) and MoveAny:GetFrameScale(name) > 0 then
if name == "WorldMapFrame" then
print("SET SCALE", name)
end

if MoveAny:GetFrameScale(name) and MoveAny:GetFrameScale(name) > 0 then
frame:SetScale(MoveAny:GetFrameScale(name))
end
else
Expand Down
6 changes: 3 additions & 3 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.238")
MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.238"))
MoveAny:SetVersion(AddonName, 135994, "1.6.239")
MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.239"))
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.238"))
MAProfiles.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.6.239"))
MAProfiles.CloseButton:SetScript(
"OnClick",
function()
Expand Down

0 comments on commit 2979aaa

Please sign in to comment.