[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: (Feature Request) Custom Attributes.
- From: Adrian Sietsma <adrian_groups@...>
- Date: Tue, 30 Nov 2004 03:23:55 +1000
Timur Davidenko wrote:
> Is anything wrong with:
Table = {
Radius = 10,
Radius_attr = { UIWidget = "slider", UIMin = 0, UIMax = 100 }
}
for syntax reasons, i convert xml attrs to lua as :
Table = {
["@"] = { UIWidget = "slider", UIMin = 0, UIMax = 100 },
Radius = 10,
Zorro = {}
}
from lua, Table["@"].UImin
i know it costs a table for the attributes, but in my case that's
wearable (you could have a metatable returning {} for nodes with no
attribs).
Adrian