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

Allow functions with multiple arguments inside EditorSpinSlider #80541

Closed

Conversation

MewPurPur
Copy link
Contributor

@MewPurPur MewPurPur commented Aug 12, 2023

If inside a function, don't convert commas , into periods ..

If you've wondered why functions with multiple arguments like pow() aren't supported in number input fields, it's because Godot indiscriminately converted commas into periods to support European keyboard layouts. But if you've typed a function, you're entering a programming context so you wouldn't expect commas to work as decimal separators.

Advancing godotengine/godot-proposals#6988 a little.

One concern I thought about is how this PR will make sin(7,5) not work, even though something like this could be considered a mathematical context. But I think this is more of an edge case than before.

@MewPurPur MewPurPur changed the title Improve EditorSpinSlider input validation Allow functions with multiple arguments inside EditorSpinSlider Aug 12, 2023
@MewPurPur
Copy link
Contributor Author

MewPurPur commented Aug 29, 2023

Closing as the PR mentioned above does it way better than me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants