Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Append current date and time to filename on export #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

shendriks
Copy link

What?

Add the current date and time (the format being YYYYMMDDHHMMSS ) to the export file name. e.g. Space Background 20230509094600.png.

Why?

This is to avoid overwriting a previously exported image of the same name.

How?

In GUI.gd in the save_image(img) function, the current date and time is determined through a call to Time.get_datetime_dict_from_system(). This is then used in a format string and appended to the filename.

Testing?

This was tested manually.

Screenshots (optional)

n/a

Anything Else?

n/a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant