Page 1 of 1

How to build a menu [.NET]

Posted: Wed May 16, 2007 3:38 pm
by Revan1985
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();
                        }
but it don't work


How can i create it?
Thx