From a19adccf82e75c9a7ad1abde87abb91af693146b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Tue, 5 Jul 2022 11:51:49 +0200 Subject: [PATCH] startanims now can be disabled --- config.cpp | 4 ++++ screenshot.cpp | 2 ++ 2 files changed, 6 insertions(+) diff --git a/config.cpp b/config.cpp index 2634ee74..d290c688 100644 --- a/config.cpp +++ b/config.cpp @@ -742,6 +742,9 @@ EX void initConfig() { -> editable(0, 8, 1, "menu map darkening", "A larger number means darker game map in the background. Set to 8 to disable the background.", 'd') -> set_sets([] { dialog::bound_low(0); dialog::bound_up(8); dialog::dialogflags |= sm::DARKEN; }); + param_b(startanims::enabled, "startanim", true) + -> editable("start animations", 's'); + addsaver(vid.flasheffects, "flasheffects", 1); param_f(vid.binary_width, "bwidth", "binary-tiling-width", 1); @@ -1846,6 +1849,7 @@ EX void configureInterface() { }); add_edit(menu_darkening); + add_edit(startanims::enabled); dialog::addBreak(50); dialog::addBack(); diff --git a/screenshot.cpp b/screenshot.cpp index d370fb2e..f02d115d 100644 --- a/screenshot.cpp +++ b/screenshot.cpp @@ -1883,6 +1883,8 @@ EX } EX namespace startanims { +EX bool enabled = true; + int ticks_start = 0; #if HDR