Program.cs 1.9 KB

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