feldrol
February 21st, 2016, 21:14
Hello,
I am currently re-using some existing rulesets to create one for my group. Basically, I am stuck with the script that allow to use the radial menu to create boxes for HP (Exalted ruleset style).
So, I have this windowlist :
<windowlist name="wounds0list">
<anchored>
<to>shayo_sante</to>
<position>insidetopleft</position>
<offset>80,25</offset>
<size>
<width>120</width>
<height>20</height>
</size>
</anchored>
<class>element_healthbox</class>
<datasource>.wounds0</datasource>
<script file="scripts/healthbox_menu.lua" />
</windowlist>
The class definition is :
<windowclass name="element_healthbox">
<sizelimits>
<minimum>
<height>15</height>
</minimum>
</sizelimits>
<sheetdata>
<healthbox name="healthlevel">
<anchored>
<left>
<anchor>left</anchor>
</left>
<top>
<anchor>top</anchor>
</top>
<size>
<width>15</width>
<height>15</height>
</size>
</anchored>
</healthbox>
</sheetdata>
</windowclass>
The part of the healthbox_menu.lua script that create a new box is
window.wounds0list.createWindow();
All is fine except the new HP box is created below the previous one, while I want it to go on the right of the previous one.
Am I missing something really obvious ?
I am currently re-using some existing rulesets to create one for my group. Basically, I am stuck with the script that allow to use the radial menu to create boxes for HP (Exalted ruleset style).
So, I have this windowlist :
<windowlist name="wounds0list">
<anchored>
<to>shayo_sante</to>
<position>insidetopleft</position>
<offset>80,25</offset>
<size>
<width>120</width>
<height>20</height>
</size>
</anchored>
<class>element_healthbox</class>
<datasource>.wounds0</datasource>
<script file="scripts/healthbox_menu.lua" />
</windowlist>
The class definition is :
<windowclass name="element_healthbox">
<sizelimits>
<minimum>
<height>15</height>
</minimum>
</sizelimits>
<sheetdata>
<healthbox name="healthlevel">
<anchored>
<left>
<anchor>left</anchor>
</left>
<top>
<anchor>top</anchor>
</top>
<size>
<width>15</width>
<height>15</height>
</size>
</anchored>
</healthbox>
</sheetdata>
</windowclass>
The part of the healthbox_menu.lua script that create a new box is
window.wounds0list.createWindow();
All is fine except the new HP box is created below the previous one, while I want it to go on the right of the previous one.
Am I missing something really obvious ?