Exemplo n.º 1
0
        private void EndEvents()
        {
            chkEnabled.Change       -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnabled_Change);
            chkArmorTink.Change     -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkArmorTink_Change);
            chkItemTink.Change      -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkItemTink_Change);
            chkWeaponTink.Change    -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkWeaponTink_Change);
            chkMagicItemTink.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkMagicItemTink_Change);
            chkSalvaging.Change     -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSalvaging_Change);
            //chkSetUst.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSetUst_Change);
            //chkSetFocusingStone.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkSetFocusingStone_Change);
            chkAlchemy.Change   -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkAlchemy_Change);
            chkCooking.Change   -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkCooking_Change);
            chkFletching.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkFletching_Change);
            chkLockpick.Change  -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkLockpick_Change);
            //  chkTier4Rares.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkTier4Rares_Change);

            chkBuffsEnabled.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffsEnabled_Change);
            chkBuffOnStart.Change  -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffOnStart_Change);
            chkUseBeers.Change     -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseBeers_Change);
            chkUseRares.Change     -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseRares_Change);
            chkUseBuffBot.Change   -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseBuffBot_Change);

            chkLogOff.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkLogOff_Change);
            //chkUseCharge.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseCharge_Change);
            //chkEquip.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEquip_Change);
            //chkUseWeb.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkUseWeb_Change);
            chkRareAllegChan.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkRareAllegChan_Change);
            chkRareTradeChan.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkRareTradeChan_Change);
            chkEnableMail.Change    -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnableMail_Change);
            chkEnterSpamMail.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnterSpamMail_Change);
            chkEnterSpamRare.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkEnterSpamRare_Change);

            //chkCalcMajors.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkCalcMajors_Change);
            //chkJourneymanPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkJourneymanPet_Change);
            //chkArtisanPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkArtisanPet_Change);
            //chkMasterPet.Change -= new EventHandler<MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkMasterPet_Change);
            chkSetBuffingWand.Change -= new EventHandler <MyClasses.MetaViewWrappers.MVCheckBoxChangeEventArgs>(chkBuffingWand_Change);

            Decal.Adapter.CoreManager.Current.ItemSelected -= new EventHandler <ItemSelectedEventArgs>(Current_ItemSelected);
            Core.ChatBoxMessage           -= new EventHandler <Decal.Adapter.ChatTextInterceptEventArgs>(Core_ChatBoxMessage);
            Core.WorldFilter.EnterTrade   -= new EventHandler <Decal.Adapter.Wrappers.EnterTradeEventArgs>(WorldFilter_EnterTrade);
            Core.WorldFilter.AcceptTrade  -= new EventHandler <AcceptTradeEventArgs>(WorldFilter_AcceptTrade);
            Core.WorldFilter.AddTradeItem -= new EventHandler <AddTradeItemEventArgs>(WorldFilter_AddTradeItem);

            CoreManager.Current.RenderFrame -= new EventHandler <EventArgs>(RenderFrame_Equip);
            Core.EchoFilter.ServerDispatch  -= HandymanServerDispatch;
            //  WindowMessage += new EventHandler<WindowMessageEventArgs>(FilterCore_WindowMessage);


            MasterTimer.Stop();
            MasterTimer = null;
            // MasterTimer.Dispose();

            if (BuffingTimer != null)
            {
                BuffingTimer.Stop(); BuffingTimer = null; buffPending = false;
            }
        }
Exemplo n.º 2
0
        private void CharacterFilter_LoginComplete(object sender, EventArgs e)
        {
            Util.WriteToChat("Handyman Plugin now online.");
            try
            {
                MasterTimer.Interval = 1000;
                MasterTimer.Start();
                setupTime = DateTime.Now;
                //  Util.WriteToChat("I am ready to go to setup lists.");
                Initializepaths();

                fillSettingsVariables();
                SetUpXdocs();
                Util.WriteToChat("I have just set up xdocs.");
                setUpLists();
                GetInventory();
                CoreManager.Current.RenderFrame += new EventHandler <EventArgs>(RenderFrame_EquipLists);
            }
            catch (Exception ex) { Util.LogError(ex); }
        }
Exemplo n.º 3
0
 void Awake()
 {
     _instance = this;
 }
Exemplo n.º 4
0
 //Timing tools
 public static Int64 TimerSet(Int64 ms)
 {
     return(MasterTimer.TimeInMS() + ms);
 }
Exemplo n.º 5
0
 public static void DeltaTimeTick()
 {
     frameTimerDelta = (int)(MasterTimer.TimeInMS() - frameTimerStart);
     frameTimerStart = MasterTimer.TimeInMS();
 }
Exemplo n.º 6
0
 public static bool TimerPassed(Int64 timer)
 {
     return(timer < MasterTimer.TimeInMS());
 }
 private void WelcomeForm_Deactivate(object sender, EventArgs e)
 {
     MasterTimer.Stop();
 }
 private void WelcomeForm_Activated(object sender, EventArgs e)
 {
     MasterTimer.Start();
 }