Getting started in Godot 0.3
Godot 4.4+. godot-goome is an addon with one node, GoomeView, and you write the ui in GDScript every frame. No C# and no godot-cpp needed.
To start from a project that already builds, goome new my-app --lang godot makes one from the Godot template, see Templates and goome new 0.4.
Get the addon
Its not on the Godot Asset Library. Download godot-goome-0.5.0.zip from the releases page and unzip it into your project, so you end up with res://addons/goome/ and the libs in bin/. Building it yourself is on Godot.
For one exact version instead of the newest, see Versions.
Hello
- Make a scene with a
CanvasLayerand aGoomeViewunder it (Add Node, search for Goome). - Set the view’s anchors to Full Rect.
- Attach a script to the view:
extends GoomeView
var clicks := 0
func _goome_frame(ui: GoomeUI) -> void:
if ui.window("Hello", Rect2(40, 40, 240, 0)):
if ui.button("Click me"):
clicks += 1
ui.label("clicked %d times" % clicks)
ui.window_end()
- F6 runs the scene.
_goome_frame gets called every frame goome draws. The Rect2 is only where the window starts, h 0 fits the content. Always call window_end, even when window gave back false.
The goome_frame signal and how input gets eaten are on Godot, and the full GoomeUI list is in the godot-goome readme. Editor stuff is on Godot editor.