• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Custom Borders

Duggan

Well-known member
I decided to take a spike and try to set up a different border style for my character sheets in Planet Mercenary. I would like to make them look like the official character sheet:
attachment.php


What I'm currently getting on the character sheet:
attachment.php


This is identical to what I was getting when I was using 'border="solid"'.

The relevant code:
Bubble Border
Code:
<!-- border used for character sheet bubbles -->
<resource
  id="bubble"
  issystem="no"
  isbuiltin="no">
  <border>
    <topleft bitmap="bubble_topleft.bmp"/>
    <topright bitmap="bubble_topright.bmp"/>
    <bottomleft bitmap="bubble_bottomleft.bmp"/>
    <bottomright bitmap="bubble_bottomright.bmp"/>
    <left bitmap="bubble_left.bmp"/>
    <top bitmap="bubble_top.bmp"/>
    <right bitmap="bubble_right.bmp"/>
    <bottom bitmap="bubble_bottom.bmp"/>
    </border>
  </resource>

Style
Code:
<!-- center-aligned for output with border-->
<style
  id="outBNormCt"
  border="bubble">
  <style_output
    textcolor="000000"
    font="ofntnormal"
    alignment="center">
    </style_output>
  </style>

Name Portal
Code:
<portal
  id="oHeroName"
  style="outBNormCt">
  <output_label>
    <labeltext><![CDATA[
      @text = hero.actorname
      ]]>
      </labeltext>
    </output_label>
  </portal>

And, for good measure, the bitmaps I'm using are in the attached zip file (probably because BMP isn't a very secure format, I can't upload those images).
 

Attachments

  • Char Sheet Name.png
    Char Sheet Name.png
    2.5 KB · Views: 70
  • Actual.png
    Actual.png
    2.2 KB · Views: 72
  • bubble_images.zip
    bubble_images.zip
    1.6 KB · Views: 3
Although... looking at a few character sheets that use curved edges on their interfaces, it looks like they use square borders on the character sheets. So maybe custom borders are only an interface thing.

I'll skip this for now, but if all else fails, I suspect I can probably make judicious use of bitmaps to layer values into them. They're all a pretty fixed width.
 
While it's still not working, just noting for future people using this that the eight images require a degree of symetricality. The four corner pieces and the left and right need to have the same width. The four corner pieces and the top and bottom need the same height. I have made those changes in my data files and it still doesn't work on the sheet.
 
^_^ Although, probably worth asking point-blank. Mathias, is it possible to do custom borders on character sheets?
 
I have no experience building the visual elements of a custom border. I'll see if Colen can chime in on this thread.
 
I have no experience building the visual elements of a custom border. I'll see if Colen can chime in on this thread.

I know you guys are probably busy gearing up for Gencon, but would DaveM now be the right person to try to loop in afterwards?
 
Back
Top