Build a Menu [C#]
Posted: Wed May 16, 2007 7:02 pm
ok, i believe to have posted in wrong section, so i repeat it here
Hi all, i'm trying to build a menu in Irrlicht, for my game, but i've some problem...
1) I'm not able to "Clear" the IGUIEnvironment after i quit from a menu
2) I'm trying to dispose the GUIEnvironment, and recreate it
but it don't work
How can i create it?
Thx
Hi all, i'm trying to build a menu in Irrlicht, for my game, but i've some problem...
1) I'm not able to "Clear" the IGUIEnvironment after i quit from a menu
2) I'm trying to dispose the GUIEnvironment, and recreate it
Code: Select all
switch(ev.GUIEvent)
{
case(GUIEventType.ButtonClicked):
if (id == 101)
{
menu = 'p'; // Entra nel menu di gioco
env.Dispose();
env = device.GUIEnvironment;
CreateOnlyBackground();
}
How can i create it?
Thx