STAR TREK 2d20
Page 1 of 3 123 Last
  1. #1

    images in refrence material

    Hi,
    I want to add an image to my refrence material - one of my friends has created a really cool martial arts diagrams and I want to be able to add them to the refrence material section.

    So the question is how do I add images to it - I have edited it before and added new kit etc but I want to need to add pictures - any ideas ?

    Jon

  2. #2
    Quote Originally Posted by jonsharland
    Hi,
    I want to add an image to my refrence material - one of my friends has created a really cool martial arts diagrams and I want to be able to add them to the refrence material section.

    So the question is how do I add images to it - I have edited it before and added new kit etc but I want to need to add pictures - any ideas ?

    Jon
    This is only a guess since I haven't tried it myself but since the material is presented in html format you might be able to do something like:
    Code:
    <img src=file:///path/to/image>

  3. #3
    That doesnt work. Any other ideas? I have tried a handfull and cannot get FG to render images.
    • snikle •
    . .lapsus calumni. .

  4. #4
    Only thing I can think of in the current version is to make it a shareable sheet like maps and such. I wanted to do the same with an alignment diagram but couldnt find any way to do it.
    Alea Iacta Est
    The Die is Cast!

  5. #5
    Might not be quite what you arr trying to do but in the windowclass used to display the reference info you can use a staticgraphic node to include an image.
    Code:
     
       <staticgraphic>
        <bounds rect="170,20,80,60" />
        <icon name="AnImage" />
       </staticgraphic>
    This assumes that "AnImage" has been defined somewhere else (e.g. in d20_graphics.xml) as:
    Code:
     
         <icon name="AnImage" file="rulesets/MyCustomRuleset/icons/AnImage.png" />
    Work Less, Game More!

  6. #6
    Nope, trying to get an image to appear in the Ruleset, say in the classes.xml file. Looked at a few normal xml options to display images and nothing has worked.
    • snikle •
    . .lapsus calumni. .

  7. #7
    Quote Originally Posted by Toadwart
    Might not be quite what you arr trying to do but in the windowclass used to display the reference info you can use a staticgraphic node to include an image.
    Code:
     
       <staticgraphic>
        <bounds rect="170,20,80,60" />
        <icon name="AnImage" />
       </staticgraphic>
    This assumes that "AnImage" has been defined somewhere else (e.g. in d20_graphics.xml) as:
    Code:
     
         <icon name="AnImage" file="rulesets/MyCustomRuleset/icons/AnImage.png" />

    Yeah, I was thinking this might work also, instead of having the link box, use another image and remove the code that deals with with switching the graphic when clicking and linking info.
    Alea Iacta Est
    The Die is Cast!

  8. #8

    Join Date
    Jul 2006
    Location
    Taichung, TAIWAN
    Posts
    50

    No luck here, either...

    Quote Originally Posted by Snikle
    Nope, trying to get an image to appear in the Ruleset, say in the classes.xml file. Looked at a few normal xml options to display images and nothing has worked.
    The /data/icons/footer_wide.png which appears at the bottom of any window called up from the references can of course be changed, but I can't get any additional images to show up within the references. It appears as if these types of images have to be defined as headers and footers wherever the window is initially set up. The combattracker's header and footer also follow this pattern:

    <windowclass name="combattracker">
    .
    .
    <sheetdata>
    <staticgraphic>
    <bounds rect="19,20,480,7" />
    <icon name="tracker_heading" />
    </staticgraphic>
    <staticgraphic>
    <bounds rect="120,-28,287,9" />
    <icon name="tracker_footer" />
    </staticgraphic>
    <windowlist class="combattracker_entry" name="list">
    .
    .
    I believe it's the <windowlist> tag which allows the insertion of the various nodes which comprise the window's dynamic data. As for the <windowclass name="class"> defined in d20_reference.xml, the <footer image="footer_wide" /> is defined within the <formattedtextcontrol name="text"> tag. Thus, although I think it'd be cool to be able to add racial images next to the racial headings, it doesn't seem possible.

    Kudos to anyone who can figure out how to pull it off!

  9. #9
    Well, I have a message from someone that claims to have done it in one of their commercial products and said "Well ... if you buy our ********* Ruleset you can find out." So apparently it is possible, but he doesn't want to share.
    I plan on continuing to work it and perhaps I will figure it out. Will let you all know if/when I do.
    • snikle •
    . .lapsus calumni. .

  10. #10
    Quote Originally Posted by Snikle
    Well, I have a message from someone that claims to have done it in one of their commercial products and said "Well ... if you buy our ********* Ruleset you can find out." So apparently it is possible, but he doesn't want to share.
    I plan on continuing to work it and perhaps I will figure it out. Will let you all know if/when I do.
    First off "Mr. Jackson", if you look at the message I sent you'll see it was full of winks and smiles, and even an off-handed offer to do some work for my company. It is funny that you didn't mention that in your viper-like posting that basically bashed my company and the hard work my developers do. YOU make it sound like I was purposely waving it in your face like some freshly caught fish, which we both know is not the case.

    Also, in case you didn't notice, two of MY developers were trying to help the community solve this problem, though it is evident that they forgot we solved this already -- at least I know Toadwart did (as Tim is newer to our group). For some reason you don't mention that either, Mr. Jackson.

    Up until your completely disrespectiful posting I was about to give the community the code, but now I'm not so sure if all I get in return for it is an ungracious stab in the back. I would think that Digital Adventures and its team of developers would garnish a bit more respect considering what we have given to this community in the past, whether it commercial in nature or not.

    And lastly, I noticed that my private message box was empty when I got home today Mr. Jackson, and there was no request in any way politely asking me if I would post the code. Perhaps you should have tried that angle before coming at me guns blazing.

    So, before you point your impertinence in my direction perhaps you had better had better question your own ethics, and try and have a little more respect for your fellow gamer.
    Last edited by Thore_Ironrock; October 12th, 2006 at 01:19.

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
  •  
5E Product Walkthrough Playlist

Log in

Log in