-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New drag widget with 3 values, akin to DragFloat3 in ImGui #176
Comments
Yeah, I agree this is something egui should have. I think the implementation should be just a horizontal layout of three DragValues, but with some fixed width of the dragvalues (would require an addiiton of |
One problem with |
By the way, in the next release of egui you can control the size of a ui.add_sized(vec2(48.0, 20.0), DragValue::new(&mut self.angle)); I will make all |
For a horizontal layout is there a way to have some widgets with the minimum required width and others to extent to as much as possible? I'm trying to shape egui widgets and layouts into somethings like this:
Something like Unity or Unreal transform component editor. |
A horizontal layout has no memory, and so only the last element can be set to "use as much as is available" (the earlier widgets can't know how much later widgets will use).
|
Is your feature request related to a problem? Please describe.
I want to list the translation of a transform in one single row and have it be editable, right now I have to add 3 separate
DragValue
s to ahorizontal
which results in non uniformly sized boxes to drag, see this screenshot for a visual aidDescribe the solution you'd like
A new widget called
DragValue3
which creates 3 equally sizedDragValue
s in one row. Something like thisDescribe alternatives you've considered
Adding 3
DragValue
s to a horizontal row. This does work, but the boxes to change the values aren't always the same sizeThe text was updated successfully, but these errors were encountered: