xelab
February 27th, 2023, 14:35
Hi,
again a simple question: how do I list members of a GUI control? And how do I access its parent?
For DB nodes that would be:
--print children of database node:
for _,nodeChild in pairs(getDatabaseNode().getChildren()) do
Debug.chat(nodeChild.getNodeName())
end
-- get parrent node
node.getChild("..");
But how to do the same for control?
e.g. <windowclass name="power_item_header" ruleset="5E"> has usepower, actionsmini, etc. as members
again a simple question: how do I list members of a GUI control? And how do I access its parent?
For DB nodes that would be:
--print children of database node:
for _,nodeChild in pairs(getDatabaseNode().getChildren()) do
Debug.chat(nodeChild.getNodeName())
end
-- get parrent node
node.getChild("..");
But how to do the same for control?
e.g. <windowclass name="power_item_header" ruleset="5E"> has usepower, actionsmini, etc. as members