Access controls inside Windowlist
Hey All,
Got a bit of a brain twizzler going on.
I've got a frame inside which I had some labels, after the labels I have a windowlist inside I have some controls.
When I drag something to that windowlist, it accepts it, I know what it is and I add it to the databasenode, all good stuff.
Now what I want to do, is to show/hide a field that's inside that windowlist, using the script that's part of the windowlist.
If I want to show hide the labels, that's all good I use 'window.label_ammo_rof.setVisible(bVisible)' - that also all works perfectly.
If I use 'Debug.console(self.getName())' it returns to me 'damageactions' which again is perfect.
I have a control called 'ammorateoffire' (it's a stringcycler) but I can't hide/show it, it can't find it.
I've tried:
self.ammorateoffire.setVisible(bVisible);
ammorateoffire.setVisible(bVisible);
And neither do anything except throw an error `attempt to index field 'ammorateoffire' (a nil value)`
Any thoughts, it's driving me insane, should be simple.
Cheers,
MBM