-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Deprecate the ToolButton node #31518
Comments
I love how single copyright header is longer than whole declaration and implementation of this class XD Constructor argument makes sense, but is |
Making ToolButton an editor-only feature makes even more sense IMHO. |
Should we simply make the editor theme have flat by default for all buttons, and drop ToolButton + the manual |
That would make sense, but for now the "flat" button property is not overridable in the theme. It should be made an overridable constant. |
There are a lot of non-flat buttons (mainly the "Cancel" and "OK" in dialogs) that would look odd if flat, so I don't think setting all buttons to one option would work. |
Indeed, if we move that to a theme constant, it can also be overriden later on for specific nodes. |
For the record, the editor theme redesign I'm currently working on doesn't need the |
Closed by #39690. |
ToolButton
is aButton
that hasflat
enabled by default. That's it.I don't think such a thing needs a node of its own, and would probably be for the better if it was marked as deprecated and then removed in 4.0.
But wait! It's heavily used in the editor itself!
Indeed, and it saves a total of one single line. Sure, the editor has lots of buttons, so those single lines pile up, but here's a better solution, making
Button
take a argument when created, likeLabel
does:Label *new_label = memnew(Label("Placing text here avoids needing a extra line."));
The text was updated successfully, but these errors were encountered: