From a376db9d82a67a1c87b5efff5d64be36d177f6c7 Mon Sep 17 00:00:00 2001 From: Shallowmallow Date: Thu, 4 Jul 2024 20:59:12 +0200 Subject: [PATCH] Updated readme Toolkit.componentFromString doesn't exist anymore --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee5ae8682..9d343daf1 100644 --- a/README.md +++ b/README.md @@ -158,13 +158,13 @@ _Note: `Screen` was used here as a universal way to add items to the application It is also possible for HaxeUI to take a user interface definition from a markup language (like XML) and use that to build code similar to above: ```haxe -var main = ComponentMacros.buildComponent("assets/ui/demo/main.xml"); +var main = haxe.ui.ComponentBuilder.fromFile("assets/ui/demo/main.xml"); Screen.instance.addComponent(main); ``` If your xml isn't available at compile time you can use `Toolkit.componentFromString`: ```haxe -var main = Toolkit.componentFromString('