Register

Window Tabs

An Add-on Module for Foundry Virtual Tabletop

Author: mouse0270 Project Source: Project URL Versions 10+ (Verified 11) Last Updated 1 year, 4 months ago

 

 

Logo

Window Tabs

Your Windows Grouped and Organized

Table of Contents

  1. About the Module
  2. Supported Modules / Systems
  3. Get Rekt
  4. API
  5. License
  6. Acknowledgments

About The Module

image

Window Tabs Keeps your windows in Foundry VTT grouped and organized. Easily Grouping open windows with a tab experience.

Key Features

(back to top)

Supported Modules / Systems

Should work with most modules and systems. However, systems or modules with heavy theming may cause graphical issues. If so just let me know and I will try to fix it.

Get Rekt

(back to top)

API

Window Tabs comes with an API to use to help you integrate with it.

Registering a Custom Grouping Function

You can use game.modules.get('window-tabs').api.register(MODULE_ID, FUNCTION) to register a custom function that will be called to determine a windows grouping. For example:

game.modules.get('window-tabs').api.register('kasper', (sheetApp) => {
    // If Sheet ID is kasper-manager, group kasper wiht config
    return (sheetApp?.id == 'kasper-manager' ? 'config' : null);
});

This will check to see if the id of the window being opened is kasper-manager. If it is, it will group it with the config tab. If not, it will not use any custom grouping.

It is recommened that you use your Modules ID as the first parameter, this will help avoiding conflicts with other modules. If you need to register multiple functions, its recommend you use Module ID + Function Name, for example kasper.myFunction.

Unregistering a Custom Grouping Function

You can use game.modules.get('window-tabs').api.unregister(MODULE_ID) to unregister a custom function. For example:

game.modules.get('window-tabs').api.unregister('kasper');

This will unregister the custom grouping function registered above.

(back to top)

License

The image used for the logo can be found here Tabs icons created by Smashicons - Flaticon

Distributed under the MIT License. See LICENSE for more information.

(back to top)

 

 

Available Versions

  1. Version 1.1.2

    1 year, 4 months ago
    Foundry Version 10+ (Verified 11) Manifest URL Read Notes
  2. Version 1.1.0

    Foundry Version 10+ (Verified 11) Manifest URL Read Notes
  3. Version 1.0.2

    Foundry Version 10+ (Verified 11) Manifest URL Read Notes
  4. Version 1.0.1

    Foundry Version 10+ (Verified 11) Manifest URL Read Notes
  5. Version 1.0.0

    Foundry Version 10+ (Verified 11) Manifest URL Read Notes