Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could you please add ability to remove this toggle for players? #51

Open
TrofimSelbs opened this issue Dec 7, 2023 · 1 comment
Open

Comments

@TrofimSelbs
Copy link

Hey, thank you for this amazing module! I love putting difficult terrain in my game, but I am afraid that my players could easily disable it and I would have no idea. Could you please add a toggle in settings that would allow DMs to disable it? Thank you

image

@manuelVo
Copy link
Owner

manuelVo commented Dec 7, 2023

Hi. With "Enhanced Terrain Layer" being discontinued, this module can't be used in v11 and future versions of foundry. For this reason, I stopped development on it. However you can easily adjust this yourself. Just change the following line:

visible: true,

to either visible: false, to hide the toggle for everyone or visible: game.user.isGM, to hide the toggle for everyone but GMs.

Also, change this line:

active: getDefaultToggleState(),

to active: true to prevent players from changing the toggle to "off" through the settings menu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants