Files
InstanceJournal/InstanceJournal.lua
T
2026-05-24 03:40:00 +08:00

28 lines
683 B
Lua

IJ_VERSION_MAJOR = "1"
IJ_VERSION_MINOR = "4"
IJ_VERSION_PATCH = "0"
IJ_IS_USING_NAMPOWER = false
InstanceJournal = InstanceJournal or {}
function InstanceJournal:ToggleInstanceJournal()
if IJ_InstanceJournalFrame:IsShown() then
IJ_InstanceJournalFrame:Hide()
else
IJ_InstanceJournalFrame:Show()
end
end
local IJ_InitFrame = CreateFrame("Frame")
IJ_InitFrame:RegisterEvent("PLAYER_LOGIN")
IJ_InitFrame:SetScript("OnEvent", function()
IJ_InitFrame:UnregisterEvent("PLAYER_LOGIN")
if GetNampowerVersion then
local major, minor = GetNampowerVersion()
IJ_IS_USING_NAMPOWER = major > 4 or (major == 4 and minor >= 6)
end
end)