-
Notifications
You must be signed in to change notification settings - Fork 33
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 Quest Bookmarking #127
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- save load is a bit awkward. most of write logic is in QuestInstance but most of read logic is in QuestDatabase. perhaps just move them all to QuestDatabase?
- as mentioned on discord. this should probably be called favorite bookmark rather than pin.
- GUI code is always if it works then ship it. we don't check code quality in this area.
Hmm, losing bookmarks on a server |
Current issues:
|
Bookmarks are now handled by the client and are unique for each world/server. |
Looks good, i'll take a look at it in game later today |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also if a server and a sp world have the same name, the bookmark files will be shared i believe |
The world name is only used for local worlds for servers their ip+port will be used as file name. |
Cool, didnt even realize that colon were valid in file names |
Colons are not valid in filenames on Windows: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file#naming-conventions |
Thats what i thought. Worked fine for me on linux |
maybe change it to ip-port |
I'm already replacing the colon with a dot |
Oh, didnt notice that. That works then |
Alright bookmarks will now keep their order and I also implemented a simple method to skip iterating over the entire quest list if no bookmarks have changed. |
hmmm |
I had 2 bookmarks that were shared between the 2 worlds |
Oh my bad I forgot to reset the flag when loading bookmarks |
It seems to load correctly now, good catch. |
Perfect |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tested works
Preview in #mod-dev channel:
https://discord.com/channels/181078474394566657/603348502637969419/1192604755952947291