5E Character Create Playlist
  1. #1

    number_column width

    In an XML file for a form I see:
    Code:
    	<label_column name="label_mass">
    		<static textres="ref_label_mass" />
    	</label_column>
    
    	<number_column name="mass">
    		<readonly />
    	</number_column>
    This shows up on a form with a label (name defined elsewhere) and a field to enter a number. What if I want the number field to be wider or how is its width even defined to begin with?
    Last edited by Stargrove; March 22nd, 2025 at 19:49.

  2. #2
    LordEntrails's Avatar
    Join Date
    May 2015
    Location
    -7 UTC
    Posts
    18,224
    Blog Entries
    9
    Not sure I understand the question.
    If this helps, a table in a story has the following XML to define it's width. Note that it is a weight and not a number of pixels or window percentage.
    <encounter>
    <id-00001>
    <name type="string">Story Table</name>
    <text type="formattedtext">
    <table>
    <tr>
    <td>Column 1</td>
    <td colspan="2">Double Wide</td>
    </tr>
    </table>
    </text>
    </id-00001>
    </encounter>

    Problems? See; How to Report Issues, Bugs & Problems
    On Licensing & Distributing Community Content
    Community Contributions: Gemstones, 5E Quick Ref Decal, Adventure Module Creation, Dungeon Trinkets, Balance Disturbed, Dungeon Room Descriptions
    Note, I am not a SmiteWorks employee or representative, I'm just a user like you.

  3. #3
    I'm sorry. I am toying around with a form in a ruleset. I think I found my answer, but it took some digging through the files to find the right place to make the change so I cold set the size of the field.

    This is the XML where the label and field are defined on a form for equipment:

    Code:
    	<label_column name="mass_label">
    		<static textres="item_label_mass" />
    	</label_column>
    	<number_columnh name="mass" />
    and I wanted to make the mass field wider to accommodate larger numbers.

    I changed the XML to this:

    Code:
    	<label_column name="mass_label">
    		<static textres="item_label_mass" />
    	</label_column>
    	<number_columnh name="mass" />
    		<anchored>
    			<size>
    				<width>80</width>
    			</size>
    		</anchored>
    		<readonly />
    	</number_columnh>
    and was able to get the results I was interested in achieving. I am not sure this is the best way to do this or not.

    I have attached before and after of what I was trying to do.
    Attached Images Attached Images

  4. #4
    Just pushed a new version of MGT2 ruleset to beta Test channel with Mass field width increased by 50% (40->60).

    Regards,
    JPG

  5. #5
    Quote Originally Posted by Moon Wizard View Post
    Just pushed a new version of MGT2 ruleset to beta Test channel with Mass field width increased by 50% (40->60).

    Regards,
    JPG
    Dominic was going to specifically look into this, but thanks. I was just exploring to attempt to understand how things happen in the ruleset.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
TALES of the VALIANT

Log in

Log in