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

[3.x] Support explicit values in flag properties, add C# flags support #59328

Merged
merged 1 commit into from
Aug 5, 2022

Conversation

raulsntos
Copy link
Member

3.x version of #59327

- Add support for explicit values in properties using `PROPERTY_HINT_FLAGS`
that works the same way it does for enums.
- Fix enums and flags in VisualScriptEditor (it wasn't considering the
explicit value).
- Use `PROPERTY_HINT_FLAGS` for C# enums with the FlagsAttribute instead
of `PROPERTY_HINT_ENUM`.
@akien-mga
Copy link
Member

@neikeq @raulsntos #59327 was approved, do you think this backport is safe enough to merge for 3.5 (knowing that we're at RC 3), or is it better to wait for 3.6 or 3.5.1?

@akien-mga akien-mga added this to the 3.x milestone Jun 3, 2022
@neikeq
Copy link
Contributor

neikeq commented Jun 3, 2022

No, I don't think it's safe enough. Better wait.

@akien-mga akien-mga merged commit 1b70378 into godotengine:3.x Aug 5, 2022
@akien-mga
Copy link
Member

Thanks!

@akien-mga akien-mga modified the milestones: 3.x, 3.6 Aug 5, 2022
@raulsntos raulsntos deleted the csharp-flag-enums-3.x branch August 5, 2022 17:51
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.

3 participants