FG Spreadshirt Swag
  1. #1

    Window List Issue

    I've been using ruleset wizard to convert cyberpunk red into fantasy grounds (unity) for my own use and to have a fun little side project.

    Overall things are going pretty well, however I'm experiencing a weird issue with anchored window lists. I've attached an image to demonstrate, but when the character sheet window is untouched, things look good (see left side of attached image). However if the width of the character sheet is extended, the first row of the list gets cut off (see the right side of the attached image) and it's only the first row. This issue does not occur in the opposite direction. If you add an item to the window list (or reload the ruleset), the top item width updates to what it should be.

    Does anyone have ideas for how to fix this? I'm not afraid to dig into xml or lua if necessary.

    I would share the .rwp file, but given the nature of what it is, I'm not exactly sure if I can...
    Attached Images Attached Images

  2. #2
    I'm not familiar with ruleset wizard; but it looks like an anchoring issue in the weapon name field in the weapon window class.

    If you're using some sort of ruleset wizard specific piece, you'll have to ask the community developer that makes the ruleset wizard. (He's on Discord server a fair amount; and there is a channel there.)
    Otherwise, you'll need to look at how the right anchor is defined for the weapon name; and that it is dynamically linked to the right edge; either directly or by anchoring off another controls dynamically anchored to right edge. There are several examples in the various built-in rulesets in FG.

    Regards,
    JPG

  3. #3
    Deleted my old message due to it referencing on improper fix.

    The problem appears to have been exactly what you said. I added the following from CoreRpg under the windowclass tag and things were good. Now I'm going to try figuring out how to do generate it via ruleset wizard

    Code:
    <margins control="0,0,0,2" />
    So thanks for the input.
    Last edited by Nightstride; February 21st, 2021 at 00:46.

  4. #4
    Figured it out in ruleset wizard. I had to add a custom property under the general section of the root window. Here were my parameters:

    Attributes : <empty>
    Property Element: margins
    Property Name : control
    Property Value : 0,2,0,0

    the Property Value appears to require at least one number above 0 (In my case, I have a 2 px margin on top).

    Here's the code it generated under the windowclass

    Code:
    <margins>
      <control>0,2,0,0</control
    </margins>

  5. #5
    Hi zmtoman,

    could you send me the project file so I can fix this problem in the wizard?
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

  6. #6
    Quote Originally Posted by psicodelix View Post
    Hi zmtoman,

    could you send me the project file so I can fix this problem in the wizard?
    I just sent you a dm with the stuff.

  7. #7
    I don't understand where the problem could be, nor why it is solved by adding margins to the window. the generated code is pretty straightforward, it should work fine:

    Code:
      <windowclass name="listWeapon">
        <placement>
          <size height="20" width="309" />
        </placement>
        <sheetdata>
          <stringfield name="weaponName">
            <frame>
              <name>fieldSimple</name>
              <offset>5,0,5,0</offset>
            </frame>
            <bounds>5,0,-191,20</bounds>
            <lineoffset default="on">2</lineoffset>
          </stringfield>
    ...
    It seems some weird behaviour of the FG client, maybe some FG guru can give us some light about this.
    Ruleset Wizard
    The Ruleset Development Environment
    www.rulesetwizard.com
    Ruleset Wizard Tutorials
    Damned's Ruleset Wizard Tutorials

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