Senior Member
Join Date: Feb 2015
Posts: 676
|
I'm trying to use a chooser_table element in a gizmo form I'm making, but the "chsNormal" portal style from the sample code does not seem to be valid. What style can I use for the containing portal element instead? So far none of the experimental names I've tried have worked.
|
#1 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Are you talking about the table or the pick template of something added to the table? Because I am not exactly clear from the terms you are using.
|
#2 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
I'm talking about the table, as described in the wiki here. Like I've done with several other elements in the past, I started by copy/pasting the sample code and adapting it to my needs:
Code:
<portal id="stRace" style="chsNormal" width="110"> <chooser_table component="Race" choosetemplate="LargeItem"> <chosen><![CDATA[ if (@ispick = 0) then @text = "{text ff0000}Select Race" else @text = "Race: " & field[name].text endif ]]></chosen> <titlebar> @text = "Choose the race for your character" </titlebar> </chooser_table> </portal> If it matters, I'm using a custom component and pick template. Does that make more sense? |
#3 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
Yes. Try style="Chooser"
Code:
<portal id="sCSplAll2" style="Chooser"> |
#4 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
Ha! Of course I didn't think to try capitalizing. Thanks, Aaron!
Incidentally, is there anywhere in the PF data files I'd be able to find anything that would serve as a style reference? I'd hate to have to pester you every time this comes up. |
#5 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 13,213
|
No, the file you're looking for is not publicly available for any packaged game system (like pathfinder). Please note that user-created tabs and forms are not something that is officially supported - the documentation (like all the ids of the visual elements) isn't in place to support it, and there's a lot of potential for conflict with changes that are made in the official files.
|
#6 |
Senior Member
Join Date: Feb 2015
Posts: 676
|
Quote:
But if you guys are still in a generous mood: what style can I use for an incrementer in Pathfinder? |
|
#7 |
Senior Member
Join Date: Oct 2011
Posts: 6,793
|
All the examples I could find, try each out and see which one you like, I guess.
Code:
style="BigWidInGr" style="BgThinIncr" style="CompSmIncr" style="incrSimple" style="SmallIncr" style="BigIncr" style="SkillIncr" style="XactIncr" style="XWideIncr" style="BigWidIncr" style="RepBalIncr" style="SellIncr" style="SmUpDwIncr" |
#8 |
|
|