Tempered7
July 5th, 2025, 08:46
Heya coding-wizards,
I want to make a window with 4 editable columns.
Below code is what I managed to edit from ChatGPT's code. The problems are;
Where to access it in Tabletop? '/openwindow mysimplewindow' doesn't work, even with singleton="true" in windowclass tag under windowsheet xml.
How to resolve the error below? //EDIT: I solved it by removing <extension> tag.
And how do you suggest I tie it to somewhere for quick access? To a button? In a module? Or else?
Attachment:
64733
ChatGPT only adding to the pile of errors with its "suggestions."
Thanks in advance.
Unable to open window (mysimplewindow:).
Usage: /openwindow [windowclass] <datapath>
I thought singleton is for removing the need for setting a datapath?
extension.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.0">
<extension>
<properties>
<name>Solo Card Game Rules</name>
<version>1.0</version>
<author>Tempered7</author>
<description> This extension adds a custom window with 4 editable columns. </description>
<ruleset>
<name>5E</name>
</ruleset>
</properties>
<announcement text="Use '/openwindow mysimplewindow' in the FG chat console to open your new window."/>
<frames>
<frame name="mywindowframe" bitmap="graphics/frames/chatbox.png" />
<!-- Replace bitmap with your frame graphic, or use built-in ones -->
</frames>
<windowclasses>
<include source="window_mysheet.xml" />
</windowclasses>
</extension>
</root>
window_mysheet.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<windowclass name="mysimplewindow">
<sheetdata>
<genericcontrol name="backgroundframe">
<anchored>
<to>client</to>
<position>insidetopleft</position>
<offset>0,0</offset>
</anchored>
<frame>mywindowframe</frame>
</genericcontrol>
<!-- Four columns with editable textboxes -->
<stringfield name="col1_text">
<anchored>
<to>client</to>
<position>topleft</position>
<offset>10,10</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col2_text">
<anchored>
<to>col1_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col3_text">
<anchored>
<to>col2_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col4_text">
<anchored>
<to>col3_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
</sheetdata>
</windowclass>
</root>
I want to make a window with 4 editable columns.
Below code is what I managed to edit from ChatGPT's code. The problems are;
Where to access it in Tabletop? '/openwindow mysimplewindow' doesn't work, even with singleton="true" in windowclass tag under windowsheet xml.
How to resolve the error below? //EDIT: I solved it by removing <extension> tag.
And how do you suggest I tie it to somewhere for quick access? To a button? In a module? Or else?
Attachment:
64733
ChatGPT only adding to the pile of errors with its "suggestions."
Thanks in advance.
Unable to open window (mysimplewindow:).
Usage: /openwindow [windowclass] <datapath>
I thought singleton is for removing the need for setting a datapath?
extension.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<root version="3.0">
<extension>
<properties>
<name>Solo Card Game Rules</name>
<version>1.0</version>
<author>Tempered7</author>
<description> This extension adds a custom window with 4 editable columns. </description>
<ruleset>
<name>5E</name>
</ruleset>
</properties>
<announcement text="Use '/openwindow mysimplewindow' in the FG chat console to open your new window."/>
<frames>
<frame name="mywindowframe" bitmap="graphics/frames/chatbox.png" />
<!-- Replace bitmap with your frame graphic, or use built-in ones -->
</frames>
<windowclasses>
<include source="window_mysheet.xml" />
</windowclasses>
</extension>
</root>
window_mysheet.xml
<?xml version="1.0" encoding="iso-8859-1"?>
<root>
<windowclass name="mysimplewindow">
<sheetdata>
<genericcontrol name="backgroundframe">
<anchored>
<to>client</to>
<position>insidetopleft</position>
<offset>0,0</offset>
</anchored>
<frame>mywindowframe</frame>
</genericcontrol>
<!-- Four columns with editable textboxes -->
<stringfield name="col1_text">
<anchored>
<to>client</to>
<position>topleft</position>
<offset>10,10</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col2_text">
<anchored>
<to>col1_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col3_text">
<anchored>
<to>col2_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
<stringfield name="col4_text">
<anchored>
<to>col3_text</to>
<position>topright</position>
<offset>10,0</offset>
<size>100,200</size>
</anchored>
</stringfield>
</sheetdata>
</windowclass>
</root>