PDA

View Full Version : Core - Singlewindow back again



GKEnialb
February 19th, 2023, 01:27
Per the request of Ludd_G plus a few others and permission from Celestian, I've updated Singlewindow and added to the Forge (https://forge.fantasygrounds.com/shop/items/1066/view) and GitHub (https://github.com/GoodKingEnialb/Singlewindow).

This extension limits the number of a specific window type that will be up at any one time. Any window type configured as "Yes" in the options (or those windows not listed in the options) will only be allowed 1 window. You can override this behavior by pressing control while clicking. Any window type configured as "No" in the options will behave as before.

56260

56261

56262

ADVANCED:
If you want to edit the default windows that will be allowed multiple versions and aren't in the options, edit this line (several window types are in comments below it for ease of use):


aIgnoredWindowClasses = {"masterindex", "charselect_host", "charselect_client"} -- we always ignore these

masterindex is typically the first window that pops up that allows bringing up other windows (regardless of type), though the character selection window has its own type.

Ludd_G
February 19th, 2023, 19:17
Thank you! Seems to be working great!