Hi there,
yesterday I started to look into RapaGUI (which really looks super cool!). I did the tutorial and wanted to extend it to show a brush. It was no problem to add and show a brush that I load via
and define the brush tag in the xml file, like:
Now I have two questions which may be feature requests:
1. I know I can create elements dynamically in code with
Code: Select all
moai.CreateObject([[<brush id="mybrush" brush="1"/>]])
(see chapter 3.7). But then I also have to run some lines to add it to the proper elements which seems to be not hazzle free at all times. But it would be nice(r) if I could declare the brush tag in the xml file, too, but without specifying a brush id (because I get it a runtime and don't know it yet when defining in the xml) or mark the id as "you will get it later", eg.
. Basically see this as a kind of placeholder in the xml.
So later I could just use in code:
2. This belongs to the above question: Generally I don't want to use fixed IDs (for my brushes) but want to use automatic ID selection:
Code: Select all
Local myBrushID = CreateBrush(Nil, ...)
But it seems that it is not possible to use such an ID for the
moai.Set() command (just in brushes?). So, doing this will fail (with sth like "third argument as be a number" or so):
Code: Select all
moai.Set("mybrush", "brush", myBrushID)
So is this something that can already be done or is it possible to add these things to a new version of RapaGUI? Thanks in advanve!