-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
close #8074, update mouse and input coordinates page #8149
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
close #8074, update mouse and input coordinates page #8149
Conversation
51a97a4 to
a5811a2
Compare
|
Tiny PR but fixes people running into outdated, non-working code. Great! :) Merged. Thanks Sauermann for the review, and thanks Hex-4 for oncorporating it so quickly and squashing. Nice! |
|
|
||
| # Print the size of the viewport. | ||
| print("Viewport Resolution is: ", get_viewport_rect().size) | ||
| print("Viewport Resolution is: ", get_viewport().get_visible_rect()) |
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.
Unfortunately it looks like I missed size in my suggestion.
It should rather be get_viewport().get_visible_rect().size.
|
|
||
| // Print the size of the viewport. | ||
| GD.Print("Viewport Resolution is: ", GetViewportRect().Size); | ||
| GD.Print("Viewport Resolution is: ", GetViewportRect().GetVisibleRect()); |
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.
The C# example doesn't match the GDScript example.
| GD.Print("Viewport Resolution is: ", GetViewportRect().GetVisibleRect()); | |
| GD.Print("Viewport Resolution is: ", GetViewport().GetVisibleRect()); |
|
Looks like there are a few changes I should make - do I need to make a new PR or can I just amend another commit to this one? |
|
You can amend PRs only before they are merged. So creating a new PR is the only viable option. |
|
Cherry-picked to 4.1 |
closes #8074
Tiny PR that updates the syntax on the mouse and input coordinates page.