local _, core = ...; -- Namespace

local L = nil
local LibBase64 = LibStub("LibBase64-1.0")
local AceSerializer = LibStub("AceSerializer-3.0")
local AceGUI = LibStub("AceGUI-3.0")


local Minimap = false

local addon = LibStub("AceAddon-3.0"):NewAddon("WITGuides", "AceConsole-3.0")
local bunnyLDB = LibStub("LibDataBroker-1.1"):NewDataObject("WITGuides!", {
    type = "data source",
    text = "WITGuides!",
    icon = "Interface\\AddOns\\WorthIt-Guides\\Images\\logo",
    OnTooltipShow = function(tooltip)
        tooltip:AddLine("WorthIt Guides")
    end,
    OnClick = function() 

        if not Minimap then
            local frame = AceGUI:Create("Frame")
            frame:SetTitle("WorthIt-Guides")
            frame:SetStatusText("|cff00C78CWorthIt-Guides")
            frame:SetWidth(600)
            frame:SetHeight(500)
            frame:SetCallback("OnClose", function(widget) AceGUI:Release(widget) Minimap = false end)

            frame:SetLayout("Fill")


			
local function SelectGroup(container, event, group)
    local key = group

    if core.Guides[group] == nil then
        print(group)
        key = "NotFound"
    end

    container:ReleaseChildren()
    core.Dashboard(container, core.Guides[key])
end



            local tab =  AceGUI:Create("TreeGroup")
            tab:SetLayout("Flow")
			--tab:SetTreeWidth(200)
			

tab:SetTree(

{
	{ text = '|TInterface\Icons\achievement_guildperk_hastyhearth:16|t '.."Dashboard", value = "Dashboard", }, 
	
	{ text = '|TInterface\Icons\achievement_guildperk_hastyhearth:16|t '.."War-Within Guides", value = "CurrentExpansion", children = { 
	
				{ text = 'Character Gearing 590', value = 'Gear590To626',children = {
				
				{ text = 'Leverage Renown Reputations', value = 'LeverageRenownReputations'},
				{ text = 'Complete Heroic Dungeons', value = 'CompleteHeroicDungeons'},
				{ text = 'Engagein World Content', value = 'EngageinWorldContent'},
				{ text = 'Farm Rares / Crafted Gear', value = 'FarmRaresandUtilizeCraftedGear'},
				{ text = 'Delves', value = 'DelveintoDelves'},
				{ text = 'Gear Upgrade Vendors', value = 'GearUpgradeVendors'},
				{ text = 'Quick Checklist', value = 'QuickChecklist'},				
				
				
					}
				
				},
				
				
				
				
				
				{ text = 'Earning Knowledge Points/Artisans Acuity', value = 'AAandKnowledgePoints',children = {
				
				
				
				{ text = 'Earning Knowledge Points', value = 'EarningKnowledgePoints'},	
				{ text = 'Earning Artisans Acuity', value = 'EarningArtisansAcuity'},	
				{ text = 'Efficient Strategies', value = 'EfficientStrategiesforEarningKPandAA'},	
				{ text = 'Potential Issues', value = 'PotentialIssuesandConsiderations'},	
				{ text = 'Daily Plan', value = 'DailyPlan'},	
				{ text = 'Weekly Plan', value = 'WeeklyPlan'},	
				{ text = 'General Tips', value = 'GeneralTips'},					
				
				
				
				
					}
				
				},
				
				
				
				{ text = 'Kej Farming', value = 'KejFarming',children = {
				
				{ text = 'Kej Weekly', value = 'KejFarmingWeekly'},
				{ text = 'Kej Daily', value = 'KejFarmingDaily'},
				{ text = 'Kej Tips', value = 'KejFarmingTips'},				
				
				} },				
	
	
	
		}
	
	}, 	
	
	
	
	--[[ MOUNTS ]]
		{ text='|TInterface\\Icons\\ability_mount_spectraltiger:16|t '.."Mounts", value="Mounts", children = { 
		
			{ text = 'Vanilla', value = 'VanillaMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 				
			
			
			} }, 
			{ text = 'Burning Crusade', value = 'TestGuide2', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Warth of the Lich King', value = 'WotlkMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Cataclysm', value = 'CataMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Mists of Pandaria', value = 'MopMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Warlords of Dreanor', value = 'WodMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Legion', value = 'LegionMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Battle for Azeroth', value = 'BFAMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  },
			{ text = 'Shadowlands', value = 'ShadowlandsMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 
			{ text = 'Dragonflight', value = 'DragonflightMounts', children = { 
			
				{ text = 'Alliance Faction', value = 'AllianceFaction'},
				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
				{ text = 'Reputation Mounts', value = 'Reputation'}, 
				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
				{ text = 'World Boss', value = 'WorldBoss'}, 
				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
				{ text = 'BMAH Mounts', value = 'BMAH'}, 
				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  },
			{ text = 'War Within', value = 'WarWithinMounts', children = { 
			
--				{ text = 'Alliance Faction', value = 'AllianceFaction'},
--				{ text = 'Horde Faction', value = 'HordeFaction'}, 
				{ text = 'Farmed Mounts', value = 'Farmed'}, 
--				{ text = 'Reputation Mounts', value = 'Reputation'}, 
--				{ text = 'Class Mounts', value = 'Class'}, 
				{ text = 'Grind Mounts', value = 'Grind'}, 
--				{ text = 'World Boss', value = 'WorldBoss'}, 
--				{ text = 'Event Mounts', value = 'Events'}, 
				{ text = 'Profession Mounts', value = 'Profession'}, 
--				{ text = 'BMAH Mounts', value = 'BMAH'}, 
--				{ text = 'Vendor Mounts', value = 'Vendor'}, 					
			
			}  }, 			
			
	}
},  

--[[REPUTATIONS ]]
		
		
	{
			--VANILLA REPUTATIONS
			text='|TInterface\\Icons\\achievement_reputation_08:16|t '.."Reputations", 
			value="Reputations",
			children = { 
			{ text = 'Vanilla', value = 'TestGuide3' , children = {
			
			{ text = 'Argent Dawn', value = 'ArgentDawn'},
			{ text = 'Bloodsail Buccaneers', value = 'BloodsailBuccaneers'},			
			{ text = 'Alliance Faction', value = 'AllianceFaction'},	
			{ text = 'Alliance PvP Faction', value = 'AlliancePvPFaction'},	
			{ text = 'Horde Faction', value = 'HordeFaction'},	
			{ text = 'Horde PVP Faction', value = 'HordePVPFaction'},				
			{ text = 'Steamwheele Cartel', value = 'SteamwheeleCartel'},	
			{ text = 'Cenarion Circle', value = 'CenarionCircle'},	
			{ text = 'Thorium Brotherhood', value = 'ThoriumBrotherhood'},	
			{ text = 'Brood of Nozdormu', value = 'BroodofNozdormu'},	
			{ text = 'Ravenholdt', value = 'Ravenholdt'},	
			{ text = 'Hydraxian Waterlords', value = 'HydraxianWaterlords'},	
			{ text = 'Timbermaw Hold', value = 'TimbermawHold'},	
			{ text = 'Darkmoon Faire', value = 'DarkmoonFaire'},	

			
			} },
			
			--TBC REPUTATIONS
			{ text = 'Burning Crusade', value = 'TBCReps' , children = {
			
			{ text = 'Honor Hold', value = 'HonorHold'},	
			{ text = 'Kurenai', value = 'Kurenai'},	
			{ text = 'Thrallmar', value = 'Thrallmar'},	
			{ text = 'Tranquillien', value = 'Tranquillien'},	
			{ text = 'Cenarion Expedition', value = 'CenarionExpedition'},				
			{ text = 'Keepers of Time', value = 'KeepersofTime'},	
			{ text = 'Lower City', value = 'LowerCity'},	
			{ text = 'The Shatar', value = 'TheShatar'},	
			{ text = 'Ogrila', value = 'Ogrila'},	
			{ text = 'The Netherwing', value = 'TheNetherwing'},
			{ text = 'The Consortium', value = 'TheConsortium'},	
			{ text = 'Sporeggar', value = 'Sporeggar'},	
			{ text = 'Shattered Sun Offensive', value = 'ShatteredSunOffensive'},	
			{ text = 'Shatari Skyguard', value = 'ShatariSkyguard'},	
			{ text = 'The Aldor', value = 'TheAldor'},
			{ text = 'The Scryers', value = 'TheScryers'},	
			{ text = 'The Violet Eye', value = 'TheVioletEye'},	
			{ text = 'Ashtongue Deathsworn', value = 'AshtongueDeathsworn'},	
			{ text = 'Scale of the Sands', value = 'ScaleoftheSands'},	
			
			
			} },
			
			-- WRATH OF THE LICH KING ]]
			{ text = 'Warth of the Lich King', value = 'WotlkReps' , children = {
			
			{ text = 'Alliance Vanguard', value = 'AllianceVanguard'},	
			{ text = 'Horde Expadition', value = 'HordeExpadition'},	
			{ text = 'Frenzyheart Tribe', value = 'FrenzyheartTribe'},	
			{ text = 'Sons of Hodir', value = 'SonsofHodir'},	
			{ text = 'The Kaluak', value = 'TheKaluak'},	
			{ text = 'Knights of the EbonBlade', value = 'KnightsoftheEbonBlade'},	
			{ text = 'Argent Crusade', value = 'ArgentCrusade'},	
			{ text = 'The Wyrmrest Accord', value = 'TheWyrmrestAccord'},	
			{ text = 'The Ashen Verdict', value = 'TheAshenVerdict'},	
			{ text = 'Kirin Tor', value = 'KirinTor'},				
			
			
			
			
			} },
			
			--[[CATACLYSM MODULES ]]
			
			{ text = 'Cataclysm', value = 'CataReps' , children = {
			
			{ text = 'Baradins Wardens', value = 'BaradinsWardens'},				
			{ text = 'Wildhammer Clan', value = 'WildhammerClan'},	
			{ text = 'Hellscreams Reach', value = 'HellscreamsReach'},	
			{ text = 'Dragonmaw Clan', value = 'DragonmawClan'},	
			{ text = 'Guardians of Hyjal', value = 'GuardiansofHyjal'},	
			{ text = 'Avengers of Hyjal', value = 'AvengersofHyjal'},	
			{ text = 'Ramkahen', value = 'Ramkahen'},	
			{ text = 'Therazane', value = 'Therazane'},	
			{ text = 'The Earthen Ring', value = 'TheEarthenRing'},	
			
			
			} },
			
			--[[ MISTS OF PANDARIA ]]
			
			
			{ text = 'Mists of Pandaria', value = 'MopReps', children = {
			
			{ text = 'PearlfinJinyu', value = 'PearlfinJinyu'},
			{ text = 'OperationShieldwall', value = 'OperationShieldwall'},
			{ text = 'KirinTorOffensive', value = 'KirinTorOffensive'},
			{ text = 'ForestHozen', value = 'ForestHozen'},
			{ text = 'DominanceOffensive', value = 'DominanceOffensive'},
			{ text = 'SunreaverOnslaught', value = 'SunreaverOnslaught'},
			{ text = 'TheTillers', value = 'TheTillers'},
			{ text = 'TheAnglers', value = 'TheAnglers'},
			{ text = 'TheAugustCelestials', value = 'TheAugustCelestials'},
			{ text = 'OrderoftheCloudSerpent', value = 'OrderoftheCloudSerpent'},
			{ text = 'ShadoPan', value = 'ShadoPan'},
			{ text = 'ShadoPanAssault', value = 'ShadoPanAssault'},
			{ text = 'EmperorShaohao', value = 'EmperorShaohao'},
			{ text = 'TheLorewalkers', value = 'TheLorewalkers'},
			{ text = 'TheBlackPrince', value = 'TheBlackPrince'},
			{ text = 'ShangXisAcademy', value = 'ShangXisAcademy'},
			{ text = 'GoldenLotus', value = 'GoldenLotus'},
			{ text = 'TheKlaxxi', value = 'TheKlaxxi'},
			
			
			
			
			} },
			
			--[[ WARLORDS OF DREANOR]]
			{ text = 'Warlords of Dreanor', value = 'WodReps', children = {
			
			
			{ text = 'Council of Exarchs', value = 'CouncilofExarchs'},
			{ text = 'Handofthe Prophet', value = 'HandoftheProphet'},
			{ text = 'Shatari Defence', value = 'ShatariDefence'},
			{ text = 'Frostwolf Orcs', value = 'FrostwolfOrcs'},
			{ text = 'Voljins Headhunters', value = 'VoljinsHeadhunters'},
			{ text = 'Laughing Skull Orcs', value = 'LaughingSkullOrcs'},
			{ text = 'Arakkoa Outcasts', value = 'ArakkoaOutcasts'},
			{ text = 'Order of the Awakened', value = 'OrderoftheAwakened'},
			{ text = 'Steamwheedle Preservation Society', value = 'SteamwheedlePreservationSociety'},
			{ text = 'The Saberstalkers', value = 'TheSaberstalkers'},			
			
			
			
			} },
			
			--[[LEGION ]]
			
			{ text = 'Legion', value = 'LegionReps', children = {
			
			{ text = 'Court of Farondis', value = 'CourtofFarondis'},	
			{ text = 'Dreamweavers', value = 'Dreamweavers'},	
			{ text = 'Valarjar', value = 'Valarjar'},	
			{ text = 'HighmountainTribe', value = 'HighmountainTribe'},	
			{ text = 'The Wardens', value = 'TheWardens'},	
			{ text = 'Armies of Legionfall', value = 'ArmiesofLegionfall'},	
			{ text = 'Army of the Light / Argussian Reach', value = 'ArmyoftheLightandArgussianReach'},	
			{ text = 'Talons Vengeance', value = 'TalonsVengeance'},	
			{ text = 'Chromie', value = 'Chromie'},	
			{ text = 'Conjurer Margoss', value = 'ConjurerMargoss'},	
			{ text = 'The Nightfallen', value = 'TheNightfallen'},				
			
			
			
			
			
			} },			
			
			-- [[ BATTLE FOR AZEROTH ]] 
			
			{ text = 'Battle for Azeroth', value = 'BFAReps', children = {
			
			{ text = 'Alliance BFA Factions', value = 'AllianceBFAFactions'},	
			{ text = 'Waveblade Ankoan', value = 'WavebladeAnkoan'},	
			{ text = 'Honeyback Hive', value = 'HoneybackHive'},	
			{ text = 'Horde BFA Factions', value = 'HordeBFAFactions'},	
			{ text = 'The Unshackled', value = 'TheUnshackled'},	
			{ text = 'Champions of Azeroth', value = 'ChampionsofAzeroth'},	
			{ text = 'Tortollan Seekers', value = 'TortollanSeekers'},	
			{ text = 'Rustbolt Resistance', value = 'RustboltResistance'},	
			{ text = 'Rajani', value = 'Rajani'},	
			{ text = 'Uldum Accord', value = 'UldumAccord'},				
			
			
			
			
			} },
			
			--[[ SHADOWLANDS ]] 
			
			
			{ text = 'Shadowlands', value = 'ShadowlandsReps', children = {
			
			{ text = 'The Ascended', value = 'TheAscended'},	
			{ text = 'The Undying Army', value = 'TheUndyingArmy'},	
			{ text = 'The Wild Hunt', value = 'TheWildHunt'},	
			{ text = 'Court of Harvesters', value = 'CourtofHarvesters'},	
			{ text = 'Venari', value = 'Venari'},	
			{ text = 'The Avowed', value = 'TheAvowed'},	
			{ text = 'Court of Night', value = 'CourtofNight'},	
			{ text = 'Deaths Advance', value = 'DeathsAdvance'},	
			{ text = 'The Archivists Codex', value = 'TheArchivistsCodex'},	
			{ text = 'Ember Court', value = 'EmberCourt'},				
			
			
			
			
			} },
			
			--[[ DRAGONFLIGHT ]] 
			
			{ text = 'Dragonflight', value = 'DragonflightReps', children = {
			
			{ text = 'Valdrakken Accord', value = 'ValdrakkenAccord'},	
			{ text = 'Dragonscale Expedition', value = 'DragonscaleExpedition'},	
			{ text = 'Iskaara Tuskarr', value = 'IskaaraTuskarr'},	
			{ text = 'Maruuk Centaur', value = 'MaruukCentaur'},	
			{ text = 'Cobalt Assembly', value = 'CobaltAssembly'},	
			{ text = 'Sabellian', value = 'Sabellian'},	
			{ text = 'Wrathion', value = 'Wrathion'},	
			{ text = 'Obsidian Warders', value = 'ObsidianWarders'},	
			{ text = 'Dark Talons', value = 'DarkTalons'},				
			
			
			
			
			} },
			
			--[[ WAR WITHIN ]] 
			
			{ text = 'War Within', value = 'WarWithinReps', children = {
			
	--		{ text = 'Farathi Expedition', value = 'FarathiExpedition'},	
	--		{ text = 'Twilight Court', value = 'TwilightCourt'},	
	--		{ text = 'Xal’atath’s Acolytes', value = 'XalatathsAcolytes'},	
	--		{ text = 'Eonars Guardians', value = 'EonarsGuardians'},	
	--		{ text = 'Arathor’s Legacy', value = 'ArathorsLegacy'},	
	--		{ text = 'Order of the Infinite Stars', value = 'OrderoftheInfiniteStars'},	
			{ text = 'Assembly of the Deeps', value = 'AssemblyoftheDeeps'},
			{ text = 'Council of Dornogal', value = 'CouncilofDornogal'},	
			{ text = 'Hallowfall Arathi', value = 'HallowfallArathi'},	
			{ text = 'Severed Threads', value = 'SeveredThreads'},				
			
			
			
			} },
			
			

			
	}
			
}, 

 --[[ GOLD MAKING inv_misc_coin_01]] 
	{ text='|TInterface\\Icons\\inv_misc_coin_01:16|t '.."Gold Making", value="GoldMaking", children = { 
	
			{ text = 'A Beginners Guide To Gold Making', value = 'ABeginnersGuideToGoldMaking' }, 
			{ text = 'Crafting 101', value = 'Crafting101' }, 
			{ text = 'Flipping 101', value = 'Flipping101' }, 
			{ text = 'Gold Farming 101', value = 'GoldFarming101' }, 
			{ text = 'Classes For Better Gold', value = 'ClassesForBetterGold' }, 
			{ text = 'Optimize Gold With Racials', value = 'OptimizeGoldWithRacials' }, 
			{ text = 'Principles of Gold Making', value = 'PrinciplesofGoldMaking' }, 
	
	
	
	
			
	}
			
},  








--[[ PROFESSIONS ]]
	{ text='|TInterface\\Icons\\70_professions_scroll_02:16|t '.."Professions", value="Professions", children = { 
			
			
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Alchemy', value = 'Alchemy', children = { 
				
				
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithinAlchemy',},				
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'DragonflightAlchemy',},				
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'ShadowlandsAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle For Azeroth', value = 'BattleForAzerothAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'LegionAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords Of Dreanor', value = 'WarlordsOfDreanorAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists Of Pandaria', value = 'MistsOfPandariaAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'CataclysmAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKingAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Burning Crusade', value = 'BurningCrusadeAlchemy',},
				{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'VanillaAlchemy',},
				
				
				
				}
			}, 
			
			
			{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Engineering', value = 'Engineering', children = { 
						
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Vanilla', value = 'Vanilla',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Cataclysm', value = 'Cataclysm',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Legion', value = 'Legion',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Shadowlands', value = 'Shadowlands',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'Dragonflight', value = 'Dragonflight',},
				{ text = '|TInterface\\Icons\\ui_profession_engineering:16|t'..'War Within', value = 'WarWithin',},				
			
				}
			},
			
			
			-- [[ LEATHER WORKING ]] 
			
						{ text = '|TInterface\\Icons\\ui_profession_leatherworking:16|t'..'Leatherworking', value = 'Leatherworking', children = { 
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			}
			},
			
			
			
			
			
			-- [[ MINING ]] 
			
			
						{ text = '|TInterface\\Icons\\ui_profession_mining:16|t'..'Mining', value = 'Mining', children = { 
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			
			--[[ FISHING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_fishing:16|t'..'Fishing', value = 'Fishing', children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ BLACKSMITHING ]] 
			
			
						{ text = '|TInterface\\Icons\\ui_profession_blacksmithing:16|t'..'Blacksmithing', value = 'Blacksmithing',children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ INSCRIPTION ]] 
			
			
						{ text = '|TInterface\\Icons\\ui_profession_inscription:16|t'..'Inscription', value = 'Inscription', children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ TAILORING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_tailoring:16|t'..'Tailoring', value = 'Tailoring',children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ SKINNING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_skinning:16|t'..'Skinning', value = 'Skinning', children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ ENCHANTING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_enchanting:16|t'..'Enchanting', value = 'Enchanting', children = { 
						
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ JEWELCRAFTING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_jewelcrafting:16|t'..'Jewelcrafting', value = 'Jewelcrafting', children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ HERBALISM ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_herbalism:16|t'..'Herbalism', value = 'Herbalism',children = { 
						
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			}
			},
			
			
			--[[ COOKING ]]
			
			
						{ text = '|TInterface\\Icons\\ui_profession_cooking:16|t'..'Cooking', value = 'Cooking', children = { 
						
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Vanilla', value = 'Vanilla',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'The Burning Crusade', value = 'TheBurningCrusade',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Wrath of the Lich King', value = 'WrathoftheLichKing',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Cataclysm', value = 'Cataclysm',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Mists of Pandaria', value = 'MistsofPandaria',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Warlords of Draenor', value = 'WarlordsofDraenor',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Legion', value = 'Legion',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Battle for Azeroth', value = 'BattleforAzeroth',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Shadowlands', value = 'Shadowlands',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'Dragonflight', value = 'Dragonflight',},
			{ text = '|TInterface\\Icons\\ui_profession_alchemy:16|t'..'War Within', value = 'WarWithin',},			
			
			
			
			}
			},			
			
			
			
	
	}			
},  --[[ SUPPORT ]] 





{
			text='|TInterface\\Icons\\trade_engineering:16|t '.."Support", 
			value="Support",
			children = { 
			{ text = 'TestGuide6', value = 'TestGuide6' }, 
			
			}					
		}
								
	}
								
)
								
								


            tab:SetCallback("OnGroupSelected", SelectGroup)

            tab:SelectByValue("Dashboard")


            frame:AddChild(tab)

            Minimap = true
        end
    end,
})
local icon = LibStub("LibDBIcon-1.0")


function addon.OnTooltipShow(tooltip)
    tooltip:AddLine("WorthIt Guides")
 
end


 
function addon:OnInitialize()
    
    self.db = LibStub("AceDB-3.0"):New("WITGuidesDB", {
        profile = {
            minimap = {
                hide = false,
            },
        },
    })
    icon:Register("WITGuides!", bunnyLDB, self.db.profile.minimap)
    self:RegisterChatCommand("WITGuides", "CommandTheBunnies")
end
 
function addon:CommandTheBunnies()
    self.db.profile.minimap.hide = not self.db.profile.minimap.hide
    if self.db.profile.minimap.hide then
        icon:Hide("WITGuides!")
    else
        icon:Show("WITGuides!")
    end
end
