STAR TREK 2d20
Page 2 of 2 First 12
  1. #11
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    The problem is that Fantasy Grounds struggles when using a very large number of controls, so I'd like to
    be able to decide to show a small amount, by cycling the information within them.

    In my case I have to show data tables with a number of columns ranging from 10 to 22 and an
    approximate number of rows of 100 (or more). The data can vary, so I can't show a simple HTML table.
    The idea I was thinking about was to show a certain number of rows based on a data present in
    the DB, managing the onWheel event to scroll the data in the few fields shown.

    But the problem is that the data can change after a window has already been opened and then
    closed, so I need the resize to happen even when it's opened again.

    If you have better ideas on how to manage a large number of data that can change during game,
    please tell me, do not esitate.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  2. #12
    Yeah, we actually do this with the item records. We use a subwindow to add/remove "type"-specific controls to the window. If the "type" field changes, then the subwindow is swapped out for the new one.

    In your case, you could probably also "window" the data onto a fixed number of controls (i.e. create a data view, not to be confused with FG window object); and allow the user to navigate up/down/left/right. Then, you update the fields with the correct values based on the "offset" of the data view.

    Regards,
    JPG

  3. #13
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Yes, this was my idea, but I was wondering if there was a way to change the data slice window to accommodate 3 ways
    of seeing the data itself (each way has a specific scope determined by the data it is showing).

    I'll probably have to settle for finding a middle ground that fits all three types (consider that they are dynamic and can
    change as the data is displayed).

    Thanks again for the support.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  4. #14
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    I was wondering if it was possible to make Fantasy Grounds not remember the
    position and/or size of the windows. Is there a parameter or function somewhere?
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  5. #15
    Yes, add a "<nosave />" tag to the windowclass.

    Regards,
    JPG

  6. #16
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    Don't misunderstand what I'm about to tell you: I love you!

    Ty!!!

    PS that's undocumented
    Last edited by Xarxus; March 10th, 2023 at 20:57.
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

  7. #17
    damned's Avatar
    Join Date
    Mar 2011
    Location
    Australia
    Posts
    26,638
    Blog Entries
    1
    Quote Originally Posted by Xarxus View Post
    Don't misunderstand what I'm about to tell you: I love you!

    Ty!!!

    PS that's undocumented
    Nope. Your love for the Moon Wizard has been documented.

  8. #18
    Xarxus's Avatar
    Join Date
    Mar 2019
    Location
    Rome (Italy)
    Posts
    244
    I should have known I was going to hurt myself
    FGU ULTIMATE License
    Click here for RPG Music or here for Dwarves songs on Spotify

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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