Joshua Stream Pre
  1. #1
    celestian's Avatar
    Join Date
    Jan 2017
    Location
    DFW, Texas
    Posts
    2,713

    Widget.setSize() ... "size cap" ?

    In FGC...

    So I am trying to do some interesting things with widgets. One thing I've noticed is that if I set the size of a widget to 800 it doesn't display. 700 is fine.

    Is there some scale/size caps to widgets? Using them as a transparent overlay is my goal but I need them to be larger than 800 in some cases.
    ---
    Coding the Official AD&D Ruleset
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)

  2. #2
    celestian's Avatar
    Join Date
    Jan 2017
    Location
    DFW, Texas
    Posts
    2,713
    If I try this "widgetAura.setSize(nSize, nSize,"center");" and the nSize is > 700 it no longer shows.

    I've tried w/o the clipanchor and with.

    Keep in mind the widget is much larger than the token it's attached to. I am trying to use a transparent widget that displays the size of an aura on the token. SO if the token is 10ft and the aura is 20ft it will surround the token 20ft all round.

    After some additional experimentation it does seem that once you reach a certain size that it just doesn't show anymore. Depends on the size of the source image.

    My hope was to have a 50x50 icon that I could use to size to proper aura size based on Map unit size and token size. Unfortunately this pretty much stops any chance that'll work... for now.
    Last edited by celestian; May 26th, 2020 at 03:31.
    ---
    Coding the Official AD&D Ruleset
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)

  3. #3
    yako2020's Avatar
    Join Date
    Sep 2012
    Location
    São Carlos, São Paulo - Brazil
    Posts
    1,088
    Celestian and that would do exactly what in the game, add an aura, a halo of light to the token?
    [FGC AND FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
    [D&D 5 PLAYER][CALL OF CTHULHU PLAYER][SAVAGE WORLDS PLAYER][GURPS PLAYER AND LOVER]
    [FANTASY GROUNDS STREAMER ON TWITCH]


  4. #4
    celestian's Avatar
    Join Date
    Jan 2017
    Location
    DFW, Texas
    Posts
    2,713
    Quote Originally Posted by yako2020 View Post
    Celestian and that would do exactly what in the game, add an aura, a halo of light to the token?
    If it had worked...

    ---
    Coding the Official AD&D Ruleset
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)

  5. #5
    yako2020's Avatar
    Join Date
    Sep 2012
    Location
    São Carlos, São Paulo - Brazil
    Posts
    1,088
    Celestian but it didn't work on any of the FGs?
    It would be perfect for paladin's auras and even to indicate the range of light sources, even better if you could change the colors!
    Every day you come up with impressive improvements!
    [FGC AND FGU ULTIMATE LICENSE HOLDER][BRAZILIAN][GMT-3]
    [D&D 5 PLAYER][CALL OF CTHULHU PLAYER][SAVAGE WORLDS PLAYER][GURPS PLAYER AND LOVER]
    [FANTASY GROUNDS STREAMER ON TWITCH]


  6. #6
    celestian's Avatar
    Join Date
    Jan 2017
    Location
    DFW, Texas
    Posts
    2,713
    Quote Originally Posted by yako2020 View Post
    Celestian but it didn't work on any of the FGs?
    It would be perfect for paladin's auras and even to indicate the range of light sources, even better if you could change the colors!
    Every day you come up with impressive improvements!
    Unfortunately no, I couldn't get it to work properly. After a certain size of aura it would just disappear. The general idea was to have a multitude of colors and allow that to be set using the aura effect. something like "AURA: 20 foe red;ATK:-2" and it would show a red aura around the token 20 feet out. Well, the effect works (in 2e) but the problem with the widget has currently stalled the project for the visuals.
    ---
    Coding the Official AD&D Ruleset
    Documentation for AD&D 2E ruleset.
    My Twitch Channel for AD&D and FG related streams (See schedule for live days)
    My YouTube for FG related Tutorials and AD&D Actual Plays
    Custom Maps (I2, S4, T1-4, Barrowmaze,Lost City of Barakus)

Thread Information

Users Browsing this Thread

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
DMsGuild Classic

Log in

Log in