5E Character Create Playlist
  1. #1

    Masking/UnMasking areas with no cursor input

    This is a real cookie here. As far as the exposed Ruleset API goes, there's only:

    getMaskTool
    hasMask
    onMaskingStateChanged
    setMaskEnabled
    setMaskTool

    Under ImageControl.

    Now some of us are familiar with Steve Melton's (smelton) prototype FoW extension that created a pseudo dynamic lighting by automating Masking/Unmasking. I currently find myself in need of the ability to mask/unmask without cursor input, and Smelton's extension clearly did that... But how? I simply don't see handlers to enable that, or am I missing something?

  2. #2
    I think he actually built a grid of controls overlaying the image control dynamically. There is no direct access to the mask data.

    Cheers,
    JPG

  3. #3
    Ah, it makes sense now, especially with the grayed out area, a series of Images or widgets stretched to overlay the grid. That's actually very doable combined with his moving tokens via clicking on the area. My goal here was to create a pseudo polygon FoW tool since I was getting tired of the crappy free-draw.

    And so ends my extension sprint this weekend.

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
  •  
STAR TREK 2d20

Log in

Log in