[QoL] FPS Counter disabled by default, show message after screenshot, show message if noclip is enabled/disabled (#591)

* FPS counter is off by default, enable with F4

* A message or error is now shown on-screen if a screenshot is taken with F2

* Show message when noclip is enabled or disabled
This commit is contained in:
guzlad
2025-10-14 17:04:08 +02:00
committed by GitHub
parent 74270bcca4
commit a0369cd612
4 changed files with 7 additions and 0 deletions

View File

@@ -263,6 +263,10 @@ func take_screenshot() -> void:
var img: Image = get_viewport().get_texture().get_image()
var filename = Global.config_path.path_join("screenshots/screenshot_" + str(int(Time.get_unix_time_from_system())) + ".png")
var err = img.save_png(filename)
if !err:
log_comment("Screenshot Saved!")
else:
log_error(error_string(err))
func handle_p_switch(delta: float) -> void:
if p_switch_active and get_tree().paused == false: