PDA

View Full Version : Underlining text on a character sheet.



tdwyer11b
July 16th, 2007, 04:23
Anyone know if it's possible to underline text used in a stringcontrol?

Such as this:



<stringcontrol name="fatigue">
<anchored>
<to>healthframe</to>
<position>insidetop</position>
<offset>-40,30</offset>
</anchored>
<font>sheetlabelsmall</font>
<static>FATIGUE</static>
</stringcontrol>

Toadwart
July 16th, 2007, 04:50
Not sure if theres an xml construct to enable it ... cant see one in the documentation though there is an "underlineoffset" tag.
I guess you have to enable it in script like so:




<stringcontrol name="fatigue">
<anchored>
<to>healthframe</to>
<position>insidetop</position>
<offset>-40,30</offset>
</anchored>
<font>sheetlabelsmall</font>
<static>FATIGUE</static>
<script>
function onInit()
setUnderline(true);
end
</script>
</stringcontrol>


I'd first try using an <underline /> tag in the xml. Maybe it's just undocumented.
If that doesn't work then try <underline>true</underline> or <underline>on</underline>
If they don't work then try the script...

joshuha
July 16th, 2007, 05:07
You could also do this with a frame that has an underline on it. Look at the textlistitemvalue template in the charsheet_templates.xml. It just uses a frame called textline that puts a line under the text.

Foen
July 16th, 2007, 06:27
Two frames exist for this: textline and textlinesmall. I think the former is used on the d20 Notes tab, and the latter on the Skills tab.

Stuart
(Foen)