Ok I resolve the origin Skills "boostraping" the features to each race but then the hero has the tag "HasFeature.OrSkill1" and "HasFeature.OrSkill1" and this don't find the OrSkill.? tag neither Helper.OrSkill tag.
Because of the above trouble I try again to make a chose menu for this skills.
(and this way don't need to boostrap the above features on each race)
But again don't "pops up the chooser window":
Here is the code I use:
PORTAL:
Code:
<portal
id="OrSkills"
style="tblNormal">
<table_dynamic
component="Skill"
showtemplate="OrSkPick"
choosetemplate="SimpleItem"
showfixedlast="yes"
addpick="resOrSkill"
alwaysupdate="yes">
<list><![CDATA[
Helper.OrSkill
]]></list>
<candidate>component.Skill</candidate>
<autotag group="Helper" tag="OrSkill"/>
<titlebar><![CDATA[
@text = "Add 2 Skills - " & hero.child[resOrSkill].field[resSummary].text
]]></titlebar>
<description/>
<headertitle><![CDATA[
@text = "Languages: " & hero.child[resOrSkill].field[resSummary].text
]]></headertitle>
<additem><![CDATA[
~set the color based on whether the proper number of slots are allocated
if (field[resLeft].value = 0) then
@text = "{text a0a0a0}"
elseif (field[resLeft].value < 0) then
@text = "{text ff0000}"
endif
@text &= "Add New Skill"
]]></additem>
</table_dynamic>
</portal>
TEMPLATE:
Code:
<!-- OrSkPick template
-->
<template
id="OrSkPick"
name="Origins Skill Picks"
compset="Skill"
marginhorz="3"
marginvert="2">
<portal
id="name"
style="lblNormal"
showinvalid="yes">
<label
field="thingname">
</label>
</portal>
<portal
id="info"
style="actInfo">
<action
action="info">
</action>
<mouseinfo/>
</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[info].height
~if this is a "sizing" calculation, we're done
doneif (issizing <> 0)
~position our tallest portal at the top
portal[info].top = 0
~center the other portals vertically
perform portal[name].centeron[vert,info]
perform portal[delete].centeron[vert,info]
~position the delete portal on the far right
perform portal[delete].alignedge[right,0]
~position the info portal to the left of the delete button
perform portal[info].alignrel[rtol,delete,-8]
var edge as number
edge = portal[info].left - 5
~position the name on the left and let it use all available space
portal[name].left = 0
portal[name].width = minimum(portal[name].width,edge)
~if this is an auto-added pick, change its font to indicate that fact
if (ispick + !candelete >= 2) then
perform portal[name].setstyle[lblAuto]
endif
]]></position>
</template>
I understand (finally) why HL display at first all the skills:
Code:
<list><![CDATA[ !thing.user_added & !Hide.Skill ]]></list>
now I change that line to:
Code:
<list><![CDATA[ Helper.OrSkill]]></list>
This way only will display the Origin Skills on the table (at least I think so)
But when I press the "Add New Skill" chooser HL keeps saying
NOTHING TO CHOSE FROM!
I read that the <Candidate> looks this and I change the value from
TRUE to component.Skill and try Skill.? and !Hide.Skill expressions without any luck or change.
Please help me figure it out why don't show the chose window.
Thanks