Skip to content

Add save reminder to Adv mode and change colors based on how long it has been since a save #1384

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

Merged
merged 23 commits into from
Feb 22, 2025

Conversation

realSquidCoder
Copy link
Contributor

@realSquidCoder realSquidCoder commented Jan 29, 2025

Closes: DFHack/dfhack#5285

idk why i didnt do this originally

Edit: it turns yellow at 30 mins and red at 60.

Copy link
Member

@myk002 myk002 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

please also add a changelog entry

@realSquidCoder realSquidCoder changed the title Add save reminder to Adv mode Add save reminder to Adv mode and change colors based on how long it has been since a save Feb 9, 2025
-- the order of this list controls the order the notifications will appear in the overlay
NOTIFICATIONS_BY_IDX = {
{-- The save reminder should always be at the top, since it's important.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Everything here is important : P I'd actually argue that this should go at the bottom because it is more likely than other notifications to be visible for a long time

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my issue with it being at the bottom is that when lots of notifications are active, it gets hidden at the bottom with a scroll needed. putting it at the top and making it configurable means that you make it show up exactly when you want it AND it won't be hidden away

realSquidCoder and others added 3 commits February 9, 2025 14:31
use `:lua reqscript('internal/notify/notifications').save_time_threshold_mins=X` to set the threshold to X mins
@realSquidCoder
Copy link
Contributor Author

I need someone to make sure this doesnt hang in adventure mode

@realSquidCoder
Copy link
Contributor Author

@myk002 This mostly looks all good to me however see my comment above on why i wanted to move the save reminder to the top and after we resolve that i dont see anymore need for changes (beyond merge conflicts etc, if any)

@myk002
Copy link
Member

myk002 commented Feb 21, 2025

I just haven't had time to test. I wanted to look into your previous comments that the dialog was causing hangs

@realSquidCoder
Copy link
Contributor Author

seems reasonable, however i think it was a me issue because its no longer hanging. maybe i had some weird interaction with a branch, idk. still worth a test tho. i posted the line of lua to set the reminder to 1 min for faster testing btw

@myk002 myk002 merged commit 637eb47 into DFHack:master Feb 22, 2025
10 checks passed
@realSquidCoder realSquidCoder deleted the squid-save-reminder branch February 22, 2025 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

Successfully merging this pull request may close these issues.

Allow configuring the amount of time before the "Last save" notification
2 participants