SGI = {};

-- General
SGI.LOGO = "|cffffff00<|r|cff16ABB5SGI|r|cffffff00>|r ";
SLASH_SUPERGUILDINVITE1 = "/sgi";
SLASH_SUPERGUILDINVITE2 = "/superguildinvite";
SGI_DATA_INDEX = UnitName("player").." - "..GetRealmName() or "?";
SGI.VERSION_ALERT_COOLDOWN = false;

SGI_MAX_LEVEL_SUPER_SCAN = 120;
SGI_BREAK_POINT_SUPER_SCAN = SGI_MAX_LEVEL_SUPER_SCAN - 10;
SGI_MIN_LEVEL_SUPER_SCAN = 1;

-- Version realted
SGI.VERSION_MAJOR = "7.6";
SGI.VERSION_MINOR = ".0";

-- Force Changelog to be shown (For imortant changes)
SGI.FORCE_CHANGELOG = true;

SGI.versionChanges = {
	version = "Version |cff55EE55"..SGI.VERSION_MAJOR..SGI.VERSION_MINOR.."|r",
	items = {
		"Increased maximum scan level to |cff16ABB5110|r",
		"Added |cffA330C9Demon Hunter|r |cffffff00class to SuperScan|r",
		"Fixed compatibility issues with World of Warcraft: |cff008800Legion|r",
		"",
		"Please report any issues to |cff16ABB5SuperGuildInvite@gmail.com|r",
		"",
		"Thank you for using  "..SGI.LOGO.."|cff16ABB5SuperGuildInvite|r",
	},
}

SGI.CommonIssues = {
	"Test1",
	"Test2",
	"Test3",
}

local function defaultFunc(L,key)
	return "857C7C"
end



SGI_CLASS_COLORS = {
	["DEATHKNIGHT"] = "C41F3B",
	["DEMONHUNTER"] = "A330C9",
	["DRUID"] = "FF7D0A",
	["HUNTER"] = "ABD473",
	["MAGE"] = "69CCF0",
	["MONK"] = "00FF96",
	["PALADIN"] = "F58CBA",
	["PRIEST"] = "FFFFFF",
	["ROGUE"] = "FFF569",
	["SHAMAN"] = "0070DE",
	["WARLOCK"] = "9482C9",
	["WARRIOR"] = "C79C6E",
}

SGI_CLASS_COLORS = setmetatable(SGI_CLASS_COLORS, {__index=defaultFunc})


local debugMode = false;
local old = print
function SGI:print(...)
	if (SGI_DATA_INDEX == "?" or type(SGI_DATA) ~= "table") then return end
	if (not SGI_DATA[SGI_DATA_INDEX].settings.checkBox["CHECKBOX_SGI_MUTE"]) then
		old("|cffffff00<|r|cff16ABB5SGI|r|cffffff00>|r|cffffff00",...,"|r")
	end
end
function SGI:debug(...)
	if (debugMode) then
		old("|cffffff00<|r|cff16ABB5SGI|r|cffffff00>|r|cffff3300",...,"|r")
	end
end

function SGI:DebugState(state)
	debugMode = state;
end

SGI:debug("Loading SGI files:");
SGI:debug(">> Constants.lua");