How do I use the old API with new elements that I create, or how do I create elements using the old API and not use BRAN to overwrite my new element?
What I don't want:
<code>
tpt.el.bran.name="ZOMG"
</code>
What I do want:
<code>
newelement = elements.allocate("bugz", "zomg")
tpt.el.zomg.name="ZOMG"
--or something like that, so I can use a new element and not overwrite bran.
</code>
EDIT: Sorry, I am making a lot of posts. I just need a lot of lua help.
EDIT AGAIN: Hello? Anyone? Helloooo?
--Create a new element
local newelement = elements.allocate("bugz", "zomg")
--Set name and other properties of new element
elem.property(newelement, "Name", "ZOMG")
--or
elem.property(elem.BUGZ_PT_ZOMG, "Name", "ZOMG")
is there any possible way to actually create elements without overwriting bran with the old API?
tpt.el.awesome.name= "Value"to
elem.property(elem.NS_PT_AWESOME, "Name", "Value")?