add setting to hide impossible landscapes content
This commit is contained in:
@@ -263,6 +263,18 @@ Handlebars.registerHelper('playerHasGamemasterPrivileges', function(){
|
||||
return game.user.isGM;
|
||||
});
|
||||
|
||||
Handlebars.registerHelper('showImpossibleLandscapesContent', function() {
|
||||
|
||||
let result = false;
|
||||
let setting = game.settings.get("deltagreen", "showImpossibleLandscapesContent");
|
||||
|
||||
if(game.user.isGM === true && setting === true){
|
||||
result = true;
|
||||
}
|
||||
|
||||
return result
|
||||
});
|
||||
|
||||
Hooks.once("ready", async function() {
|
||||
// Wait to register hotbar drop hook on ready so that modules could register earlier if they want to
|
||||
Hooks.on("hotbarDrop", (bar, data, slot) => createDeltaGreenMacro(data, slot));
|
||||
|
||||
+8
-1
@@ -62,6 +62,13 @@ export const registerSystemSettings = function() {
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
game.settings.register('deltagreen', 'showImpossibleLandscapesContent', {
|
||||
name: "Show Impossible Landscapes Content",
|
||||
hint: "Show Impossible Landscapes-specific fields from character sheets.",
|
||||
scope: "world",
|
||||
config: true,
|
||||
type: Boolean,
|
||||
default: true
|
||||
});
|
||||
|
||||
}
|
||||
@@ -21,7 +21,7 @@
|
||||
<input class="fill-remaining-space" type="text" name="system.biography.education" value="{{actor.system.biography.education}}" data-dtype="String" placeholder="{{localize 'DG.CV.EducationPlaceholder'}}" />
|
||||
</div>
|
||||
|
||||
{{#if (playerHasGamemasterPrivileges)}}
|
||||
{{#if (showImpossibleLandscapesContent)}}
|
||||
|
||||
<div class="yellow-king yellow-king-grid-9col">
|
||||
<span class="yellow-king yellow-king-rotate2">{{localize 'DG.ImpossibleLanscapes.IHaveSeenThe'}}</span>
|
||||
|
||||
Reference in New Issue
Block a user