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);} }
void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e) { // DO STUFF HERE }
private void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e) { // DO STUFF HERE }
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); } }
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); } } }
void CharacterFilter_ChangePortalMode(object sender, ChangePortalModeEventArgs e) { }