final base 0.8.x changes

This commit is contained in:
TheLastScrub
2021-06-01 20:44:39 -07:00
parent 47f4a47a95
commit 584eb59e56
5 changed files with 59 additions and 19 deletions
+6
View File
@@ -439,4 +439,10 @@ export class DeltaGreenActorSheet extends ActorSheet {
// Set data transfer
event.dataTransfer.setData("text/plain", JSON.stringify(dragData));
}
activateEditor(target, editorOptions, initialContent) {
editorOptions.content_css = "./systems/deltagreen/css/editor.css";
return super.activateEditor(target, editorOptions, initialContent);
};
}
-15
View File
@@ -161,28 +161,13 @@ Hooks.on("ready", ()=> {
if(backgroundImageSetting === "OldPaper1"){
customCss += `section.window-content{
background: url("systems/deltagreen/assets/img/old_paper.jpg") !important;
}
.editor-host .tox .tox-editor-container {
background: url("../assets/img/old_paper.jpg") !important;
font-family: "SpecialElite", sans-serif !important;
}`;
}
else if(backgroundImageSetting === "IvoryPaper"){
customCss += `section.window-content{
background: url("systems/deltagreen/assets/img/ivory-off-white-paper-texture.jpg") !important;
background-size: 100% !important;
}
.editor-host .tox .tox-editor-container {
background: url("systems/deltagreen/assets/img/ivory-off-white-paper-texture.jpg") !important;
background-size: 100% !important;
}`;
}
else{
customCss += `.editor-host .tox .tox-editor-container {
background: url("/ui/parchment.jpg") !important;
background-size: 100% !important;
}`;
}
customStyle.innerHTML = customCss;
+12 -1
View File
@@ -358,4 +358,15 @@ export function skillIsStatTest(skillName){
catch(ex){
return false;
}
}
}
/* rollMode Options -> CONFIG.Dice.rollModes
game.i18n.localize("CHAT.RollBlind") -> "Blind GM Roll"
{{selectOptions rollModes selected=defaultRollMode localize=true}}
roll -> 'Public Roll'
gmroll -> 'Private GM Roll'
blindroll -> 'Blind GM Roll'
selfroll -> 'Self Roll'
*/