コード例 #1
0
 private void CombatHud_ChangePortalMode(object sender, ChangePortalModeEventArgs e)
 {
     try
     {
         CombatHudMobTrackingList.Clear();
         foreach(WorldObject wo in Core.WorldFilter.GetByObjectClass(ObjectClass.Monster))
         {
             CombatHudMobTrackingList.Add(new MonsterObject(wo));
         }
     }catch(Exception ex){LogError(ex);}
 }
コード例 #2
0
ファイル: charStats.cs プロジェクト: ekozlowski/EdsACPlugin
 void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e)
 {
     // DO STUFF HERE
 }
コード例 #3
0
ファイル: charStats.cs プロジェクト: fartwhif/Warehouse
 private void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e)
 {
     // DO STUFF HERE
 }
コード例 #4
0
ファイル: PluginCore.cs プロジェクト: joshlatte/goarrow
		private void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e)
		{
			try
			{
				if (mLoggedIn && chkAutoUpdateRecalls.Checked)
				{
					if (e.Type == PortalEventType.EnterPortal)
					{
						if (mRecallingToBindstone == RecallStep.RecallStarted)
							mRecallingToBindstone = RecallStep.EnteredPortal;

						if (mRecallingToLSBind == RecallStep.RecallStarted)
							mRecallingToLSBind = RecallStep.EnteredPortal;

						if (mRecallingToLSTie == RecallStep.RecallStarted)
							mRecallingToLSTie = RecallStep.EnteredPortal;

						if (mRecallingToPrimaryPortal == RecallStep.RecallStarted)
							mRecallingToPrimaryPortal = RecallStep.EnteredPortal;

						if (mRecallingToSecondaryPortal == RecallStep.RecallStarted)
							mRecallingToSecondaryPortal = RecallStep.EnteredPortal;
					}
					else if (e.Type == PortalEventType.ExitPortal)
					{
						RouteStartType type = RouteStartType.Regular;

						if (mRecallingToPrimaryPortal == RecallStep.EnteredPortal)
						{
							type = RouteStartType.PrimaryPortalTie;
						}
						else if (mRecallingToSecondaryPortal == RecallStep.EnteredPortal)
						{
							type = RouteStartType.SecondaryPortalTie;
						}

						if (type != RouteStartType.Regular && !mDungeonHud.IsDungeon(Host.Actions.Landcell))
						{
							RouteStart startLoc = GetStartLocationByType(type);
							Coordinates coords = Coordinates.Round(PlayerCoords, 1);
							if (startLoc.Coords != coords)
							{
								startLoc.Coords = coords;
								RefreshStartLocationListCoords();
								if (startLoc.Enabled)
									Util.Message(startLoc.Name + " start location set to " + startLoc.Coords);
							}
						}

						mRecallingToPrimaryPortal = RecallStep.NotRecalling;
						mRecallingToSecondaryPortal = RecallStep.NotRecalling;
					}
				}
			}
			catch (Exception ex) { Util.HandleException(ex); }
		}
コード例 #5
0
        internal void WriteObject(ChangePortalModeEventArgs obj)
        {
            if (ActiveSettings.Instance.DebugLevel == DebugLevel.None)
                return;

            lock (this._writeLock)
            {
                using (StreamWriter stream = new StreamWriter(this._currentPath, true))
                {
                    this.LogRawMessage(this.FormatWithPrefix("ChangePortalModeEventArgs"), stream);
                    this.LogRawMessage(string.Format("  PortalEventType = {0}", obj.Type), stream);

                    //this.WriteCurrentStateStuff(stream, false);

                    this.LogRawMessage("", stream);
                }
            }
        }
コード例 #6
0
 void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e)
 {
 }