View Single Post
TCArknight
Senior Member
 
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,243

Old December 15th, 2020, 08:38 AM
Quote:
Originally Posted by Mathias View Post
For the second of these, check out the "orderfield" attribute on components: http://hlkitwiki.wolflair.com/index...._Element_(Data)

(note that the auto link detection messes up on closing parentheses, and I don't have time to get that correct right now). I'll talk about how to build a prereq to count the existing copies of that skill another time - I'm afraid I need to get back to work right now, but I had a quick answer I could link to for how to build the index.
That worked, thanks.

Can you think of a reason that a checkbox wouldn't display on a gizmo form? This is my layout and template, which seems like it should work, but no luck...
Code:
  <template
    id="lpSpecialtyGain"
    name="Specialty Gained"
    compset="LifepathHelper"
    marginhorz="3"
    marginvert="2">

    <portal
      id="lblGained"
      style="lblNormal">
      <label>
        <labeltext><![CDATA[
          @text = "Specialty Gained?"
          ]]></labeltext>
        </label>
      </portal>

    <portal
      id="gained"
      style="chkNormal"
      tiptext="Click to indicate hero gains a Specialty for this tour.">
      <checkbox
        field="lpSpecGained">
        </checkbox>
      </portal>

    <position><![CDATA[
	  height = portal[gained].height + 5
	  
      ~position our tallest portal at the top
      portal[gained].top = 0

	  portal[gained].visible = 1
	  
      ~position the gained portal on the far right
      perform portal[gained].alignedge[right,0]
	  
	  ~position the aging portal to the left of the years button
	  portal[lblGained].left = 0
	  portal[lblGained].width = 150
	  
      perform portal[lblGained].alignrel[rtol,gained,-5]

      ]]></position>

    </template>	
  <!-- static layout
        This layout consists of the character's name, race, and status info, which
        are laid out in a ribbon across the top.
  -->
  <layout
    id="lifepathmodule">
    <portalref portal="lpSkill" taborder="10"/>
    <portalref portal="lpSpecialty" taborder="20"/>
	<templateref template="lpSpecialtyGain" dynamic="yes" taborder="15"/>

    <!-- This script sizes and positions the layout and its child visual elements. -->
    <position><![CDATA[
      ~width = 350
	  
      perform portal[lpSkill].autoplace
	  perform template[lpSpecialtyGain].autoplace[20]
	  perform portal[lpSpecialty].autoplace[10]
	  
	  height = portal[lpSpecialty].bottom
	  
      ]]></position>

    </layout>
Attached Images
File Type: jpg HL - Missing checkbox.JPG (40.8 KB, 1 views)

Working on -
  • (SWADE) WIP Savage Rifts
  • Savage Rifts (Deluxe): Update link in This post
  • Star Trek Adventures: Update link in This post
TCArknight is offline   #27 Reply With Quote