STAR TREK 2d20
  1. #1

    non static column labels

    Hello and thanks in advance,
    How can i make a column_label not static? i want to be able to rename stress tracks for certain NPC's in the fate ruleset. currently it reads <static textres="char_label_stresstrack1"/>. What can i do to make this text editable? Removing static from the line produces an error and i cannot find an example that uses any other labeling method.

    thanks!
    Last edited by heavy3p0; April 3rd, 2015 at 21:44.

  2. #2
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    If you want to change the string that gets displayed then you can change the relevant <string> entry in strings\strings_campaign.xml

    If you want to make the label editable through the GUI, then it will require changing the control definition that's being used to display the control.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  3. #3
    Trenloe's Avatar
    Join Date
    May 2011
    Location
    Colorado, USA
    Posts
    33,408
    If you want to make the label editable on a per NPC record basis then change the <label_column> to be something like this:

    Code:
    <stringfield name="physicalLabel">
    	<anchored height="20">
    		<top parent="columnanchor" anchor="bottom" relation="current" offset="7" />
    		<left />
    	</anchored>				
    	<font>sheetlabel</font>
    	<nodrag />
    	<empty textres="char_label_stresstrack1"/>
    </stringfield>
    This will allow the GM to click on the label and edit it (it defaults to the textres set in the <emplty> tag). This will be stored against the specific NPC record, so you'll need to change it for each NPC record you create.
    Private Messages: My inbox is forever filling up with PMs. Please don't send me PMs unless they are actually private/personal messages. General FG questions should be asked in the forums - don't be afraid, the FG community don't bite and you're giving everyone the chance to respond and learn!

  4. #4
    Quote Originally Posted by Trenloe View Post
    If you want to make the label editable on a per NPC record basis then change the <label_column> to be something like this:

    Code:
    <stringfield name="physicalLabel">
    	<anchored height="20">
    		<top parent="columnanchor" anchor="bottom" relation="current" offset="7" />
    		<left />
    	</anchored>				
    	<font>sheetlabel</font>
    	<nodrag />
    	<empty textres="char_label_stresstrack1"/>
    </stringfield>
    This will allow the GM to click on the label and edit it (it defaults to the textres set in the <emplty> tag). This will be stored against the specific NPC record, so you'll need to change it for each NPC record you create.
    Thanks Trenloe, this is exactly what i wanted! I plan to use the NPC sheet to represent things in addition to basic enemies, as anything can be represented like a character in Fate.
    Thanks Again!

  5. #5
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,684
    Blog Entries
    1
    Dont know if this helps but if you load the MoreCore extension you can see how the Combat Tracker extra columns can be renamed in the Options.

  6. #6
    Quote Originally Posted by damned View Post
    Dont know if this helps but if you load the MoreCore extension you can see how the Combat Tracker extra columns can be renamed in the Options.
    Thanks damned, i will look into that. I'm new to all this programming so any additional resources i can use to reverse engineer code from is always welcome.

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
  •  
DICE PACKS BUNDLE

Log in

Log in