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

Fixed Script Errors for GUI Input Mapping Demo - 4.0-dev #708

Merged
merged 1 commit into from
Apr 3, 2022
Merged

Fixed Script Errors for GUI Input Mapping Demo - 4.0-dev #708

merged 1 commit into from
Apr 3, 2022

Conversation

voylin
Copy link
Contributor

@voylin voylin commented Mar 31, 2022

Edited the project settings to match the new Godot 4 standard and fixed
the script errors which were making it impossible to run this demo.

Now everything works properly for the 4.0-dev version.
Another check that can be added for #697.

I really hope that I'm doing a good job helping to make all these demo's run properly on Godot 4,
if I'm doing anything wrong, please say so I can improve myself.

@Calinou Calinou added the update label Mar 31, 2022
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Most of this looks good.

gui/input_mapping/README.md Outdated Show resolved Hide resolved
gui/input_mapping/ActionRemapButton.gd Show resolved Hide resolved
Comment on lines -24 to -25
window/size/width=640
window/size/height=480
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should keep these lines, but they should be viewport_width instead of width and viewport_height instead of height.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A question about this, should we always use 640x480 for viewport size? Because the defaults in 4.0 became bigger.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The default in both 3 and 4 is 1024x600. Several of these demos have a smaller size because we just don't need a lot of space for such a simple demo. And no, we should definitely not always use 640x480. Just any demo that is already 640x480 in Godot 3 should still be that resolution in Godot 4.

@aaronfranke aaronfranke added this to the 4.0 milestone Apr 3, 2022
Edited the project settings to match the new Godot 4 standard and fixed
the script errors which were making it impossible to run this demo.

Now everything works properly for the 4.0-dev version.

Changed to Vulkan Mobile + Changed argument name

Followed the suggestions of aaronfranke
Changed viewport size
Copy link
Member

@aaronfranke aaronfranke left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@aaronfranke aaronfranke merged commit 6ac2aee into godotengine:4.0-dev Apr 3, 2022
@voylin voylin deleted the Fix_GUI_Input_Mapping_Demo_4.0-dev branch April 3, 2022 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants