public static string version = "2.0.18"; // Must match version in Version.txt public void Initialize() { isLaunched = true; AutoEquipSettings.Load(); if (AutoUpdater.CheckUpdate(version)) { Logger.Log("New version downloaded, restarting, please wait"); ToolBox.Restart(); return; } Logger.Log($"Launching version {version} on client {WoWVersion}"); AutoDetectMyClassSpec(); LoadWantedItemTypesList(); WAECharacterSheet.RecordKnownSkills(); detectionPulse.DoWork += BackGroundPulse; detectionPulse.RunWorkerAsync(); EventsLua.AttachEventLua("CHARACTER_POINTS_CHANGED", e => AutoDetectMyClassSpec()); EventsLua.AttachEventLua("SKILL_LINES_CHANGED", e => WAECharacterSheet.RecordKnownSkills()); EventsLua.AttachEventLua("QUEST_COMPLETE", e => WAEQuest.QuestRewardGossipOpen = true); EventsLuaWithArgs.OnEventsLuaStringWithArgs += OnLuaEventsWithArgs; wManager.Events.OthersEvents.OnSelectQuestRewardItem += WAEQuest.SelectReward; LUASetup(); }
public void Settings() { AutoEquipSettings.Load(); AutoEquipSettings.CurrentSettings.ShowConfiguration(); AutoEquipSettings.CurrentSettings.Save(); }