firedrakemacfie
New member
I'm creating a set for BESM 2nd Ed, I'm trying add customizable options for Attributes (aka powers or abilities in other systems), and I'm looking into using Gizmos. I'm starting with the 'Gun Bunny' Attribute, which lets the character add a number of mini-abilities attached to the main Attribute.
It's a fairly simple form (which I'll be adding to later, but I wanted to get the basics working first), consisting of a dynamic table to add the abilities, but when I go to add the main Attribute, the form that pops up fills up the screen. I've tried changing the dimensions of the layout and form, but the form size won't change, and I get these errors when the form pops up:
As shown in the screenshot, the layout is sizing correctly, but the form itself stays maximized. Here's the relevant code:
Portal:
Layout:
Form:
Entity:
I can't find anything in the wiki or the forums that helps with this, and the form code has very little modified from the sample code in the wiki and skeleton files. So now I come to seek the great and powerful Wizard of HL to see if I can get some brains.
It's a fairly simple form (which I'll be adding to later, but I wanted to get the basics working first), consisting of a dynamic table to add the abilities, but when I go to add the main Attribute, the form that pops up fills up the screen. I've tried changing the dimensions of the layout and form, but the form size won't change, and I get these errors when the form pops up:

As shown in the screenshot, the layout is sizing correctly, but the form itself stays maximized. Here's the relevant code:
Portal:
Code:
<portal
id="gbGunBun"
style="tblNormal">
<table_dynamic
component="GunBunPow"
showtemplate="gbPick"
choosetemplate="SimpleItem"
headerpick="gbSimple"
addpick="gbSimple">
<list>!Hide.GunBunny</list>
<titlebar><![CDATA[
@text = "Add a Gun Bunny Ability"
]]></titlebar>
<description/>
<headertitle><![CDATA[
@text = "Gun Bunny Abilities: " & hero.child[resGunBun].field[resSummary].text
]]></headertitle>
<additem><![CDATA[
@text = hero.child[resGunBun].field[resAddItem].text
]]></additem>
</table_dynamic>
</portal>
Layout:
Code:
<layout
id="gunbunpow">
<portalref portal="gbGunBun" taborder="10"/>
<!-- This script sizes and positions the layout and its child visual elements. -->
<position><![CDATA[
width = 300
height = 300
portal[gbGunBun].width = width
portal[gbGunBun].height = height
]]></position>
</layout>
Form:
Code:
<form
id="fmGunBun"
name="Gun Bunny Options"
entity="enGunBun"
marginhorz="5"
marginvert="5"
defwidth="300"
defheight="300"
maxwidth="300"
maxheight="300">
<layoutref layout="gunbunpow"/>
<position><![CDATA[
~render the layout to generate its dimensions
perform layout[gunbunpow].render
~set the width and height of the form to the dimensions of the layout
width = layout[gunbunpow].width
height = layout[gunbunpow].height
]]></position>
</form>
Entity:
Code:
<entity
id="enGunBun"
form="fmGunBun"
defaultthing="gbSimple">
<bootstrap thing="gbSimple"/>
</entity>
I can't find anything in the wiki or the forums that helps with this, and the form code has very little modified from the sample code in the wiki and skeleton files. So now I come to seek the great and powerful Wizard of HL to see if I can get some brains.