Thanks damned. I did look at the DicePool lua and tried to model it after that but failed.
Also wondering if you can call, or reference an unbound windowclass (windowinstance?) I apologize for the terminology, I realize that it's probably all wrong and I am doing more harm then good.
I think it might be more helpful to try and explain what I want to do.
https://brucepatnaude.com/images/temp/helpImage2.png
So here is the code for the "doomtracker" window
desktop_classes.xml
and in the desktop_panels.xmlCode:<windowclass name="doomtracker">
<frame>grouptracker</frame>
<noclose />
<sizelimits>
<dynamic />
<minimum width="200" height="400" />
</sizelimits>
<script>
function onInit()
Debug.console("self", self);
Debug.console("getClass", self.getClass())
Debug.console("getDatabaseNode", self.getDatabaseNode());
Debug.console("getFrame", self.getFrame());
end
</script>
<sheetdata>
<genericcontrol name="dtbase">
<bounds>1,1,99,199</bounds>
<icon>doomtracker</icon>
</genericcontrol>
<button_dtmom name="dtmomentum">
<bounds>19,20,62,62</bounds>
</button_dtmom>
<basicnumber name="gmompool">
<bounds>25,70,20,20</bounds>
</basicnumber>
<button_dtdoom name="dtdoom">
<bounds>19,120,62,62</bounds>
</button_dtdoom>
<basicnumber name="gdoompool">
<bounds>55,110,20,20</bounds>
</basicnumber>
</sheetdata>
</windowclass>
The basicnumber field I want to access is "gdoompool".Code:<panel name="doomtracker" modes="host,client">
<class>doomtracker</class>
<bounds>400,-350,100,200</bounds>
<dynamic />
<locked />
</panel>
So that's where I am at. EDIT: Forgot to mention, the doomtracker window would be persistent. No need to close it.