diff --git a/MoveAny.toc b/MoveAny.toc index 98715b5..9458f90 100644 --- a/MoveAny.toc +++ b/MoveAny.toc @@ -4,7 +4,7 @@ ## Interface-Cata: 40400 ## Interface: 110002 -## Version: 1.7.33 +## Version: 1.7.34 ## Title: MoveAny by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Move Any Ui or Frame ## Author: D4KiR diff --git a/MoveAny_Cata.toc b/MoveAny_Cata.toc index 823945b..fc24445 100644 --- a/MoveAny_Cata.toc +++ b/MoveAny_Cata.toc @@ -1,5 +1,5 @@ ## Interface: 40400 -## Version: 1.7.33 +## Version: 1.7.34 ## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Move Any Ui or Frame ## Author: D4KiR diff --git a/MoveAny_TBC.toc b/MoveAny_TBC.toc index f953655..773224c 100644 --- a/MoveAny_TBC.toc +++ b/MoveAny_TBC.toc @@ -1,5 +1,5 @@ ## Interface: 20504 -## Version: 1.7.33 +## Version: 1.7.34 ## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Move Any Ui or Frame ## Author: D4KiR diff --git a/MoveAny_Vanilla.toc b/MoveAny_Vanilla.toc index d6a3e64..679a1f9 100644 --- a/MoveAny_Vanilla.toc +++ b/MoveAny_Vanilla.toc @@ -1,5 +1,5 @@ ## Interface: 11504 -## Version: 1.7.33 +## Version: 1.7.34 ## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Move Any Ui or Frame ## Author: D4KiR diff --git a/MoveAny_Wrath.toc b/MoveAny_Wrath.toc index 4ea9ce9..528d710 100644 --- a/MoveAny_Wrath.toc +++ b/MoveAny_Wrath.toc @@ -1,5 +1,5 @@ ## Interface: 30403 -## Version: 1.7.33 +## Version: 1.7.34 ## Title: MoveAny |T135994:16:16:0:0|t by |cff3FC7EBD4KiR |T132115:16:16:0:0|t ## Notes: Move Any Ui or Frame ## Author: D4KiR diff --git a/settings.lua b/settings.lua index 64fbbee..747515e 100644 --- a/settings.lua +++ b/settings.lua @@ -486,8 +486,8 @@ function MoveAny:InitMALock() end ) - MoveAny:SetVersion(AddonName, 135994, "1.7.33") - MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.7.33")) + MoveAny:SetVersion(AddonName, 135994, "1.7.34") + MALock.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.7.34")) MALock.CloseButton:SetScript( "OnClick", function() @@ -1085,7 +1085,13 @@ function MoveAny:ShowProfiles() MAProfiles:SetMovable(true) MAProfiles:EnableMouse(true) MAProfiles:RegisterForDrag("LeftButton") - MAProfiles:SetScript("OnDragStart", MAProfiles.StartMoving) + MAProfiles:SetScript( + "OnDragStart", + function() + MAProfiles:StartMoving() + end + ) + MAProfiles:SetScript( "OnDragStop", function() @@ -1097,7 +1103,7 @@ function MoveAny:ShowProfiles() end ) - MAProfiles.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.7.33")) + MAProfiles.TitleText:SetText(format("MoveAny |T135994:16:16:0:0|t v|cff3FC7EB%s", "1.7.34")) MAProfiles.CloseButton:SetScript( "OnClick", function() @@ -1108,18 +1114,6 @@ function MoveAny:ShowProfiles() end ) - MAProfiles:SetScript("OnDragStart", MAProfiles.StartMoving) - MAProfiles:SetScript( - "OnDragStop", - function() - MALock:StopMovingOrSizing() - local p1, _, p3, p4, p5 = MAProfiles:GetPoint() - p4 = MoveAny:Snap(p4) - p5 = MoveAny:Snap(p5) - MoveAny:SetElePoint("MAProfiles", p1, _, p3, p4, p5) - end - ) - MAProfiles:SetResizable(true) MAProfiles:SetResizeBounds(sw, 200, sw + 200, 2000) MAProfiles.DISCORD = CreateFrame("EditBox", "MAProfiles" .. ".DISCORD", MAProfiles, "InputBoxTemplate") @@ -1206,7 +1200,7 @@ function MoveAny:ShowProfiles() end local sliderProfiles = CreateFrame("Slider", nil, MAAddProfile, "UISliderTemplate") - sliderProfiles:SetWidth(MAAddProfile:GetWidth() - 20) + sliderProfiles:SetSize(MAAddProfile:GetWidth() - 20, 16) sliderProfiles:SetPoint("TOPLEFT", MAAddProfile, "TOPLEFT", 10, -26 - 30 - br) if sliderProfiles.Low == nil then sliderProfiles.Low = sliderProfiles:CreateFontString(nil, nil, "GameFontNormal") @@ -4866,7 +4860,7 @@ function MoveAny:LoadAddon() ["name"] = "MoveAny", ["icon"] = 135994, ["dbtab"] = MATAB, - ["vTT"] = {{"MoveAny |T135994:16:16:0:0|t", "v|cff3FC7EB1.7.33"}, {MoveAny:GT("LID_LEFTCLICK"), MoveAny:GT("LID_MMBTNLEFT")}, {MoveAny:GT("LID_RIGHTCLICK"), MoveAny:GT("LID_MMBTNRIGHT")}}, + ["vTT"] = {{"MoveAny |T135994:16:16:0:0|t", "v|cff3FC7EB1.7.34"}, {MoveAny:GT("LID_LEFTCLICK"), MoveAny:GT("LID_MMBTNLEFT")}, {MoveAny:GT("LID_RIGHTCLICK"), MoveAny:GT("LID_MMBTNRIGHT")}}, ["funcL"] = function() MoveAny:ToggleMALock() end,