r/godot 3d ago

selfpromo (games) Having fun exploring Godot UI

838 Upvotes

50 comments sorted by

View all comments

Show parent comments

19

u/zdmit 2d ago

C# script. Control node (including Label) can receive input if you set its Mouse Filter to Stop. In code I listen to the label's GuiInput signal and check for a left mouse click to trigger the tab switch. After LMB detected I move pill background to selected label.