61
Техниче�?кий фор�?м / Re: Работа
« on: April 04, 2010, 12:12:59 PM »
В док
IRC channel - server: waelisch.de channel: #wme (read more)
on "Keypress"
{
// ignore keypresses in the intro screen
if(Scene.Name=="intro") return;
// on Esc or F1 key
if(Keyboard.KeyCode==VK_ESCAPE)
{
// load and display the main menu window
WinCaption.Visible = false;
var WinMainMenu = Game.LoadWindow("interface\system\mainmenu.window");
WinMainMenu.Center();
WinMainMenu.GoSystemExclusive();
Game.UnloadObject(WinMainMenu);
}
else if(Keyboard.KeyCode==VK_F1)
{
Scene.ShowGeometry = !Scene.ShowGeometry;
}
}