MCPcopy Create free account
hub / github.com/EasyRPG/Player / CommandToggleFullscreen

Method CommandToggleFullscreen

src/game_interpreter.cpp:4102–4115  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4100}
4101
4102bool Game_Interpreter::CommandToggleFullscreen(lcf::rpg::EventCommand const& /* com */) {
4103 if (!Player::IsRPG2k3ECommands()) {
4104 return true;
4105 }
4106
4107 auto cfg = DisplayUi->GetConfig();
4108 if (!cfg.fullscreen.IsOptionVisible() || cfg.fullscreen.IsLocked()) {
4109 Output::Debug("ToggleFullscreen: Not supported on this platform");
4110 return true;
4111 }
4112
4113 DisplayUi->ToggleFullscreen();
4114 return true;
4115}
4116
4117bool Game_Interpreter::CommandOpenVideoOptions(lcf::rpg::EventCommand const& /* com */) {
4118 if (!Player::IsRPG2k3ECommands()) {

Callers

nothing calls this directly

Calls 4

IsOptionVisibleMethod · 0.80
IsLockedMethod · 0.80
GetConfigMethod · 0.45
ToggleFullscreenMethod · 0.45

Tested by

no test coverage detected