79 lines
2.1 KiB
Lua
79 lines
2.1 KiB
Lua
WeakAuras = {}
|
|
WeakAuras.L = {}
|
|
WeakAuras.frames = {}
|
|
|
|
WeakAuras.normalWidth = 1.25
|
|
WeakAuras.halfWidth = WeakAuras.normalWidth / 2
|
|
WeakAuras.doubleWidth = WeakAuras.normalWidth * 2
|
|
|
|
local versionStringFromToc = GetAddOnMetadata("WeakAuras", "Version")
|
|
local versionString = "2.17.4"
|
|
local buildTime = "20200422171414"
|
|
|
|
WeakAuras.versionString = versionStringFromToc
|
|
WeakAuras.buildTime = buildTime
|
|
WeakAuras.printPrefix = "|cff9900ffWeakAuras:|r "
|
|
WeakAuras.newFeatureString = "|TInterface\\OptionsFrame\\UI-OptionsFrame-NewFeatureIcon:0|t"
|
|
WeakAuras.BuildInfo = select(4, GetBuildInfo())
|
|
|
|
function WeakAuras.IsClassic()
|
|
return false
|
|
end
|
|
|
|
function WeakAuras.IsCorrectVersion()
|
|
return true
|
|
end
|
|
|
|
WeakAuras.prettyPrint = function(msg)
|
|
print(WeakAuras.printPrefix .. msg)
|
|
end
|
|
|
|
WeakAuras.versionMismatchPrint = function()
|
|
WeakAuras.prettyPrint("You need to restart your game client to complete the WeakAuras update!")
|
|
end
|
|
|
|
if versionString ~= versionStringFromToc and versionStringFromToc ~= "Dev" then
|
|
C_Timer.After(1, WeakAuras.versionMismatchPrint)
|
|
end
|
|
|
|
WeakAuras.PowerAurasPath = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Auras\\"
|
|
WeakAuras.PowerAurasSoundPath = "Interface\\Addons\\WeakAuras\\PowerAurasMedia\\Sounds\\"
|
|
|
|
-- force enable WeakAurasCompanion and Archive because some addon managers interfere with it
|
|
EnableAddOn("WeakAurasCompanion")
|
|
EnableAddOn("WeakAurasArchive")
|
|
|
|
--These function stubs are defined here to reduce the number of errors that occur if WeakAuras.lua fails to compile
|
|
function WeakAuras.RegisterRegionType()
|
|
end
|
|
|
|
function WeakAuras.RegisterRegionOptions()
|
|
end
|
|
|
|
function WeakAuras.StartProfileSystem()
|
|
end
|
|
|
|
function WeakAuras.StartProfileAura()
|
|
end
|
|
|
|
function WeakAuras.StopProfileSystem()
|
|
end
|
|
|
|
function WeakAuras.StopProfileAura()
|
|
end
|
|
|
|
-- if weakauras shuts down due to being installed on the wrong target, keep the bindings from erroring
|
|
function WeakAuras.StartProfile()
|
|
end
|
|
|
|
function WeakAuras.StopProfile()
|
|
end
|
|
|
|
function WeakAuras.PrintProfile()
|
|
end
|
|
|
|
function WeakAuras.CountWagoUpdates()
|
|
-- XXX this is to work around the Companion app trying to use our stuff!
|
|
return 0
|
|
end
|