Insality / druid

Powerful Defold UI component framework
https://insality.github.io/druid/modules/Druid.html
MIT License
276 stars 33 forks source link

Need an example for creating custom components #253

Closed baochungit closed 8 months ago

baochungit commented 8 months ago

After reading this document, I'm still stuck on it. https://github.com/Insality/druid/blob/master/docs_md/02-creating_custom_components.md

There are something quite confusing to me. For example when using the component self.druid:new(my_component, "avatar_frame", gui.clone_tree(gui.get_node('test'))) It raised an error: ERROR:SCRIPT: druid/component.lua:206: No component with name: avatar_frame/root

baochungit commented 8 months ago

I found the examples for it..