Trying to fix the vehicle UI breaking PlayerFrame
This commit is contained in:
@@ -12213,6 +12213,28 @@
|
|||||||
end
|
end
|
||||||
_G.TargetFrame_SetLocked = function()
|
_G.TargetFrame_SetLocked = function()
|
||||||
end
|
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)
|
-- Create frame table (used for local traversal)
|
||||||
local FrameTable = { DragPlayerFrame = PlayerFrame, DragTargetFrame = TargetFrame }
|
local FrameTable = { DragPlayerFrame = PlayerFrame, DragTargetFrame = TargetFrame }
|
||||||
|
|||||||
@@ -1962,8 +1962,8 @@ L["Hide the combat log"] = "Скрыть журнал боя"
|
|||||||
L["Hide the health bar"] = "Скрыть полосу здоровья"
|
L["Hide the health bar"] = "Скрыть полосу здоровья"
|
||||||
L["Hide the tracking button"] = "Скрыть кнопку отслеживания"
|
L["Hide the tracking button"] = "Скрыть кнопку отслеживания"
|
||||||
L["Hide the world map button"] = "Скрыть кнопку мировой карты"
|
L["Hide the world map button"] = "Скрыть кнопку мировой карты"
|
||||||
L["Hide the zone text bar"] = "Скрыть текстовую панель с названием зоны"
|
L["Hide the zone text bar"] = "Скрыть название зоны"
|
||||||
L["Hide the zoom buttons"] = "Скрыть кнопки масштабирования"
|
L["Hide the zoom buttons"] = "Скрыть кнопки масштаба"
|
||||||
L["Hide tooltips for world units during combat"] = "Скрыть подсказки для мировых боссов во время боя"
|
L["Hide tooltips for world units during combat"] = "Скрыть подсказки для мировых боссов во время боя"
|
||||||
L["Hide zone text"] = "Скрыть название зоны"
|
L["Hide zone text"] = "Скрыть название зоны"
|
||||||
L["High"] = "Высокая"
|
L["High"] = "Высокая"
|
||||||
|
|||||||
Reference in New Issue
Block a user