How to build a menu [.NET]

Irrlicht.Net is no longer developed or supported, Irrlicht.Net Cross Platform is a much more complete wrapper. Please ask your C# related questions on their forums first.
Locked
Revan1985
Posts: 89
Joined: Tue May 08, 2007 4:11 pm
Location: Italy

How to build a menu [.NET]

Post 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
CPU: AMD PHENOMII X6 1090T BE 3,2GHZ
RAM : OCZ 8GB 2*4GB DDR3 LOW VOLTAGE 1333
VGA: GeForce GTX680 2GB
HD : 500GB + 500GB + 2x1TB Raid Edition + 500GB External
Motherboard: ASUS CROSSHAIR FORMULA 4 890FX AM3
PSU: Corsair 750W
CPU Cooling: Katana 2
Locked