This commit is contained in:
NoM0Re
2025-05-31 22:54:39 +02:00
committed by GitHub
parent 9def6a5ab8
commit bda851552d
58 changed files with 2518 additions and 1671 deletions
+27 -2
View File
@@ -9,16 +9,25 @@ WeakAuras.halfWidth = WeakAuras.normalWidth / 2
WeakAuras.doubleWidth = WeakAuras.normalWidth * 2
local versionStringFromToc = GetAddOnMetadata("WeakAuras", "Version")
local versionString = "5.19.9 Beta"
local versionString = "5.19.10 Beta"
local buildTime = "20250425191700"
local isAwesomeEnabled = C_NamePlate and C_NamePlate.GetNamePlateForUnit and true or false
local flavor
if GetRealmName() == "Onyxia" or (GetRealmName() == "Blackrock [PvP only]" and GetExpansionLevel() == 1) then
flavor = "TBC"
elseif GetRealmName() == "Kezan" then
flavor = "ClassicPlus"
else
flavor = "Wrath"
end
WeakAuras.versionString = versionString
WeakAuras.buildTime = buildTime
WeakAuras.newFeatureString = "|TInterface\\OptionsFrame\\UI-OptionsFrame-NewFeatureIcon:0|t"
WeakAuras.BuildInfo = select(4, GetBuildInfo())
function WeakAuras.isAwesomeEnabled()
function WeakAuras.IsAwesomeEnabled()
return isAwesomeEnabled or false
end
@@ -26,6 +35,22 @@ function WeakAuras.IsCorrectVersion()
return true
end
function WeakAuras.IsWrath()
return flavor == "Wrath"
end
function WeakAuras.IsTBC()
return flavor == "TBC"
end
function WeakAuras.IsClassicPlus()
return flavor == "ClassicPlus"
end
function WeakAuras.IsClassicPlusOrTBC()
return WeakAuras.IsClassicPlus() or WeakAuras.IsTBC()
end
WeakAuras.prettyPrint = function(...)
print("|cff9900ffWeakAuras:|r ", ...)
end