Varsuuk
January 26th, 2020, 03:20
Any idea what is messing up the "rollable" icon on this control if in the script attached to it I simply add an onInt() method - even if it is empty?
The control, number_savingthrow_monster, works fine in both cases, rolling. However if the onInit() is added, away goes the 20sided dice icon. It's weird - I don't get the angle here.
<template name="number_savingthrow_monster">
<number>
<frame name="frame_charsheet_savingthrow" offset="7,5,7,5" />
<anchored width="32" height="20" >
<top parent="**MISSING ANCHOR**" anchor="bottom" offset="5" />
</anchored>
<nokeyedit />
<rollable />
<script file="campaign/scripts/monster_saves.lua" />
</number>
</template>
...
<number_savingthrow_monster name="savingthrow">
<anchored width="32" height="20" >
<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
<left offset="97" />
</anchored>
</number_savingthrow_monster>
The control, number_savingthrow_monster, works fine in both cases, rolling. However if the onInit() is added, away goes the 20sided dice icon. It's weird - I don't get the angle here.
<template name="number_savingthrow_monster">
<number>
<frame name="frame_charsheet_savingthrow" offset="7,5,7,5" />
<anchored width="32" height="20" >
<top parent="**MISSING ANCHOR**" anchor="bottom" offset="5" />
</anchored>
<nokeyedit />
<rollable />
<script file="campaign/scripts/monster_saves.lua" />
</number>
</template>
...
<number_savingthrow_monster name="savingthrow">
<anchored width="32" height="20" >
<top parent="columnanchor" anchor="bottom" relation="relative" offset="7" />
<left offset="97" />
</anchored>
</number_savingthrow_monster>