HydraUI

HydraUI

841k Downloads

Classic Era Vehicle Seat indicator with latest HydraUI Version

Kewlie opened this issue ยท 1 comments

commented

Hi Hydra,

since the last update that was pushed to curse people playing on classic era have found that the vehicleseat indicator was causing issues and failing to load other HydraUI elements

i have come up with a temporary fix that seems to work for those playing on classic era via adding if classic then not to load that segment of script

starting on line 147 hydraui/elements/general.lua and replacing to the end of file with

`if HydraUI.IsClassic then return
else

local SeatIndicator = HydraUI:NewModule("Vehicle Seats")

local SetSeatIndicatorPosition = function(self, anchor, parent)
if (parent ~= SeatIndicator) then
self:ClearAllPoints()
self:SetPoint("CENTER", SeatIndicator, 0, 0)
end
end

function SeatIndicator:Load()
local Anchor, Parent, Anchor2, X, Y = VehicleSeatIndicator:GetPoint()

self:SetSize(VehicleSeatIndicator:GetSize())
--self:SetPoint("CENTER", VehicleSeatIndicator, -360, 10)
self:SetPoint(Anchor, Parent, Anchor2, X, Y)

VehicleSeatIndicator:SetScript("OnShow", nil)
VehicleSeatIndicator:SetScript("OnHide", nil)
hooksecurefunc(VehicleSeatIndicator, "SetPoint", SetSeatIndicatorPosition)

HydraUI:CreateMover(self)

end
end`

as stated this is a temp fix as im unsure if the classic era client has "vehicle seats" therefore needing the indicator panel

commented

Thanks for the report as always, 2.03 fixes this issue