Wil
March 18th, 2007, 03:28
I just don't have time to figure everything out. So I figure I'll just ask:
I want to open a window on a character sheet with a pick list of skills that can be dragged on to the sheet. I can get the button into place, I can get the window to open, but no matter what I do the list of skills (contained in a database file) will not appear. I think I can handle the dragging and dropping once I get the damn list to appear. Now, I've been using the code in the reference file that opens up lists of Feats or spells as a guide...but that doesn't seem to be working. So what gives?
EDIT: Some sample code. From charsheet.xml:
<windowclass name="charsheet_skills">
<frame name="charsheet_skills" />
<datasource name="charsheet" />
<defaultsize width="600" height="20" />
<sheetdata>
<windowopencontrol>
<icon normal="button_openwindow2" pressed="button_openwindow2down" />
<bounds rect="394,645,24,24" />
<class name="skill" />
<description text="Skills" />
</windowopencontrol>
</sheetdata>
</windowclass>
<windowclass name="skill">
<frame name="referencebox" />
<datasource name="skill" />
<dynamic resize="vertical" />
<defaultsize width="640" height="550" />
<sheetdata>
<windowopencontrol>
<icon normal="button_dragtarget" />
<bounds rect="25,20,20,20" />
<class name="skill" />
</windowopencontrol>
<stringcontrol name="name">
<bounds rect="50,20,300,20" />
</stringcontrol>
<scroller>
<bounds rect="-63,-45,45,27" />
<target name="text" />
<button normal="button_scroller" pressed="button_scroller_down" />
</scroller>
</sheetdata>
</windowclass>
skill.xml:
<root>
<node name="skill">
<node name="skills">
<stringvalue name="name" value="Skills" />
<formattedtext name="text">
<linklist>
<link class="skilllist">Skills</link>
</linklist>
</formattedtext>
</node>
</node>
</root>
What I believe theses snippets should do is when the windowopencontrol "Skills" is clicked, it opens a window with the referencebox.png background that contains a list of items from the database file skill.xml. The window opens, the skills do not appear.
I want to open a window on a character sheet with a pick list of skills that can be dragged on to the sheet. I can get the button into place, I can get the window to open, but no matter what I do the list of skills (contained in a database file) will not appear. I think I can handle the dragging and dropping once I get the damn list to appear. Now, I've been using the code in the reference file that opens up lists of Feats or spells as a guide...but that doesn't seem to be working. So what gives?
EDIT: Some sample code. From charsheet.xml:
<windowclass name="charsheet_skills">
<frame name="charsheet_skills" />
<datasource name="charsheet" />
<defaultsize width="600" height="20" />
<sheetdata>
<windowopencontrol>
<icon normal="button_openwindow2" pressed="button_openwindow2down" />
<bounds rect="394,645,24,24" />
<class name="skill" />
<description text="Skills" />
</windowopencontrol>
</sheetdata>
</windowclass>
<windowclass name="skill">
<frame name="referencebox" />
<datasource name="skill" />
<dynamic resize="vertical" />
<defaultsize width="640" height="550" />
<sheetdata>
<windowopencontrol>
<icon normal="button_dragtarget" />
<bounds rect="25,20,20,20" />
<class name="skill" />
</windowopencontrol>
<stringcontrol name="name">
<bounds rect="50,20,300,20" />
</stringcontrol>
<scroller>
<bounds rect="-63,-45,45,27" />
<target name="text" />
<button normal="button_scroller" pressed="button_scroller_down" />
</scroller>
</sheetdata>
</windowclass>
skill.xml:
<root>
<node name="skill">
<node name="skills">
<stringvalue name="name" value="Skills" />
<formattedtext name="text">
<linklist>
<link class="skilllist">Skills</link>
</linklist>
</formattedtext>
</node>
</node>
</root>
What I believe theses snippets should do is when the windowopencontrol "Skills" is clicked, it opens a window with the referencebox.png background that contains a list of items from the database file skill.xml. The window opens, the skills do not appear.