-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
[GUI] Support slider, label and button as widgets #1490
Conversation
gui->slider(text, *val_ptr, minimum, maximum, step); | ||
return gui->widget_values.size() - 1; | ||
}) | ||
.def("make_label", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder why a label must have a floating value? And there's no way to change its text?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please run my example and use key 'a' and 'd'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not saying the printed text as a whole cannot be changed. Instead, it seems that only the floating value part could change? But now I looked at Label
, I guess this is a restriction from the GUI system itself..
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think people could use gui.text
for more flexibility, given that the label
is provided by the legacy C++ part, let's try improve it iapr, instead of itpr.
Related issue = close #484
[Click here for the format server]
Btw, I found the slider circle is not shown, is this intentional?