Program.cs 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. using System;
  2. using System.Collections.Generic;
  3. using BansheeEngine;
  4. namespace BansheeEditor
  5. {
  6. class ProgramEd
  7. {
  8. private static InspectorWindow window;
  9. static void Main()
  10. {
  11. window = EditorWindow.OpenWindow<InspectorWindow>();
  12. SceneObject newDbgObject = new SceneObject("NewDbgObject");
  13. newDbgObject.AddComponent<Debug_Component1>();
  14. newDbgObject.AddComponent<Debug_Component2>();
  15. window.SetObjectToInspect(newDbgObject);
  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. static void EditorUpdate()
  28. {
  29. window.Refresh();
  30. }
  31. }
  32. //class SceneView : EditorWindow
  33. //{
  34. // SceneView()
  35. // {
  36. // GUI is a GUILayout that is initialized internally by EditorWindow
  37. //GUI.AddButton("Some text");
  38. //GUI.AddXLayout();
  39. //GUI.CreateAreaFixed(100, 100, 400, 400); // GUIArea creating another GUIArea
  40. // Add support for GUIContent
  41. // Add support for GUILayoutOptions
  42. // Add support for GUIElementStyle and GUISkin - For now ignore this as I need to deal with Fonts, Textures, SpriteTextures, etc.
  43. // }
  44. //}
  45. //class MyGUI : //GUIWidget // GUIWidget is automatically initialized with Game render window. Editor GUIWidgets are specially initialized
  46. //{
  47. //}
  48. }