protected override void Startup() { try { Globals.Init("SoulSeeker", Host, Core); MVWireupHelper.WireupStart(this, Host); MyAppPath = Assembly.GetExecutingAssembly().Location.ToString(); int num = MyAppPath.LastIndexOf('\\'); if (num > 0) { MyAppPath = MyAppPath.Substring(0, num + 1); } Ally.SoundLocation = MyAppPath.Trim() + "Ally.wav"; Ally.LoadAsync(); Enemy.SoundLocation = MyAppPath.Trim() + "Enemy.wav"; Enemy.LoadAsync(); DelayLogout.Tick += DoLogout; RelogTimer.Tick += DoRelogout; relog = true; FellowLeader = false; } catch (Exception ex) { Util.LogError(ex); } }
protected override void Startup() { try { Globals.Init("TownCrier", Host, Core); Settings.Init(false); MVWireupHelper.WireupStart(this, Host); // App state EventTriggers = new List <EventTrigger>(); TimedTriggers = new List <TimedTrigger>(); ChatTriggers = new List <ChatTrigger>(); Webhooks = new List <Webhook>(); // Set up chat patterns // TODO: Move to this to a static unless I really wanna make this customizable ChatPatterns = new List <ChatPattern>(); ChatPatterns.Add(new ChatPattern(EVENTS.LEVEL, "You are now level ", 13)); ChatPatterns.Add(new ChatPattern(EVENTS.DROPONDEATH, "You've lost ")); // UI RefreshUI(); PopulateEventChoices(); chcMethod.Add("GET", METHOD.GET); chcMethod.Add("POST", METHOD.POST); // Settings LoadSettings(); } catch (Exception ex) { Util.LogError(ex); } }
protected override void Shutdown() { try { MVWireupHelper.WireupEnd(this); } catch (Exception ex) { Util.LogError(ex); } }
public void Dispose() { //Logic events PluginCore.objecttracker.NewObjectDetected -= new Logic.ObjectTracker.delNewObjectDetected(objecttracker_NewObjectDetected); PluginCore.objecttracker.ObjectDeleted -= new Logic.ObjectTracker.delObjectDeleted(objecttracker_ObjectDeleted); //Remove the view MVWireupHelper.WireupEnd(this); }
public MainView() { //Display the view MVWireupHelper.WireupStart(this, PluginCore.host); //Logic events PluginCore.objecttracker.NewObjectDetected += new Logic.ObjectTracker.delNewObjectDetected(objecttracker_NewObjectDetected); PluginCore.objecttracker.ObjectDeleted += new Logic.ObjectTracker.delObjectDeleted(objecttracker_ObjectDeleted); }
/// <summary> /// This is called when the plugin is shut down. This happens only once. /// </summary> protected override void Shutdown() { try { timer.Stop(); //Destroy the view. MVWireupHelper.WireupEnd(this); } catch (Exception ex) { Util.LogError(ex); } }
/// <summary> /// This is called when the plugin is shut down. This happens only once. /// </summary> protected override void Shutdown() { try { // Save Path Settings //Destroy the view. MVWireupHelper.WireupEnd(this); } catch (Exception ex) { Util.LogError(ex); } }
/// <summary> /// This is called when the plugin is shut down. This happens only once. /// </summary> protected override void Shutdown() { try { //Destroy the view. MVWireupHelper.WireupEnd(this); AllQuestRedrawTimer.Stop(); AutoSaveTimer.Stop(); SaveState(); } catch (Exception ex) { Util.LogError(ex); } }
/// <summary> /// This is called when the plugin is started up. This happens only once. /// </summary> protected override void Startup() { try { // This initializes our static Globals class with references to the key objects your plugin will use, Host and Core. // The OOP way would be to pass Host and Core to your objects, but this is easier. Globals.Init("SamplePluginVVS", Host, Core); //Initialize the view. MVWireupHelper.WireupStart(this, Host); } catch (Exception ex) { Util.LogError(ex); } }
protected override void Shutdown() { try { DisposeAllTimers(); ChatTriggers.Clear(); EventTriggers.Clear(); TimedTriggers.Clear(); Webhooks.Clear(); ChatPatterns.Clear(); MVWireupHelper.WireupEnd(this); } catch (Exception ex) { Util.LogError(ex); } }
/// <summary> // This is called when the plugin is started up. This happens only once. /// </summary> protected override void Startup() { // manually set flags to false on start up @TODO: this should be read from registry or a file somewhere eventually once I learn how to C# LogOnPkFlag = false; LogOnUnknownFlag = false; LogOnFriendlyFlag = false; LogOnAllFlag = false; try { // static Globals class with references to Host and Core. // The OOP way would be to pass Host and Core to your objects, but this is easier. Globals.Init("DucasTest", Host, Core); InitView(); //Initialize the view. MVWireupHelper.WireupStart(this, Host); } catch (Exception ex) { Util.LogError(ex); } }
protected override void Shutdown() { try { // DisposeOnShutdown(); MVWireupHelper.WireupEnd(this); View.Dispose(); EndEvents(); ClearControls(); ClearVariables(); if (CraftbotMasterTimer != null) { CraftbotMasterTimer.Stop(); CraftbotMasterTimer.Tick -= CraftbotMasterTimer_Tick; } Core.CharacterFilter.LoginComplete -= new EventHandler(CharacterFilter_LoginComplete); // ClearRuleRelatedComponents(); } catch (Exception ex) { Util.LogError(ex); } }
/// <summary> /// This is called when the plugin is started up. This happens only once. /// </summary> protected override void Startup() { try { // This initializes our static Globals class with references to the key objects your plugin will use, Host and Core. // The OOP way would be to pass Host and Core to your objects, but this is easier. Globals.Init("QuestHelper", Host, Core); //Initialize the view. MVWireupHelper.WireupStart(this, Host); var views = HudView.GetAllViews(); foreach (var view in views) { if (view.Title == "Quest Helper") { qt = new QuestFlagRepository(Core, view); questView = view; } } } catch (Exception ex) { Util.LogError(ex); } }