| 123456789101112131415161718192021222324252627282930313233343536373839 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using BansheeEngine;
- namespace BansheeEditor
- {
- internal sealed class ProjectSelectWindow : ModalWindow
- {
- private GUITextBox textBox;
- private GUIListBox listBox;
- public ProjectSelectWindow()
- :base(0, 0, 500, 200)
- {
- //GUILabel label = GUI.main.AddLabel("Test test");
- //label.SetContent("Test2");
- GUIButton button = GUI.main.AddButton("CLICK ME");
- button.OnClick += button_OnClick;
- textBox = GUI.main.AddTextBox(true, GUIOption.FixedHeight(100), GUIOption.FixedWidth(100));
- textBox.text = "Supsup?";
- LocString[] listElems = new LocString[] { "ListElem1", "ListElem2", "ListElem3" };
- listBox = GUI.main.AddListBox(listElems);
- }
- void button_OnClick()
- {
- textBox.text = "CLICKED!";
- LocString[] listElems = new LocString[] { "ListElem4", "ListElem5", "ListElem6" };
- listBox.SetElements(listElems);
- }
- }
- }
|