public override void OnButtonClick(int buttonId) { switch (buttonId) { case (int)ButtonsOption.EDIT_MARKER_BTN: UserMarkersGump existingGump = UIManager.GetGump <UserMarkersGump>(); existingGump?.Dispose(); var editUserMarkerGump = new UserMarkersGump(_marker.X, _marker.Y, _markers, _marker.ColorName, _marker.MarkerIconName, true, _idx); editUserMarkerGump.EditEnd += OnEditEnd; UIManager.Add(editUserMarkerGump); break; case (int)ButtonsOption.REMOVE_MARKER_BTN: RemoveMarkerEvent.Raise(_idx); break; case (int)ButtonsOption.GOTO_MARKER_BTN: var wmGump = UIManager.GetGump <WorldMapGump>(); if (wmGump != null) { wmGump.GoToMarker(_marker.X, _marker.Y, false); } break; } }
public override void OnButtonClick(int buttonId) { IgnoreManager.RemoveIgnoredTarget(_chName); RemoveMarkerEvent.Raise(); }