PDA

View Full Version : Making numbercontrols uneditable by the user



Cantstanzya
April 5th, 2005, 05:54
In the charactersheet.xml there are some settings for numbercontrols like:
<nodrag />
<nodrop />
<noreset />
<displaysign />
<invisible />

Is there a setting that would make the box uneditable by the user? I am working on a 1st edition character sheet that is automatically filling in values of some numbercontrols that I don't want people to be able to change by accident.

Goblin-King
April 5th, 2005, 10:55
You have two options:


<value type="modifier" />

This will cause any modifications to the value to show up as a separate bubble. This is good if you want the player to be able to make quick and temporary adjustments due to spells or effects, but still keep the intent of the field clear.


<value type="readonly" />
<nokeyedit />

This will disable edits altogether.

Cantstanzya
April 5th, 2005, 16:29
Perfect, that is exactly what I was looking for. Even better is the value type="modifier", I like this feature, this will be very useful for spell effects.
Just out of curiosity, is there a comand that will allow only the GM to edit the value?
Thanks for the help!