extends SceneTree ## Writes the game's UI theme (UiTheme.build()) to res://game/resources/ui_theme.tres, the ## project's default theme (gui/theme/custom). Re-run after editing UiTheme (editor closed): ## godot --headless --path . --script res://game/tools/build_ui_theme.gd func _initialize() -> void: var err := ResourceSaver.save(UiTheme.build(), "res://game/resources/ui_theme.tres") print("build_ui_theme: save -> %s" % error_string(err)) quit(0 if err == OK else 1)