• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Gizmo question

ShadowWalker

Well-known member
Some races in Interface Zero have some player decided text.
I though I would use a gizmo to have a form show up on selection of one of the races that has this requirement.

So I added an entity to the traits.dat where races are defined.
Code:
  <entity
    id="adjRace"
    form="raCustRace">
    <bootstrap thing="racDetails"/>
  </entity>

I added the racDetails thing
Code:
  <thing
    id="racDetails"
    name="Racial Details"
    compset="RaceDetail">
  </thing>

I then added the entity to the race things that require it.
Code:
    <child entity="adjRace">
    </child>

I created the form with a simple template that includes an edit portal. There is also a layout that has the template linked to the same thing as the above entity uses in the bootstrap.

I have a chooser that shows the list of the races.
When one of the races with the entity associated to it is selected it doesn't show the form. I'm missing something just not sure what.
 
Choosers can't show edit forms.

You'll need a separate table where you display picks from that compset (which will only ever get one item).
 
So I can't use a chooser to do the selection.
Instead I need to use a dynamic table?
There is a way to limit just one selection and allow for changing that selection?

Is there another way I could have done this that would have been better? or is this the correct way to do it?
 
The other alternative would be to have a chooser to select the race, and then a fixed table that shows the selection, and doesn't really look like a table - instead, it just looks like more of the text on that tab, that appears once a race is selected.

That way, users wouldn't even need to open a new form to type in the text - it just appears on the same tab once a race is selected, along with any other information about the race.
 
Another alternative: a helper pick that's bootstrapped by races (a component bootstrap), and that ability is displayed somewhere, and shows an edit control for the user to type in the text.
 
Back
Top