Register

Hidden Entity Links

An Add-on Module for Foundry Virtual Tabletop

Author: 4535992 Project Source: Project URL Versions 12 - 12 (Verified 12) Last Updated 4 months ago

Hidden Entity Links

If you want to buy me a coffee alt-text

A module for FoundryVTT for hide things...

hidden_links6

Instructions

In the module settings you will find options to hide each entity type (apart from Macros) from your players if they have limited access.

The concept is hide everything on the sidebar, but still have permissions , a classic use is a merchant in a specific scene cna be used only on that scene not on the sidebar.

The graphic interaction with new choices on the sidebar context let you decide the entity/document you want to make secret with a simple right click on the specific element or the folder of the sidebar, so you can hide , unhide multiple elements with one click.

There is a integration based on the permission applied on the entities.

Installation

It's always easiest to install modules from the in game add-on browser.

To install this module manually:

  1. Inside the Foundry "Configuration and Setup" screen, click "Add-on Modules"
  2. Click "Install Module"
  3. In the "Manifest URL" field, paste the following url: https://raw.githubusercontent.com/p4535992/vtt-hidden-entity-links/master/module.json
  4. Click 'Install' and wait for installation to complete
  5. Don't forget to enable the module in game using the "Manage Module" button

libWrapper

This module uses the libWrapper library for wrapping core methods. It is a hard dependency and it is recommended for the best experience and compatibility with other modules.

Features

img1img2img3img4img5img6img7img8

Hide entity with right cick context integration

You can force to hide some specifc entity.

NOTE: this bypass the check used with the feature "Permission manager integration".

hide

Show entity with right click context integration

From version 1.0.7 you can force to show some entity.

NOTE: this bypass the check used with the feature "Permission manager integration".

show

Unhide/Unshow entity with right click context integration

From version 1.0.7 you can remove the flag of hidden with a voice on the right context.

By module settings we can apply the css style to all the entites are not hide or show

nohideshow

Permission manager integration

From version 1.0.7 you can hide by default the entities based on the permissions level of the player, it very hard to maintain trace of this so for this feature it is highly recommended to install and use this module together with the module Permission Viewer

On the module setting you can see a dropdown menu where to choose the permission level to set for the specific type.

perm1

Remember the permission on foundry are from lowest to highest NONE,LIMITED,OBSERVER,OWNER. and remember each level of permissions in foundry inherits the permissions of the previous lower levels, therefore the permissions of OWNER also associate the permissions of OBSERVER,LIMITED,NONE to the player, the permissions of LIMITED also associate the permissions of NONE etc.

ATTENTION: Permissions help in certain contexts, but you can still force the hide feature from the context menu for example set the value to LIMITED and all the entity with permission LIMITED for that player are "hide" by default, but maybe you want to "hide" some entity with observer permission you can still do that with the standard right click on the entity. The hide feature has priority over the "permissions control manager".

Below is an example where as GM we set the values -, NONE, LIMITED, OBSERVER, OWNER, ONLY LIMITED, ONLY OBSERVER respectively in the dropdown. Showing the view by the player that he has these exact privileges in the other distinct entities.

NOTE: the following screenshots of the example start from the fact that there are no entities set explicitly with 'hide' and 'show', the explicit configurations of 'hide' and 'show' have priority over the permissions configurations.

What GM always see:

permgmsee

Here what player see with the default value "-":

permempty

Here what player see with the value "NONE":

permnone

Here what player see with the value "LIMITED":

permlimited

Here what player see with the value "OBSERVER":

permobserver

Here what player see with the value "OWNER":

permowner

Here what player see with the value "ONLY LIMITED":

permonlylimited

Here what player see with the value "ONLY OBSERVER":

permonlyobserver

Other features

API

Update css on the folder (not ready need more developing...)

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.updateFolderHiddenEntityLinks = async function (entityData, html, data)

Update css on the specific entity

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.updateHiddenEntityLinks = async function (entityData, html, data)

Rendering css on the specific sidebar tab

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.directoryRenderedHiddenEntityLinks = async function (sidebarTabDirectory, html, data, entities)

Hide all the reference link on the javascript editor of foundry based on the specific permissions

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.hideRenderedHiddenEntityLinks = function (sheet, html, data)

Hide the specific entity

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.hideEntityLink = async function (entityID, entities)

UnHide/Unshow the specific entity

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.unhideEntityLink = async function (entityID, entities)

Show the specific entity

game.modules.get('hidden-entity-links').api.hiddenEntityLinks.showEntityLink = async function (entityID, entities)

Settings

Categories

Available Versions

  1. Version 12.0.0

    4 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  2. Version 1.3.0

    5 months ago
    Foundry Version 12 - 12 (Verified 12) Manifest URL Read Notes
  3. Version 1.2.5

    6 months, 1 week ago
    Foundry Version 11 - 12 (Verified 11) Manifest URL Read Notes
  4. Version 1.2.4

    1 year, 2 months ago
    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  5. Version 1.2.3

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  6. Version 1.2.2

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  7. Version 1.2.1

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  8. Version 1.2.0

    Foundry Version 11 - 11 (Verified 11) Manifest URL Read Notes
  9. Version 1.1.7

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  10. Version 1.1.4

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  11. Version 1.1.0

    Foundry Version 10 - 10 (Verified 10) Manifest URL Read Notes
  12. Version 1.0.20

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  13. Version 1.0.16

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  14. Version 1.0.15

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  15. Version 1.0.14

    Foundry Version 9 - 10 (Verified 9) Manifest URL Read Notes
  16. Version 1.0.12

    Foundry Version 0.8.9 - 10 (Verified 9) Manifest URL Read Notes
  17. Version 1.0.9

    Foundry Version 0.8.9 - 10 (Verified 9) Manifest URL Read Notes
  18. Version 1.0.7

    Foundry Version 0.8.9 - 10 (Verified 0.8.9) Manifest URL Read Notes
  19. Version 1.0.2

    Foundry Version 0.8.9 - 10 (Verified 0.8.9) Manifest URL Read Notes
  20. Version 1.0.1

    Foundry Version 0.8.9 - 10 (Verified 0.8.9) Manifest URL Read Notes
  21. Version 1.0.0

    Foundry Version 0.8.9 - 10 (Verified 0.8.9) Manifest URL Read Notes