Beispiel #1
0
 private void KeyMouseManager_SomeKeyPressd(KeyCode keyCode)
 {
     if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.FullScreen))
     {
         SetFullScreen();
     }
     else if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.Screenshot))
     {
         renderWindow.WriteContentsToTimestampedFile("ScreenShot_", ".jpg");
         outputMgr.DisplayMessage(string.Format(locateMgr.GetLocalizedString(LocateFileType.GameString, "str_screenshots_saved_to_{0}"), Environment.CurrentDirectory));
     }
     else if (keyCode == KeyMapperManager.Instance.GetKey(GameKeyCode.ShowOgreLogo))
     {
         if (trayMgr.isLogoVisible())
         {
             trayMgr.hideFrameStats();
             trayMgr.hideLogo();
         }
         else
         {
             trayMgr.showFrameStats(TrayLocation.TL_BOTTOMLEFT);
             trayMgr.showLogo(TrayLocation.TL_BOTTOMRIGHT);
         }
     }
 }
Beispiel #2
0
 private void KeyMouseManager_SomeKeyPressd(KeyCollection keyCollection)
 {
     if (keyCollection == KeyMapperManager.Instance.GetKeyCollection(GameKeyCode.FullScreen))
     {
         SwitchFullScreen();
     }
     else if (keyCollection == KeyMapperManager.Instance.GetKeyCollection(GameKeyCode.Screenshot))
     {
         renderWindow.WriteContentsToTimestampedFile("ScreenShot_", ".jpg");
         outputMgr.DisplayMessage(string.Format(locateMgr.GetLocalizedString(LocateFileType.GameString, "str_screenshots_saved_to_{0}"), Environment.CurrentDirectory));
     }
     //else if (keyCollection == KeyMapperManager.Instance.GetKeyCollection(GameKeyCode.ShowOgreLogo))
     //{
     //	if (UIManager.Instance.isLogoVisible())
     //	{
     //		UIManager.Instance.HideFrameStats();
     //		UIManager.Instance.hideLogo();
     //	}
     //	else
     //	{
     //		UIManager.Instance.showFrameStats(UIWidgetLocation.TL_BOTTOMLEFT);
     //		UIManager.Instance.ShowLogo(UIWidgetLocation.TL_BOTTOMRIGHT);
     //	}
     //}
 }
Beispiel #3
0
        public bool keyPressed(KeyEvent keyEventRef)
        {
            if (keyboard.IsKeyDown(KeyCode.KC_V))
            {
                renderWindow.WriteContentsToTimestampedFile("AMGE_ScreenShot_", ".jpg");
                outputMgr.DisplayMessage(string.Format(locateMgr.GetLocalizedString(LocateFileType.GameString, "str_screenshots_saved_to_{0}"), Environment.CurrentDirectory));
                return(true);
            }
            else if (keyboard.IsKeyDown(KeyCode.KC_O))
            {
                if (trayMgr.isLogoVisible())
                {
                    trayMgr.hideFrameStats();
                    trayMgr.hideLogo();
                }
                else
                {
                    trayMgr.showFrameStats(TrayLocation.TL_BOTTOMLEFT);
                    trayMgr.showLogo(TrayLocation.TL_BOTTOMRIGHT);
                }
            }

            return(true);
        }