-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Improve waypoints and add image variant #9480
Conversation
I said not to mix two different features in single PR didn't I? |
Yeah you did, sorry for mixing. I thought that if I wouldn't mix them I'd create merge conflicts if one was merged, so I merged the PR's into one. |
Merge conflicts are no excuse. Just because there are conflicts does not mean the other PR is doomed. Conflicts can be solved, and you should know how. |
I think one large PR is better than multiple small ones. Especially considering the fact that this one isn't even that "large" (~100 loc). |
This isn't particularly large, but smaller PRs are much easier to review |
Anyway, the documentation looks good to me. I hope you can figure out how to merge this. I've been waiting for years to be able to get rid of the annoying distance number in waypoints. :-) |
I don't see any problems with merging. It could be merged right now, provided there are no bugs or code quality issues found. |
We're currently in a feature freeze, so only bug fixes can be merged |
code sight, i'm fine with it |
Co-Authored-By: rubenwardy <[email protected]>
Co-Authored-By: rubenwardy <[email protected]>
Co-Authored-By: rubenwardy <[email protected]>
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
Goal of the PR
Improves waypoints by supporting a precision & offset field (see previous PR which is incorporated inside this one)
Now also supports an alignment field (not only for image waypoints).
Works by storing precision inside the item field. Image waypoints resemble images +
world_pos
(see the API diff for details).Closes the request for hidden distance. Also closes the one for image waypoints. Partially clo/ses the request for alignment & default center alignment.
This PR is ready for review.
Screenshot
Shows the waypoints created by
![Screenshot](https://user-images.githubusercontent.com/34514239/76684159-dd31f900-6609-11ea-97b3-632131763a80.png)
/test_waypoints
. The lowest one is a large wieldhand image waypoint. Waypoints are center-aligned by default.How to test
Create a waypoint testmod with this
init.lua
. Then execute the/test_waypoints
command.