EditorApplication.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using System;
  2. using System.Collections.Generic;
  3. namespace BansheeEditor
  4. {
  5. public enum SceneViewTool
  6. {
  7. View,
  8. Move,
  9. Rotate,
  10. Scale
  11. }
  12. public enum HandlePositionMode
  13. {
  14. Center,
  15. Pivot
  16. }
  17. public enum HandleCoordinateMode
  18. {
  19. Local,
  20. World
  21. }
  22. public class EditorApplication
  23. {
  24. private static SceneViewTool activeSceneTool = SceneViewTool.Move; // TODO - Actually retrieve this from somewhere
  25. private static HandlePositionMode handlePositionMode = HandlePositionMode.Pivot; // TODO - Actually retrieve this from somewhere
  26. private static HandleCoordinateMode handleCoordinateMode = HandleCoordinateMode.World; // TODO - Actually retrieve this from somewhere
  27. public static SceneViewTool ActiveSceneTool
  28. {
  29. get { return activeSceneTool; }
  30. set { activeSceneTool = value; } // TODO - Will likely need to update active GUI button when this changes
  31. }
  32. public static HandlePositionMode HandlePositionMode
  33. {
  34. get { return handlePositionMode; }
  35. set { handlePositionMode = value; } // TODO - Will likely need to update active GUI button when this changes
  36. }
  37. public static HandleCoordinateMode HandleCoordinateMode
  38. {
  39. get { return handleCoordinateMode; }
  40. set { handleCoordinateMode = value; } // TODO - Will likely need to update active GUI button when this changes
  41. }
  42. }
  43. }