VisualizerGlobal.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using Server.MirDatabase;
  2. namespace Server.MirForms.VisualMapInfo.Class
  3. {
  4. public static class VisualizerGlobal
  5. {
  6. public static event EventHandler FocusModeActivated;
  7. public static Cursor
  8. Cursor = Cursors.Arrow;
  9. public static void ActivateFocusMode(object o, EventArgs s)
  10. {
  11. if (FocusModeActivated != null)
  12. FocusModeActivated(null, null);
  13. }
  14. public static Server.MirDatabase.MapInfo
  15. MapInfo;
  16. public static int
  17. ZoomLevel = 1; // 1 - 6
  18. public static bool FocusMode = false;
  19. public static bool FocusModeActive
  20. {
  21. get => FocusMode;
  22. set
  23. {
  24. FocusMode = value;
  25. if (FocusMode == true)
  26. ActivateFocusMode(null, null);
  27. }
  28. }
  29. public static MapInfo
  30. ActiveMap;
  31. public static Bitmap
  32. ClippingMap = null;
  33. public static Tool
  34. SelectedTool = Tool.Select;
  35. public static FocusType
  36. SelectedFocusType;
  37. public static Server.MirForms.VisualMapInfo.Control.MineEntry
  38. FocusMineEntry;
  39. public static Server.MirForms.VisualMapInfo.Control.RespawnEntry
  40. FocusRespawnEntry;
  41. public enum Tool
  42. {
  43. Select,
  44. Add,
  45. Move,
  46. Resize,
  47. Focus
  48. }
  49. public enum FocusType
  50. {
  51. None,
  52. Mining,
  53. Respawn,
  54. NPC,
  55. SafeZone,
  56. Guard
  57. }
  58. }
  59. }