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

Method Game_Quit

src/game_quit.cpp:30–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28constexpr int window_height = 32;
29
30Game_Quit::Game_Quit()
31 : window(0, 0, window_width, window_height, Drawable::Flags::Global)
32{
33 window.SetBackOpacity(128);
34 window.SetZ(Priority_Overlay - 20);
35 OnResolutionChange();
36 Reset();
37}
38
39void Game_Quit::Update() {
40 if (Scene::instance == nullptr || Scene::instance->type == Scene::Title || !Scene::Find(Scene::Title) || !Input::IsPressed(Input::RESET)) {

Callers

nothing calls this directly

Calls 2

SetBackOpacityMethod · 0.80
SetZMethod · 0.80

Tested by

no test coverage detected