Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Ok, I'm trying to work with gizmos for the skills in the Doctor Who system.
I've got the form to pop up but it's very odd. (frmAoE) The Skills tab is as I expect it,with clicking on the edit buttonopening the frmAoE. On the form, I'm not sure why the '????' instead of the "Add Specialty" (I've attached the system code on the next post) Any thoughts? Last edited by TCArknight; April 2nd, 2013 at 03:54 AM. Reason: removed code |
#1 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Instead of posting the code, I attached the latest files so you can see what's going on.
Last edited by TCArknight; April 2nd, 2013 at 03:52 AM. Reason: Attached latest system files |
#2 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
The data files could not be loaded due to the following errors:
File: tab_traits.dat (line 49) - Portal - Duplicate record encountered ('abGood') File: tab_traits.dat (line 84) - Portal - Duplicate record encountered ('abBad') File: tab_traits.dat (line 118) - Template - Duplicate record encountered ('abSelect') File: tab_traits.dat (line 192) - Template - Duplicate record encountered ('abPick') File: tab_traits.dat (line 313) - Layout - Duplicate record encountered ('abilities') File: tab_traits.dat (line 344) - Tab Panel - Duplicate record encountered ('abilities') |
#3 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Sorry, cancel that error message - I needed to delete your last posting of the doctor who files before adding in the new set. I'm guessing you renamed one of your tab files, so when simply adding one set to the other, I end up with both the old and new copies of that tab's file, so I get duplicates.
|
#4 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Arrrrrgh! I swear it didn't do that to me when I reloaded it right before I zipped it up
I'll have to redo it tonight after work |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Please take another look at the files you've posted. On the skills tab, every item there is named "testing", which doesn't match your screenshot, and none of them have edit buttons.
|
#6 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
Note how all my gizmo examples had a helper pick?
That's because of a change that needs to be made to tables within a gizmo. normally, you can leave the addpick="" part of a table_dynamic blank, because it defaults to addpick="actor". But in a gizmo, there is no default available, so you must have an addpick="". So, I always add a helper pick, and set the addpick="" to that helper pick. Without an addpick, the additem text will always be ?????? The helper pick doesn't need to be complex - you can use the Simple compset that's defined in miscellaneous.str for that pick, because it doesn't need to have any behaviors of its own - it just needs to be present. |
#7 |
Senior Member
Join Date: Jan 2007
Location: NW Arkansas
Posts: 1,321
|
Mathias,
Thanks for the help. I looked into the 4e files and saw what you mean about the helper. I've got this Skill Tab working to this point. The edit button is visible, and the mouseover text reads "Add Expertise" as I expect. When I click on the edit button, I get this as frmAoE. If I go ahead and click on the ????? to add an item, I get this chooser: But, once I make a selection, I get this but it adds it to the form. Quote:
Code:
<entity id="entAoE" form="frmAoE"> <bootstrap thing="AoEHelp"/> </entity> <!-- AoE Helper component Each AoE Gizmo derives from this component --> <component id="AoEHelp" name="Area of Expertise Helper"> <!-- Selection Tag Expressions --> <field id="aoeAoEExpr" name="Equipment Tag Expression" type="derived" maxlength="500"> </field> </component> <document signature="Hero Lab Data"> <portal id="prtAoE" style="tblNormal"> <table_dynamic component="SkillAoE" showtemplate="tmpAoE" choosetemplate="tmpAoE" scrollable="yes" alwaysupdate="yes" candidatepick="AoEHelp" candidatefield="aoeAoEExpr"> <additem><![CDATA[ @text = "Add Expertise" ]]> </additem> </table_dynamic> </portal> <template id="tmpAoE" name="Area of Expertise Pick" compset="SkillAoE" marginhorz="3" marginvert="1"> <portal id="name" style="lblSmall"> <label> <labeltext><![CDATA[ @text = field[name].text ]]></labeltext> </label> </portal> <portal id="delete" style="actDelete" tiptext="Click to delete this item"> <action action="delete"> </action> </portal> <position><![CDATA[ ~set up our height based on our tallest portal height = portal[name].height ~if this is a "sizing" calculation, we're done doneif (issizing <> 0) ~position our tallest portal at the top portal[name].top = 0 portal[name].left = 0 ~center the other portals vertically perform portal[delete].centervert ~position the delete portal on the far right perform portal[delete].alignedge[right,0] portal[name].width = width - portal[delete].width ]]></position> </template> <layout id="layAoE" marginvert="4"> <portalref portal="prtAoE" taborder="20"/> <position><![CDATA[ ~position and size the table to span the full layout portal[prtAoE].left = 0 portal[prtAoE].width = width ]]></position> </layout> <form id="frmAoE" name="Area of Expertise" marginhorz="10" marginvert="5"> <layoutref layout="layAoE"/> <position><![CDATA[ layout[layAoE].width = 250 perform layout[layAoE].render width = layout[layAoE].width height = 200 ]]></position> </form> </document> Also, how to I forward the SkillGen.xxxx tag into the aoeAoEExpr field for use as the candidate expression? TC |
|
#8 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
prtAoE needs an addpick="", set to your helper item.
|
#9 |
Senior Member
Volunteer Data File Author
Join Date: Feb 2009
Posts: 173
|
For what it's worth, I find this thread immensely helpful.
|
#10 |
|
|