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
+4 -3
View File
@@ -599,11 +599,12 @@ div.motivation-editor-container div.editor{
}
.editor-host .tox .tox-editor-container {
background: url("../assets/img/old_paper.jpg") !important;
background: none !important;
}
.deltagreen .tox .tox-editor-container {
background: #fff;
.deltagreen .tox-editor-header {
background: none !important;
}
.deltagreen .tox .tox-edit-area {
+37
View File
@@ -0,0 +1,37 @@
@font-face {
font-family: 'SpecialElite';
src: url('../assets/font/special_elite/SpecialElite-Regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */
}
.special-elite-font{
font-family: "SpecialElite", sans-serif !important;
}
.editor-content {
font-family: "SpecialElite", sans-serif !important;
}
.tox .tox-editor-container {
font-family: "SpecialElite", sans-serif !important;
}
.tox .tox-edit-area {
font-family: "SpecialElite", sans-serif !important;
}
.editor-host .editor {
font-family: "SpecialElite", sans-serif !important;
}
.editor-host .tox {
font-family: "SpecialElite", sans-serif !important;
}
.editor-host .tox-tinymce {
font-family: "SpecialElite", sans-serif !important;
}
.editor-host .tox .tox-edit-area {
font-family: "SpecialElite", sans-serif !important;
}
+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'
*/