Merge pull request #4 from Sattva-108/vehicleUIPlayerFrameFix

Vehicle UI player frame fix
This commit is contained in:
Sattva
2025-03-24 09:34:31 +03:00
committed by GitHub
2 changed files with 54 additions and 2 deletions
+52
View File
@@ -12214,6 +12214,8 @@
_G.TargetFrame_SetLocked = function()
end
-- Create frame table (used for local traversal)
local FrameTable = { DragPlayerFrame = PlayerFrame, DragTargetFrame = TargetFrame }
@@ -12580,6 +12582,56 @@
end
end
end)
--Fix the blizzard bug with animating
-- the PlayerFrame when entering / leavling Vehicle.
-- This versions taints on some server, but is much more perfect.
-- See below this for actual no-taint code.
-- Disable Blizzard animation functions
function PlayerFrame_AnimateOut(self)
-- Instantly update art without animation
PlayerFrame_UpdateArt(self)
end
function PlayerFrame_AnimFinished(self)
-- No need for animation sequences, update instantly
PlayerFrame_UpdateArt(self)
end
function PlayerFrame_UpdateArt(self)
if UnitHasVehicleUI("player") then
PlayerFrame_ToVehicleArt(self, UnitVehicleSkin("player"))
else
PlayerFrame_ToPlayerArt(self)
end
end
--Fix for the blizzard bug with animating
-- the PlayerFrame when entering / leavling Vehicle.
-- This versions doesn't taint, but is NOT perfect.
-- See above for perfect but tainted code.
--do
-- local function FixPlayerFrame()
-- PlayerFrame:ClearAllPoints()
-- PlayerFrame:SetPoint(LeaPlusDB["Frames"]["PlayerFrame"]["Point"], UIParent, LeaPlusDB["Frames"]["PlayerFrame"]["Relative"], LeaPlusDB["Frames"]["PlayerFrame"]["XOffset"], LeaPlusDB["Frames"]["PlayerFrame"]["YOffset"])
-- end
--
-- local bugFrame = CreateFrame("FRAME")
--
-- bugFrame:SetScript("OnEvent", function()
-- FixPlayerFrame()
-- bugFrame:UnregisterEvent("PLAYER_REGEN_ENABLED")
-- end)
--
-- hooksecurefunc("PlayerFrame_SequenceFinished", function()
-- if UnitAffectingCombat("player") then
-- bugFrame:RegisterEvent("PLAYER_REGEN_ENABLED")
-- else
-- FixPlayerFrame()
-- end
-- end)
--end
end
+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"] = "Высокая"