Latest version | 12.0.0 |
---|---|
Minimum Core | 12 |
Compatible Core | 12 |
Last updated | 4 months ago |
Created | 3 years ago |
Authors | |
Languages |
English |
Systems | All systems |
Dependencies |
libWrapper |
Project source | Project URL |
Report bugs | Bug tracker URL |
Read-me | Readme URL |
Changelog | Changelog URL |
A module for FoundryVTT for hide things...
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.
It's always easiest to install modules from the in game add-on browser.
To install this module manually:
https://raw.githubusercontent.com/p4535992/vtt-hidden-entity-links/master/module.json
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.
You can force to hide some specifc entity.
NOTE: this bypass the check used with the feature "Permission manager 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".
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
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.
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:
Here what player see with the default value "-":
Here what player see with the value "NONE":
Here what player see with the value "LIMITED":
Here what player see with the value "OBSERVER":
Here what player see with the value "OWNER":
Here what player see with the value "ONLY LIMITED":
Here what player see with the value "ONLY OBSERVER":
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)
To install this package, open your Foundry Setup screen and navigate to your Module tab and click the Install Module button.
From there, you can either search for the package unique name: hidden-entity-links or copy its manifest URL:
And paste it to the input box at the bottom of your window.
You can install this package directly to your Forge account.
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Advertisement cookies are used to deliver visitors with customized advertisements based on the pages they visited before and analyze the effectiveness of the ad campaign.