Full screen game preview for Atom viewport

This commit is contained in:
Yuriy Toporovskyy
2021-06-14 10:02:49 -04:00
parent aee7fc72cc
commit 73d5617af3
7 changed files with 174 additions and 4 deletions
+6
View File
@@ -947,6 +947,12 @@ void SEditorSettings::PostInitApply()
REGISTER_CVAR2_CB("ed_keepEditorActive", &keepEditorActive, 0, VF_NULL, "Keep the editor active, even if no focus is set", KeepEditorActiveChanged);
REGISTER_CVAR2("g_TemporaryLevelName", &g_TemporaryLevelName, "temp_level", VF_NULL, "Temporary level named used for experimental levels.");
REGISTER_INT("ed_previewGameInFullscreen", 0, VF_DEV_ONLY, "Preview the game (Ctrl+G, \"Play Game\", etc.) in fullscreen. 0 = no, 1 = yes");
gEnv->pConsole->GetCVar("ed_previewGameInFullscreen")->SetLimits(0, 1);
REGISTER_INT("ed_previewGameInFullscreen_once", 0, VF_DEV_ONLY | VF_INVISIBLE, "Preview the game (Ctrl+G, \"Play Game\", etc.) in fullscreen once. 0 = no, 1 = yes");
gEnv->pConsole->GetCVar("ed_previewGameInFullscreen_once")->SetLimits(0, 1);
CCryEditApp::instance()->KeepEditorActive(keepEditorActive > 0);
}