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); } } }
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); // } //} }
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); }