-
Notifications
You must be signed in to change notification settings - Fork 572
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
default: Improves reading and writing to books. #2656
Conversation
749dec5
to
877a43d
Compare
* Allow anyone to write to a book without any text and title. * Allows saving books without any text or title. * A book without any title will be titled "Book". * Adds a "Read" and "Write" tab to written owned books. Fixes minetest#1743
This PR is well done and should get some more attention. It has been more than a month. |
Instead of tabs, you could try a checkbox to toggle between reading and writing states. |
This has gone a while without core dev comment, so i want to add a comment to say this is appreciated. Unfortunately it seems we have been too busy to attend to this yet. Keeping in mind my lack of experience with MTG books, here are some questions. I may be missing something and there may be good reasons for your changes.
Perhaps a book without text and without title should just be default:book? In which case anyone will already be able to write to it.
I am wondering why though? That is not a necessary part of the bugfix, the bug is: "Make a book with a bunch of random text in it's title and contents, save, then try erasing either field and save. When you open it again, you'll find that the field still has what you tried to erase." The previous PR author asked: "One last question about the change, A written book with its content (title and text) deleted must be converted back to a book (unwritten)? Or is better leave it as a empty written book?"
Seems good, if this is a book with text but no title.
Seems good.
Allowing saving if title and no text, or text and no title, seems good. But i am unsure about saving with neither of those. Needs input from other core devs. |
Fwiw I haven't actively played minetest in a while and I'm not sure I will spend any time making changes to this PR. I tested it thoroughly in my own world and found it worked for my purposes.
When I first used minetest it was remarked by another player how they could not save an empty book and that they did not like the false limitation. I don't think it causes any harm to be able to save a book without both text and title, it will still leave an author record which may or may not be fun for some players. |
Fixes #1743
This PR replaces #2646.
I prefer to do smaller and more concise PRs, but I am also not willing to indefinitely maintain multiple conflicting branches.
This does a few things:
This main goals behind this commit are to allow saving books without any text and/or title and to add a write/read tabs for owned books with text or title to make it easier for the owner to read.
Books without any text and title
Owned books
Unowned books