.NET gui help needed
Posted: Tue Dec 06, 2005 8:27 pm
What do I have to do to get this text box to display? I've tried setting enabled and visible to true and also having an explict text1.Draw() in the main loop. What am I doing wrong. It would be super cool if someone remade the original tutrials in c#, cause I'm having trouble doing easy things.
before run loop
in run loop
[/code]
before run loop
Code: Select all
Irrlicht.GUI.IGUIStaticText text1 = device.GUIEnvironment.AddStaticText("TEST", new Irrlicht.Core.Rect(100,100,200,200), true, true, null, 10);
Code: Select all
device.VideoDriver.BeginScene(true, true, new Irrlicht.Video.Color(0,100,100,100));
device.GUIEnvironment.DrawAll();
device.SceneManager.DrawAll();
device.VideoDriver.EndScene();