GameWindow.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. using BansheeEngine;
  2. namespace BansheeEditor
  3. {
  4. /// <summary>
  5. /// Displays in-game viewport in the editor.
  6. /// </summary>
  7. public class GameWindow : EditorWindow // TODO - Dummy class, unfinished
  8. {
  9. /// <summary>
  10. /// Opens the game window.
  11. /// </summary>
  12. [MenuItem("Windows/Game", ButtonModifier.CtrlAlt, ButtonCode.G, 6000)]
  13. private static void OpenGameWindow()
  14. {
  15. OpenWindow<GameWindow>();
  16. }
  17. /// <summary>
  18. /// Starts execution of the game in the game window.
  19. /// </summary>
  20. [MenuItem("Tools/Play", 9300)]
  21. [ToolbarItem("Play", ToolbarIcon.Play, "", 1800, true)]
  22. private static void Play()
  23. {
  24. // TODO - Not implemented
  25. }
  26. /// <summary>
  27. /// Pauses the execution of the game on the current frame.
  28. /// </summary>
  29. [MenuItem("Tools/Pause", 9299)]
  30. [ToolbarItem("Pause", ToolbarIcon.Pause, "", 1799)]
  31. private static void Pause()
  32. {
  33. // TODO - Not implemented
  34. }
  35. /// <summary>
  36. /// Moves the execution of the game by one frame forward.
  37. /// </summary>
  38. [MenuItem("Tools/Step", 9298)]
  39. [ToolbarItem("Step", ToolbarIcon.Step, "", 1798)]
  40. private static void Step()
  41. {
  42. // TODO - Not implemented
  43. }
  44. /// <inheritdoc/>
  45. protected override LocString GetDisplayName()
  46. {
  47. return new LocEdString("Game");
  48. }
  49. }
  50. }