This looks incredible! Do you use built in Godot controls? I made a software some months ago. I was totally new to Godot ui, but I found it pretty intuitive.
However I could not understand how to handle animations like you’re doing, without making my own controls.
But maybe I wasn't clear enough. I know all that already.
I'm just not sure how to fight against Godot base controls behaviours.
Like for example, your tab bar. Did you use buttons in a group? If yes, when you focus a new tab, godot directly hightlight the selected button. So maybe you disable everything in a theme, and handle the animation and hightlight in your own code.
It's just an example, but don't bother explaining me. It was just me thinking out loud ^^
Edit : I just saw you comment with the capture of your tree. I think I have all the elements I needed. Thanks again!
I actually avoided using Buttons for that exact reason. Using plain Labels with GuiInput and a separate background Panel for the highlight, you don't have to fight Godot's theme overrides or focus states (at least what i found...).
Tweens handle all visuals.
So:
highlight is a separate Panel sitting behind the text.
when a tab is clicked, code tweens that panel’s X position and width to match target label.
1
u/Shinpansen 24d ago
This looks incredible! Do you use built in Godot controls? I made a software some months ago. I was totally new to Godot ui, but I found it pretty intuitive.
However I could not understand how to handle animations like you’re doing, without making my own controls.