PneumaPilot
November 15th, 2008, 20:56
Okay, so I'm trying to make my nWoD character sheet a little more dynamic. I have a row of colored beads like this that I hope to one day allow the character sheet to change to enable new fields/remove old fields to match a given 'module' in the World of Darkness.
https://i208.photobucket.com/albums/bb309/PneumaPilot/GameLine.jpg
Now, to begin with, I just want to get these beads working so that when I click on one, it lights up and any other lit up bead goes dark. This state information also needs to be saved since the character sheet will be built onInit to match the selected state.
For this task, I have chosen to (one again) modify the checkbox control. One part of that is easy - just create a copy of the control, rename it, and change which icons are associated with the state information. Now, I can do that the hard way: make a new template control for each different colored bead, but it seems like there ought to be an easier way.
I've noticed in the template script for checkbox that there is apparently some array of icons. It calls stateicons[1].on[1] and the like. It seems like there ought to be a way to simplify this whole thing for the gameline beads where all of them fit in one control template. Does anyone know anything about this?
https://i208.photobucket.com/albums/bb309/PneumaPilot/GameLine.jpg
Now, to begin with, I just want to get these beads working so that when I click on one, it lights up and any other lit up bead goes dark. This state information also needs to be saved since the character sheet will be built onInit to match the selected state.
For this task, I have chosen to (one again) modify the checkbox control. One part of that is easy - just create a copy of the control, rename it, and change which icons are associated with the state information. Now, I can do that the hard way: make a new template control for each different colored bead, but it seems like there ought to be an easier way.
I've noticed in the template script for checkbox that there is apparently some array of icons. It calls stateicons[1].on[1] and the like. It seems like there ought to be a way to simplify this whole thing for the gameline beads where all of them fit in one control template. Does anyone know anything about this?