FG Spreadshirt Swag
  1. #1

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    895

    Is it possible to override the Distance Suffix

    Is it possible to override the distance suffix field/control in the image window?

    I would like to define a number of preset units that could be selected via a dropdown or similar.
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  2. #2
    It can be defined on a ruleset basis using Interface APIs.

    Regards,
    JPG

  3. #3

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    895
    Quote Originally Posted by Moon Wizard View Post
    It can be defined on a ruleset basis using Interface APIs.
    Are you able to point me to some documentation. I've looked at the "ImageControl", "Interface", "Assets and Settings" API reference material and there doesn't appear to be anything related to the image subwindows, specifically how to override the distance suffix.

    The image below shows the field/control I want to override. I would like to turn that into a dropdown with a number of preset values the GM can select from.

    DistanceSuffix.jpg
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  4. #4
    Quote Originally Posted by ronnke View Post
    Are you able to point me to some documentation. I've looked at the "ImageControl", "Interface", "Assets and Settings" API reference material and there doesn't appear to be anything related to the image subwindows, specifically how to override the distance suffix.

    The image below shows the field/control I want to override. I would like to turn that into a dropdown with a number of preset values the GM can select from.

    DistanceSuffix.jpg
    Something along these lines probably

    (this was an imagewindow)
    Code:
    window.image.setDistanceBaseUnits(sOldDistance);
    window.image.setDistanceSuffix(sOldSuffix);
    I can't point the the docs but thats what I used previously.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

  5. #5
    I might be wrong but I think the "gameelements.xml" controls this:

    Code:
    	<distance>
    		<base>1</base>
    		<diagmult>1</diagmult>
    		<suffix>y</suffix>
    	</distance>

  6. #6

    Join Date
    Apr 2010
    Location
    Australia
    Posts
    895
    Quote Originally Posted by Mephisto View Post
    I might be wrong but I think the "gameelements.xml" controls this:
    I want something more like this:

    Code:
    	<distance>
    		<base>1</base>
    		<diagmult>1</diagmult>
    		<suffix>ft</suffix>
    		<suffix>yd</suffix>
    		<suffix>m</suffix>
    		<suffix>mi</suffix>
    		<suffix>AU</suffix>
    		<suffix>ly</suffix>
    		<suffix>pc</suffix>
    	</distance>
    Timezone: Australian EST (GMT +10).
    Systems/Rulesets: GURPS 4th Edition.
    Campaigns (Ultimate License Holder)
    GURPS Traveller - The Empty Peace
    GURPS Shadowrun - Power Plays
    GURPS Banestorm - Dark Clouds Rising

  7. #7
    Quote Originally Posted by ronnke View Post
    I want something more like this:

    Code:
    	<distance>
    		<base>1</base>
    		<diagmult>1</diagmult>
    		<suffix>ft</suffix>
    		<suffix>yd</suffix>
    		<suffix>m</suffix>
    		<suffix>mi</suffix>
    		<suffix>AU</suffix>
    		<suffix>ly</suffix>
    		<suffix>pc</suffix>
    	</distance>
    You would need to create your own UI to display the allowed units and then use the method I mentioned above to set them after selection. At least that's where I would start.
    ---
    Fantasy Grounds AD&D Reference Bundle, AD&D Adventure Bundle 1, AD&D Adventure Bundle 2
    Documentation for AD&D 2E ruleset.
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)
    Note: Please do not message me directly on this site, post in the forums or ping me in FG's discord.

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
  •  
Starfinder Playlist

Log in

Log in