Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] - Adapt the addon for compatibility with classic #228

Open
Neogeekmo opened this issue Jan 22, 2024 · 0 comments
Open

[FEATURE] - Adapt the addon for compatibility with classic #228

Neogeekmo opened this issue Jan 22, 2024 · 0 comments
Labels
APR-V4 APR version 4 Feature New feature or request

Comments

@Neogeekmo
Copy link
Collaborator

use this to detect the version
APR.Season = C_Seasons and C_Seasons.HasActiveSeason() and C_Seasons.GetActiveSeason() -- For classic

for the interface version
local gameVersion = select(4, GetBuildInfo())

and this kind of variable to use the available API
local GetAddOnMetadata = C_AddOns and C_AddOns.GetAddOnMetadata or _G.GetAddOnMetadata

@Neogeekmo Neogeekmo added Feature New feature or request APR-V4 APR version 4 labels Jan 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
APR-V4 APR version 4 Feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant