diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index ca430c5..b5ecd36 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -12213,6 +12213,28 @@ end _G.TargetFrame_SetLocked = function() end + -- **Modify PlayerFrame_AnimateOut to be visually static but still trigger updates** + local original_PlayerFrame_AnimateOut = _G.PlayerFrame_AnimateOut + _G.PlayerFrame_AnimateOut = function(self) + print("PlayerFrame_AnimateOut modified to be static by Leatrix Plus") -- Optional debug print + -- Define a static animation position function (always returns current position) + local function StaticAnimPos(self, fraction) + local point, parent, relative, xoff, yoff = PlayerFrame:GetPoint() + return point, parent, relative, xoff, yoff -- Always return current position + end + + -- Create a modified animation table using the original, but with static position + local StaticPlayerFrameAnimTable = { + totalTime = PlayerFrameAnimTable.totalTime, -- Use original duration + updateFunc = PlayerFrameAnimTable.updateFunc, -- Use original update function + getPosFunc = StaticAnimPos, -- Use our STATIC position function + } + + self.inSeat = false; + self.animFinished = false; + self.inSequence = true; + SetUpAnimation(PlayerFrame, StaticPlayerFrameAnimTable, PlayerFrame_AnimFinished, false) -- Use STATIC animation table + end -- Create frame table (used for local traversal) local FrameTable = { DragPlayerFrame = PlayerFrame, DragTargetFrame = TargetFrame } diff --git a/Leatrix_Plus_Locale.lua b/Leatrix_Plus_Locale.lua index a819ed6..6b76556 100644 --- a/Leatrix_Plus_Locale.lua +++ b/Leatrix_Plus_Locale.lua @@ -1962,8 +1962,8 @@ L["Hide the combat log"] = "Скрыть журнал боя" L["Hide the health bar"] = "Скрыть полосу здоровья" L["Hide the tracking button"] = "Скрыть кнопку отслеживания" L["Hide the world map button"] = "Скрыть кнопку мировой карты" -L["Hide the zone text bar"] = "Скрыть текстовую панель с названием зоны" -L["Hide the zoom buttons"] = "Скрыть кнопки масштабирования" +L["Hide the zone text bar"] = "Скрыть название зоны" +L["Hide the zoom buttons"] = "Скрыть кнопки масштаба" L["Hide tooltips for world units during combat"] = "Скрыть подсказки для мировых боссов во время боя" L["Hide zone text"] = "Скрыть название зоны" L["High"] = "Высокая"