Loading...

ElvUI DataText Bars 2

#1
Hi everybody,

I'm currently using ElvUI for WoW Classic and I want to use it with another favorite addon of mine: ElvUI DataText Bars 2.
It seems to be a pretty simple addon but I just can't get it to work with WoW Classic, when I just copy the addon data from retail.
An explicit version for Classic is not available and using /console scriptErrors 1 to get LUA error that could've been thrown by the addon does not show any results.
Anyone got this working with WoW classic or am I out of luck?

ElvUI DataText Bars 2

#7
Maybe Darth_Predator can take a look into the Retail AddOn and he just need to replace

Code: Select all

DB:RegisterEvent("UNIT_ENTERING_VEHICLE", "OnEvent")
DB:RegisterEvent("UNIT_EXITING_VEHICLE", "OnEvent")
with

Code: Select all

if select(4,GetBuildInfo()) >= 20000 then
	DB:RegisterEvent("UNIT_ENTERING_VEHICLE", "OnEvent")
	DB:RegisterEvent("UNIT_EXITING_VEHICLE", "OnEvent")
end
figured out also need to relace

Code: Select all

local inVehicle = (event == "UNIT_ENTERING_VEHICLE" and true) or (event == "UNIT_EXITING_VEHICLE" and false) or UnitInVehicle("player")
in function

Code: Select all

function DB:OnEvent(event, unit)
with

Code: Select all

local inVehicle
if select(4,GetBuildInfo()) >= 20000 then inVehicle = (event == "UNIT_ENTERING_VEHICLE" and true) or (event == "UNIT_EXITING_VEHICLE" and false) or UnitInVehicle("player") end
this way the AddOn works with both Retail and Classic!

greetings
Last edited by fuba82 on Thu Sep 26, 2019 12:21 am, edited 1 time in total.

ElvUI DataText Bars 2

#8
fuba82 wrote:
Wed Sep 25, 2019 10:51 pm
Maybe Darth_Predator can take a look into the Retail AddOn and he just need to replace

Code: Select all

DB:RegisterEvent("UNIT_ENTERING_VEHICLE", "OnEvent")
DB:RegisterEvent("UNIT_EXITING_VEHICLE", "OnEvent")
with

Code: Select all

if select(4,GetBuildInfo()) >= 20000 then
	DB:RegisterEvent("UNIT_ENTERING_VEHICLE", "OnEvent")
	DB:RegisterEvent("UNIT_EXITING_VEHICLE", "OnEvent")
end
so the AddOn works with both Retail and Classic

greetings
Please see this thread viewtopic.php?f=32&t=6807&p=28743#p28151
I always recommend backing up your WTF folder - where your profiles/settings for all addons, including ElvUI are stored.

Who is online

Users browsing this forum: No registered users and 2 guests