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" --[[ Class TaosGroupUltimate ]]-- TaosGroupUltimate = {} --[[ Class Members ]]-- TaosGroupUltimate.Name = "TaosGroupUltimate" --[[ Debug ]]-- function logDebug(name, value) if (DEBUG_ACTIVE == false) then return end if (value == nil) then d("--- " .. name .. " ---") else d(name .. ": " .. tostring(value)) end end --[[ TaosGroupUltimate:initialize initializes addon ]]-- function TaosGroupUltimate:initialize() -- Initialize logic GroupHandler:Initialize() MapPingHandler:Initialize() -- Initialize settings Settings:Initialize() SettingsWindow:Initialize(MAJOR, MINOR, PATCH) -- Initialize ui SimpleList:Initialize(false, -- TODO: Via Settings, if more options Settings.SavedVariables.Movable, Settings.SavedVariables.PosX, Settings.SavedVariables.PosY) 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);