Replies: 1 comment 1 reply
-
OR you could use this https://docs.godotengine.org/en/latest/classes/class_styleboxflat.html or this https://docs.godotengine.org/en/latest/classes/class_referencerect.html and there's no need to create custom theme or add script. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
More often than not I need the ability to add a border with a specified colour and thickness, it's quite a common for graphics API to include these as well, even Godot's own DrawRect has a fill option, so it can be used both ways.
While it is pretty easy to add a simple script to the ColorRect to achieve adding a border, or maybe even a custom theme, I think it's a common enough use case to have it built in.
Beta Was this translation helpful? Give feedback.
All reactions