DICE PACKS BUNDLE
  1. #1

    Buttons on Custom Character Sheets

    I am try to figure out how to add a simple on/off button on a custom character sheet (that is recorded when the character sheet is closed). I've been using the generic character sheet created by Toadwart as a starting point.

    I'm a novice at XML, so after tinker around with some pieces of code from other rulesets and getting nowehere, I thought I'd ask the collective wisdom of the FG community.

    Any help would be appreciated.

  2. #2

    Join Date
    Aug 2007
    Location
    Vancouver, BC, Canada
    Posts
    15
    For the world of darkness one I am working on I just copied the checkbox template in common_templates.xml and the template_checkbox.lua script and made modifications to do the circles. Here is the template I did:

    Code:
    	<template name="checkcircle">
    		<genericcontrol>
    			<stateicons>
    				<on>indicator_circleon</on>
    				<off>indicator_circleoff</off>
    			</stateicons>
    			<script file="scripts/template_checkcircle.lua" />
    		</genericcontrol>
    	</template>
    The state icons need to be added to the graphics.xml file like so:

    Code:
    	<icon name="indicator_circleon" file="icons/indicator_circleon.png" />
    	<icon name="indicator_circleoff" file="icons/indicator_circleoff.png" />
    And the script for the template is pretty much just a copy of the template_checkbox.lua renamed. They function identically right now but I wanted to have different functions for them in case I needed to make any changes to them.

    If you have any questions about this throw it in here. I am sure someone can help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
FG Spreadshirt Swag

Log in

Log in