Merge pull request #511 from Flamanis/Port-to-Era

First pass on attempting to work on Classic_Era
This commit is contained in:
Tercio Jose
2023-05-06 15:09:41 -03:00
committed by GitHub
7 changed files with 265 additions and 12 deletions
@@ -1,6 +1,6 @@
--do not load if this is a classic version of the game
if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow()) then
if (DetailsFramework.IsTBCWow() or DetailsFramework.IsWotLKWow() or DetailsFramework.IsClassicWow()) then
return
end
@@ -2354,7 +2354,9 @@ end
function StreamOverlay:OnEvent (_, event, ...)
if (DetailsFramework and DetailsFramework.IsClassicWow()) then
return
end
if (event == "ADDON_LOADED") then
local AddonName = select (1, ...)
if (AddonName == "Details_Streamer") then
@@ -2363,9 +2365,7 @@ function StreamOverlay:OnEvent (_, event, ...)
if (_G.Details) then
if (DetailsFramework.IsClassicWow()) then
return
end
--> create widgets
CreatePluginFrames()