0 votes

Hey All,

I was wondering if there was a way to add a premade "Add New Stylebox" button like in the default Godot editor. For example, when you go to "Custom Styles" on a control node, you can select "New Stylebox" or "Load" from a dropdown. If you click "New Stylebox" Stylebox configuration options are injected into the inspector.

Is there a way to re-create this without starting from scratch? For example just EditorInspectorPlugin.add_custom_property(EditorStyleboxConfig.new())? Otherwise, I will just have the user create the .tres file elsewhere and load it using the EditorFileDialog, but this is obviously sub-optimal.

Godot version Godot 3.2.4 beta4
in Engine by (576 points)

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.