ProjectSelectWindow.cs 848 B

1234567891011121314151617181920212223242526272829303132
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. using BansheeEngine;
  7. namespace BansheeEditor
  8. {
  9. internal sealed class ProjectSelectWindow : ModalWindow
  10. {
  11. private GUITextBox textBox;
  12. public ProjectSelectWindow()
  13. :base(0, 0, 200, 200)
  14. {
  15. //GUILabel label = GUI.main.AddLabel("Test test");
  16. //label.SetContent("Test2");
  17. GUIButton button = GUI.main.AddButton("CLICK ME");
  18. button.OnClick += button_OnClick;
  19. textBox = GUI.main.AddTextBox(true, GUIOption.FixedHeight(100), GUIOption.FixedWidth(100));
  20. textBox.text = "Supsup?";
  21. }
  22. void button_OnClick()
  23. {
  24. textBox.text = "CLICKED!";
  25. }
  26. }
  27. }