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

Feature: Better position semantics on ui functions #773

Open
Sxmourai opened this issue Aug 5, 2024 · 0 comments
Open

Feature: Better position semantics on ui functions #773

Sxmourai opened this issue Aug 5, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Sxmourai
Copy link

Sxmourai commented Aug 5, 2024

I think the position parameters for ui functions on macroquad::ui::Ui should be changed because using Option is quite misleading.
A better idea should be with an enum kind of like this:

enum Position {
  Auto,
  Absolute(Vec2), // Previous position type
  // We can now add other position types like
  // Percent(f32), (like bevy)
  // ...
}
@not-fl3 not-fl3 added the enhancement New feature or request label Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants