Trying to fix the vehicle UI breaking PlayerFrame

This commit is contained in:
Sattva
2025-03-24 07:29:37 +03:00
parent 7734422d26
commit 5c50e060b0
2 changed files with 24 additions and 2 deletions
+22
View File
@@ -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 }
+2 -2
View File
@@ -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"] = "Высокая"