Minor improvements and file reorganizing
This commit is contained in:
@@ -67,6 +67,10 @@ func _input(event: InputEvent) -> void:
|
||||
yield(get_tree(), "idle_frame")
|
||||
|
||||
img.flip_y()
|
||||
if img.save_png('user://screenshot.png') != OK:
|
||||
|
||||
var time: Dictionary = OS.get_datetime_from_unix_time(OS.get_unix_time())
|
||||
var time_msecs: int = OS.get_system_time_msecs()
|
||||
|
||||
if img.save_png('user://Screenshot_%d%d%d_%d.png' % [time.year, time.month, time.day, time_msecs]) != OK:
|
||||
print('ERROR: Failed saving screenshot.')
|
||||
return
|
||||
|
Reference in New Issue
Block a user