DEV Community

Sunder Iyer
Sunder Iyer

Posted on

TIL Godot Node Stylin'

2021-03-09

Did you know...Godot works in the browser!

So I'm working with Graphs in Godot and a default GraphNode looks like this.
Displays the look of a Default Node in the GraphEdit control
I'm not a fan of this default visual but fortunately it can be customized directly in the GraphNode itself.
Displays the Custom feature and options
With some creative edits, it's possible to make something unique for one's own projects. Here, I added a StyleBoxFlat to the Frame and changed the color, border radius and shadow values. I also made the Title font color transparent.
My Customized Result
I imagine a better way to customize GraphNodes involves Themes but I'm yet to learn this feature. Of course, the day I learn it, there will be a TIL entry :)

Top comments (0)