Go to most recent revision | Compare with Previous | Blame | View Log
--[[ Addon: Taos Group Ultimate Author: TProg Taonnor Created by @Taonnor ]]-- --[[ Global variables ]]-- local MAJOR = "1" local MINOR = "0" local PATCH = "0" local ISMOCKED = true --[[ Class TaosGroupUltimate ]]-- TaosGroupUltimate = TaosGroupUltimate or {} --[[ Class Members ]]-- TaosGroupUltimate.Name = "TaosGroupUltimate" --[[ TaosGroupUltimate:initialize initializes addon ]]-- function TaosGroupUltimate:initialize() -- Initialize logging DebugLogger.Initialize() logTrace("TaosGroupUltimate:initialize") -- Initialize logic SettingsHandler.Initialize() GroupHandler.Initialize() MapPingHandler.Initialize(ISMOCKED) UltimateGroupHandler.Initialize() -- Initialize ui SettingsWindow.Initialize(MAJOR, MINOR, PATCH) SimpleList.Initialize(true, -- TODO: Via Settings, if more options SettingsHandler.SavedVariables.Movable, SettingsHandler.SavedVariables.PosX, SettingsHandler.SavedVariables.PosY) SwimlaneList.Initialize(false, -- TODO: Via Settings, if more options SettingsHandler.SavedVariables.Movable, SettingsHandler.SavedVariables.PosX, SettingsHandler.SavedVariables.PosY) logTrace("TaosGroupUltimate:initialize -> done") end --[[ OnAddOnLoaded if TaosGroupUltimate is loaded, initialize ]]-- local function OnAddOnLoaded(eventCode, addOnName) if addOnName == TaosGroupUltimate.Name then -- Unregister Loaded Callback EVENT_MANAGER:UnregisterForEvent(TaosGroupUltimate.Name, EVENT_ADD_ON_LOADED) -- Initialize TaosGroupUltimate:initialize() end end -- Register Loaded Callback EVENT_MANAGER:RegisterForEvent(TaosGroupUltimate.Name, EVENT_ADD_ON_LOADED, OnAddOnLoaded);