Program.cs 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. using System;
  2. using System.Collections.Generic;
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. class Program
  7. {
  8. private static EditorApplication app;
  9. static void Start()
  10. {
  11. app = new EditorApplication();
  12. DbgResource testResource = new DbgResource();
  13. //ProjectLibrary.Create(testResource, @"testResource");
  14. // Starts main editor window with the specified width/height and render system
  15. // (Window position and sizes are stored internally. Restored upon StartUp and saved upon ShutDown)
  16. //EditorApplication.StartUp(RenderSystem.DX11, 1024, 800);
  17. // TODO - A class to manipulate menu items
  18. //ProjectSelectWindow window = new ProjectSelectWindow();
  19. //GUIElementStateStyle dbgStyle = new GUIElementStateStyle();
  20. //Color newColor = Color.red;
  21. //dbgStyle.textColor = newColor;
  22. }
  23. static void EditorUpdate()
  24. {
  25. app.EditorUpdate();
  26. }
  27. }
  28. //class SceneView : EditorWindow
  29. //{
  30. // SceneView()
  31. // {
  32. // GUI is a GUILayout that is initialized internally by EditorWindow
  33. //GUI.AddButton("Some text");
  34. //GUI.AddXLayout();
  35. //GUI.CreateAreaFixed(100, 100, 400, 400); // GUIArea creating another GUIArea
  36. // Add support for GUIContent
  37. // Add support for GUILayoutOptions
  38. // Add support for GUIElementStyle and GUISkin - For now ignore this as I need to deal with Fonts, Textures, SpriteTextures, etc.
  39. // }
  40. //}
  41. //class MyGUI : //GUIWidget // GUIWidget is automatically initialized with Game render window. Editor GUIWidgets are specially initialized
  42. //{
  43. //}
  44. }