Senior Member
Join Date: Jun 2014
Posts: 243
|
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> Code:
<thing id="racDetails" name="Racial Details" compset="RaceDetail"> </thing> Code:
<child entity="adjRace"> </child> 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. |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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). |
#2 |
Senior Member
Join Date: Jun 2014
Posts: 243
|
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? |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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. |
#4 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
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.
|
#5 |
Senior Member
Join Date: Jun 2014
Posts: 243
|
Thanks for the suggestions.
|
#6 |
|
|