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

Add sticky weather #680

Merged
merged 2 commits into from
Jan 27, 2025
Merged

Add sticky weather #680

merged 2 commits into from
Jan 27, 2025

Conversation

will-jj
Copy link
Contributor

@will-jj will-jj commented Jan 20, 2025

This replicates the pattern (and code) of sticky move, if a weather has been pinned then the auto set weather function will simply return early.

The addition of sticky/pinned weather has been approved in #348 "Allow for 'pinning' weather".

@will-jj
Copy link
Contributor Author

will-jj commented Jan 20, 2025

Note: I did not spend that long choosing the colour for the dark theme, you may want to suggest something more appropriate.

@thejetou thejetou marked this pull request as ready for review January 27, 2025 23:14
@thejetou thejetou merged commit 2b07c2c into smogon:master Jan 27, 2025
2 checks passed
@thejetou
Copy link
Collaborator

Color seems fine to me, thanks!

@will-jj
Copy link
Contributor Author

will-jj commented Jan 28, 2025

Great, thanks - it was still a bit of a WIP, with regards to the "last-clicked" - it could be perhaps set when it is changed/on load so it would feel a bit more natural. For instance if you want to lock in none, & it is already on none, it will require three clicks. Or if you want to go back to none after an auto change, just one click will go back and lock it in.

It is definitely usable but that's mainly why I left it as a draft.

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.

2 participants