Program.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. DbgResource testResource = new DbgResource();
  17. ProjectLibrary.Create(testResource, @"D:\DummyBansheeProject\Resources\testResource");
  18. // Starts main editor window with the specified width/height and render system
  19. // (Window position and sizes are stored internally. Restored upon StartUp and saved upon ShutDown)
  20. //EditorApplication.StartUp(RenderSystem.DX11, 1024, 800);
  21. // TODO - A class to manipulate menu items
  22. //ProjectSelectWindow window = new ProjectSelectWindow();
  23. //GUIElementStateStyle dbgStyle = new GUIElementStateStyle();
  24. //Color newColor = Color.red;
  25. //dbgStyle.textColor = newColor;
  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. }