diff --git a/assets/font/public-sans/OFL.txt b/assets/font/public-sans/OFL.txt new file mode 100644 index 0000000..8ec2295 --- /dev/null +++ b/assets/font/public-sans/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2015 The Public Sans Project Authors (https://github.com/uswds/public-sans) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/assets/font/public-sans/PublicSans-Italic-VariableFont_wght.ttf b/assets/font/public-sans/PublicSans-Italic-VariableFont_wght.ttf new file mode 100644 index 0000000..3727ffe Binary files /dev/null and b/assets/font/public-sans/PublicSans-Italic-VariableFont_wght.ttf differ diff --git a/assets/font/public-sans/PublicSans-VariableFont_wght.ttf b/assets/font/public-sans/PublicSans-VariableFont_wght.ttf new file mode 100644 index 0000000..cc76414 Binary files /dev/null and b/assets/font/public-sans/PublicSans-VariableFont_wght.ttf differ diff --git a/assets/font/public-sans/README.txt b/assets/font/public-sans/README.txt new file mode 100644 index 0000000..c02e0c1 --- /dev/null +++ b/assets/font/public-sans/README.txt @@ -0,0 +1,81 @@ +Public Sans Variable Font +========================= + +This download contains Public Sans as both variable fonts and static fonts. + +Public Sans is a variable font with this axis: + wght + +This means all the styles are contained in these files: + PublicSans-VariableFont_wght.ttf + PublicSans-Italic-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Public Sans: + static/PublicSans-Thin.ttf + static/PublicSans-ExtraLight.ttf + static/PublicSans-Light.ttf + static/PublicSans-Regular.ttf + static/PublicSans-Medium.ttf + static/PublicSans-SemiBold.ttf + static/PublicSans-Bold.ttf + static/PublicSans-ExtraBold.ttf + static/PublicSans-Black.ttf + static/PublicSans-ThinItalic.ttf + static/PublicSans-ExtraLightItalic.ttf + static/PublicSans-LightItalic.ttf + static/PublicSans-Italic.ttf + static/PublicSans-MediumItalic.ttf + static/PublicSans-SemiBoldItalic.ttf + static/PublicSans-BoldItalic.ttf + static/PublicSans-ExtraBoldItalic.ttf + static/PublicSans-BlackItalic.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/assets/font/public-sans/static/PublicSans-Black.ttf b/assets/font/public-sans/static/PublicSans-Black.ttf new file mode 100644 index 0000000..8c9e8ec Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Black.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-BlackItalic.ttf b/assets/font/public-sans/static/PublicSans-BlackItalic.ttf new file mode 100644 index 0000000..98cde4b Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-BlackItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Bold.ttf b/assets/font/public-sans/static/PublicSans-Bold.ttf new file mode 100644 index 0000000..7a14109 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Bold.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-BoldItalic.ttf b/assets/font/public-sans/static/PublicSans-BoldItalic.ttf new file mode 100644 index 0000000..505553b Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-BoldItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-ExtraBold.ttf b/assets/font/public-sans/static/PublicSans-ExtraBold.ttf new file mode 100644 index 0000000..148fee4 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-ExtraBold.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-ExtraBoldItalic.ttf b/assets/font/public-sans/static/PublicSans-ExtraBoldItalic.ttf new file mode 100644 index 0000000..433e2b8 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-ExtraBoldItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-ExtraLight.ttf b/assets/font/public-sans/static/PublicSans-ExtraLight.ttf new file mode 100644 index 0000000..ccad63c Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-ExtraLight.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-ExtraLightItalic.ttf b/assets/font/public-sans/static/PublicSans-ExtraLightItalic.ttf new file mode 100644 index 0000000..8c573f5 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-ExtraLightItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Italic.ttf b/assets/font/public-sans/static/PublicSans-Italic.ttf new file mode 100644 index 0000000..7315d65 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Italic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Light.ttf b/assets/font/public-sans/static/PublicSans-Light.ttf new file mode 100644 index 0000000..286bb3a Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Light.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-LightItalic.ttf b/assets/font/public-sans/static/PublicSans-LightItalic.ttf new file mode 100644 index 0000000..d2c621a Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-LightItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Medium.ttf b/assets/font/public-sans/static/PublicSans-Medium.ttf new file mode 100644 index 0000000..1421f42 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Medium.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-MediumItalic.ttf b/assets/font/public-sans/static/PublicSans-MediumItalic.ttf new file mode 100644 index 0000000..1144923 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-MediumItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Regular.ttf b/assets/font/public-sans/static/PublicSans-Regular.ttf new file mode 100644 index 0000000..7f55dba Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Regular.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-SemiBold.ttf b/assets/font/public-sans/static/PublicSans-SemiBold.ttf new file mode 100644 index 0000000..c7a1944 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-SemiBold.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-SemiBoldItalic.ttf b/assets/font/public-sans/static/PublicSans-SemiBoldItalic.ttf new file mode 100644 index 0000000..49780a6 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-SemiBoldItalic.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-Thin.ttf b/assets/font/public-sans/static/PublicSans-Thin.ttf new file mode 100644 index 0000000..3d45ec8 Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-Thin.ttf differ diff --git a/assets/font/public-sans/static/PublicSans-ThinItalic.ttf b/assets/font/public-sans/static/PublicSans-ThinItalic.ttf new file mode 100644 index 0000000..293ad1d Binary files /dev/null and b/assets/font/public-sans/static/PublicSans-ThinItalic.ttf differ diff --git a/assets/img/CrumpledPlainPaper10.webp b/assets/img/CrumpledPlainPaper10.webp new file mode 100644 index 0000000..21028a7 Binary files /dev/null and b/assets/img/CrumpledPlainPaper10.webp differ diff --git a/assets/img/ivory-off-white-paper-texture.webp b/assets/img/ivory-off-white-paper-texture.webp new file mode 100644 index 0000000..5dc79bd Binary files /dev/null and b/assets/img/ivory-off-white-paper-texture.webp differ diff --git a/assets/img/old_paper.webp b/assets/img/old_paper.webp new file mode 100644 index 0000000..9438ede Binary files /dev/null and b/assets/img/old_paper.webp differ diff --git a/css/deltagreen.css b/css/deltagreen.css index ef7b53b..31e1f08 100644 --- a/css/deltagreen.css +++ b/css/deltagreen.css @@ -28,23 +28,36 @@ src: url('../assets/font/special_elite/SpecialElite-Regular.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */ } +@font-face { + font-family: 'PublicSans'; + src: url('../assets/font/public-sans/PublicSans-VariableFont_wght.ttf') format('truetype'); /* Chrome 4+, Firefox 3.5, Opera 10+, Safari 3—5 */ +} + /* Global styles */ -/* -.window-app { - font-family: "TypeWriterCondensed", "atwriter", "Martel", 'Signika', sans-serif !important; - height: auto; -} -*/ -/* -section.window-content{ - background: url("../assets/img/old_paper.jpg") !important; +/* Hacky overrides of outer Foundry stuff */ +form.program-style{ + background: url("../assets/img/CrumpledPlainPaper10.webp") !important; } -*/ + +form.cowboy-style{ + background: url("../assets/img/old_paper.webp") !important; +} + +/* Override default foundry CSS to remove padding, so that our background image can take up the whole window */ +.deltagreen section.window-content{ + padding: 0 !important; +} + +/* Override the default Foundry CSS to add the padding we removed from the outer window back in */ +.deltagreen section.window-content form.editable{ + padding: 6px !important; +} + .old-paper-background{ - background: url("../assets/img/old_paper.jpg") !important; + background: url("../assets/img/old_paper.webp") !important; } .default-parchment-background{ background: url("/ui/parchment.jpg") repeat !important; @@ -70,6 +83,27 @@ section.window-content{ font-family: "SpecialElite", sans-serif !important; } +.public-sans-font{ + font-family: "PublicSans", sans-serif !important; +} + + +.cowboy-style{ + font-family: "SpecialElite", sans-serif !important; +} + +.program-style{ + font-family: "PublicSans", sans-serif !important; +} + +.program-style .tabs .item { + background: rgba(138, 136, 133, 0.3); +} + +.cowboy-style .tabs .item { + background: rgba(173, 151, 101, 0.3); +} + .rollable:hover, .rollable:focus { color: #000; text-shadow: 0 0 10px red; @@ -290,7 +324,7 @@ section.window-content{ border: gray; border-width: 1px 1px 0px 1px; border-style: solid; - background: rgba(173, 151, 101, 0.3); + /*background: rgba(173, 151, 101, 0.3);*/ } .deltagreen .tabs .item.active { @@ -454,7 +488,7 @@ div span.bio-grid-label{ } .bio-grid-top-border{ - border-top: 1px solid #AAA; + border-top: 0px solid #AAA; padding-top: 10px; } @@ -479,7 +513,7 @@ div span.bio-grid-label{ .breaking-point-grid-3col{ display: grid; grid-template-columns: 100px 70px 65px; - border-top: 1px solid #AAA; + border-top: 0px solid #AAA; margin-bottom: 10px; border-bottom: 1px solid #AAA; align-content: center; @@ -498,7 +532,7 @@ div span.bio-grid-label{ justify-content: left; align-items: center; padding-bottom: 5px; - border-bottom: 1px solid #AAA; + border-bottom: 0px solid #AAA; } .adapted-label{ @@ -550,7 +584,7 @@ div .first-aid-received-section{ } .bonds-section-header{ - border-top: 1px solid #AAA; + /* border-top: 1px solid #AAA; */ width: 100%; display: flex; justify-content: center; @@ -620,6 +654,20 @@ div.gear-section-header{ height: 30px; } +div.horizontal-bar-section-divider{ + display: grid; + grid-template-columns: 100%; + justify-content: center; + align-items: center; + text-align: center; + + margin-bottom: 3px; + + background: #000; + color: #fff; + height: 30px; +} + .physical-description-label{ font-weight: bold; } diff --git a/lang/en.json b/lang/en.json index f0a32bf..c965e46 100644 --- a/lang/en.json +++ b/lang/en.json @@ -112,8 +112,8 @@ "DG.Mental.Helplessness": "Helplessness", "DG.Mental.AdaptedToViolence": "Adapted to Violence", "DG.Mental.AdaptedToHelplessness": "Adapted to Helplessness", - "DG.Mental.Motivations": "Motivations", - "DG.Mental.Disorders": "Disorders", + "DG.Mental.Motivations": "Motivation", + "DG.Mental.Disorders": "Disorder", "DG.Gear.Weapons": "WEAPONS", "DG.Gear.Armor": "ARMOR", @@ -134,7 +134,7 @@ "DG.CV.NationalityPlaceholder": "Nationality", "DG.CV.Education": "Education", "DG.CV.EducationPlaceholder": "Education or Training", - "DG.CV.PhysicalDescriptionLabel": "Physical Description/Notes", + "DG.CV.PhysicalDescriptionLabel": "PHYSICAL DESCRIPTION/NOTES", "DG.Bonds.Bond": "Bond", "DG.Bonds.Name": "Name", diff --git a/module/deltagreen.js b/module/deltagreen.js index 726f509..df50a63 100644 --- a/module/deltagreen.js +++ b/module/deltagreen.js @@ -217,7 +217,10 @@ Hooks.once('init', async function() { // generates the character sheet. Handlebars.registerHelper('getFontFamilySystemSettingClass', function() { let setting = game.settings.get("deltagreen", "characterSheetFont"); + + let characterSheetStyle = game.settings.get("deltagreen", "characterSheetStyle"); + /* if(setting === "TypeWriterCondensed"){ return "typewriter-condensed-font"; } @@ -233,9 +236,33 @@ Hooks.once('init', async function() { else if(setting === "SpecialElite"){ return "special-elite-font"; } + else if(setting === "PublicSans"){ + return "public-sans-font"; + } else{ return "martel-font"; } + */ + + if(characterSheetStyle === "cowboy"){ + return "special-elite-font"; + } + else{ + return "public-sans-font"; + } + + }); + + Handlebars.registerHelper('getCharacterSheetStyle', function() { + + let characterSheetStyle = game.settings.get("deltagreen", "characterSheetStyle"); + + if(characterSheetStyle === "cowboy"){ + return "cowboy-style"; + } + else{ + return "program-style"; + } }); @@ -282,13 +309,15 @@ Hooks.once("ready", async function() { Hooks.on("ready", ()=> { - let backgroundImageSetting = game.settings.get("deltagreen", "characterSheetBackgroundImageSetting"); + //let backgroundImageSetting = game.settings.get("deltagreen", "characterSheetBackgroundImageSetting"); + let characterSheetStyle = game.settings.get("deltagreen", "characterSheetStyle"); let customCss = ""; let customStyle = document.createElement("style"); customStyle.id = "dg-custom-css"; + /* if(backgroundImageSetting === "OldPaper1"){ customCss += `div.deltagreen.sheet.actor section.window-content{ background: url("systems/deltagreen/assets/img/old_paper.jpg") !important; @@ -299,11 +328,23 @@ Hooks.on("ready", ()=> { background-size: 100% !important; }`; } + */ + + if(characterSheetStyle === "cowboy"){ + customCss += `div.deltagreen.sheet.actor section.window-content{ + background: url("systems/deltagreen/assets/img/old_paper.jpg") !important; + }`; + } + else if(characterSheetStyle === "program"){ + customCss += `div.deltagreen.sheet.actor section.window-content{ + background: url("systems/deltagreen/assets/img/CrumpledPlainPaper10.webp") !important; + }`; + } customStyle.innerHTML = customCss; if(customCss != ""){ - document.querySelector("head").appendChild(customStyle); + //document.querySelector("head").appendChild(customStyle); } }); diff --git a/module/settings.js b/module/settings.js index 7bc36f5..0447e79 100644 --- a/module/settings.js +++ b/module/settings.js @@ -1,74 +1,102 @@ -export const registerSystemSettings = function() { - game.settings.register('deltagreen', 'characterSheetFont', { - name: "World Font Choice", - hint: "Choose font style for use throughout this world.", - scope: "world", // This specifies a world-stored setting - config: true, // This specifies that the setting appears in the configuration view - type: String, - choices: { // If choices are defined, the resulting setting will be a select menu - "SpecialElite": "Special Elite (Classic Typewriters Font)", - "Martel": "Martel (Clean Modern Font)", - "Signika": "Signika (Foundry Default Font)", - "TypeWriterCondensed": "Condensed Typewriter (Modern, Small Typewriter Font)" - //"atwriter": "Another Typewriter (Alternate Old-style Typewriter Font)" - }, - default: "SpecialElite", // The default value for the setting - onChange: value => { // A callback function which triggers when the setting is changed - //console.log(value) - } - }); +export const registerSystemSettings = function () { + game.settings.register("deltagreen", "characterSheetStyle", { + name: "Character Sheet Style", + hint: "Choose how actor sheets should be styled. 'Program' is a more modern government style, where 'Cowboy' is an older, grittier looking typewriter style.", + scope: "world", // This specifies a world-stored setting + config: true, // This specifies that the setting appears in the configuration view + requiresReload: true, + type: String, + choices: { + // If choices are defined, the resulting setting will be a select menu + cowboy: "The Cowboys", + program: "The Program", + }, + default: "program", // The default value for the setting + onChange: (value) => { + // A callback function which triggers when the setting is changed + //console.log(value) + }, + }); - game.settings.register('deltagreen', 'characterSheetBackgroundImageSetting', { - name: "World Sheet Background Image", - hint: "Choose background image for use throughout this world. (Refresh page to see change.)", - scope: "world", // This specifies a world-stored setting - config: true, // This specifies that the setting appears in the configuration view - type: String, - choices: { // If choices are defined, the resulting setting will be a select menu - "OldPaper1": "Old Dirty Paper (Good with Special Elite Font)", - "IvoryPaper": "Ivory White Paper (Good with Martel Font)", - "DefaultParchment": "Default Parchment (Good with Signika Font)" - }, - default: "OldPaper1", // The default value for the setting - onChange: value => { // A callback function which triggers when the setting is changed - //console.log(value) - } - }); + game.settings.register("deltagreen", "keepSanityPrivate", { + name: "Keep Sanity Private", + hint: "Hide sanity from players on both character sheet and rolls.", + scope: "world", + config: true, + type: Boolean, + default: false, + }); - game.settings.register('deltagreen', 'keepSanityPrivate', { - name: "Keep Sanity Private", - hint: "Hide sanity from players on both character sheet and rolls.", - scope: "world", - config: true, - type: Boolean, - default: false - }); + game.settings.register("deltagreen", "skillImprovementFormula", { + name: "Default Skill Improvement Roll", + hint: " Default 1d4. There have been multiple errata on this, choose which fits best for the pace of your game.", + scope: "world", // This specifies a world-stored setting + config: true, // This specifies that the setting appears in the configuration view + type: String, + choices: { + // If choices are defined, the resulting setting will be a select menu + 1: "Flat +1", + "1d3": "+1D3%", + "1d4": "+1D4%", + "1d4-1": "+1D4-1%", + }, + default: "1d4", // The default value for the setting, per the most recent errata. + onChange: (value) => { + // A callback function which triggers when the setting is changed + //console.log(value) + }, + }); - game.settings.register('deltagreen', 'skillImprovementFormula', { - name: "Default Skill Improvement Roll", - hint: " Default 1d4. There have been multiple errata on this, choose which fits best for the pace of your game.", - scope: "world", // This specifies a world-stored setting - config: true, // This specifies that the setting appears in the configuration view - type: String, - choices: { // If choices are defined, the resulting setting will be a select menu - "1": "Flat +1", - "1d3": "+1D3%", - "1d4": "+1D4%", - "1d4-1": "+1D4-1%" - }, - default: "1d4", // The default value for the setting, per the most recent errata. - onChange: value => { // A callback function which triggers when the setting is changed - //console.log(value) - } - }); - 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 - }); + // These two settings are obsolete now + 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, + }); -} \ No newline at end of file + game.settings.register("deltagreen", "characterSheetFont", { + name: "World Font Choice", + hint: "Choose font style for use throughout this world.", + scope: "world", // This specifies a world-stored setting + config: false, // This specifies that the setting appears in the configuration view + type: String, + choices: { + // If choices are defined, the resulting setting will be a select menu + SpecialElite: "Special Elite (Classic Typewriters Font)", + Martel: "Martel (Clean Modern Font)", + Signika: "Signika (Foundry Default Font)", + TypeWriterCondensed: + "Condensed Typewriter (Modern, Small Typewriter Font)", + PublicSans: "Public Sans (US Government-style sans serif font)", + //"atwriter": "Another Typewriter (Alternate Old-style Typewriter Font)" + }, + default: "SpecialElite", // The default value for the setting + onChange: (value) => { + // A callback function which triggers when the setting is changed + //console.log(value) + }, + }); + + game.settings.register("deltagreen", "characterSheetBackgroundImageSetting", { + name: "World Sheet Background Image", + hint: "Choose background image for use throughout this world. (Refresh page to see change.)", + scope: "world", // This specifies a world-stored setting + config: false, // This specifies that the setting appears in the configuration view + type: String, + choices: { + // If choices are defined, the resulting setting will be a select menu + OldPaper1: "Old Dirty Paper (Good with Special Elite Font)", + IvoryPaper: "Ivory White Paper (Good with Martel Font)", + DefaultParchment: "Default Parchment (Good with Signika Font)", + }, + default: "OldPaper1", // The default value for the setting + onChange: (value) => { + // A callback function which triggers when the setting is changed + //console.log(value) + }, + }); +}; diff --git a/templates/actor/actor-sheet.html b/templates/actor/actor-sheet.html index b978309..4a178ce 100644 --- a/templates/actor/actor-sheet.html +++ b/templates/actor/actor-sheet.html @@ -1,4 +1,4 @@ -
+ {{!-- Sheet Header --}}
@@ -92,6 +92,10 @@ {{!-- Skills Tab --}}
+
+ SKILLS AND TRAINING +
+
{{#each actor.system.skills as |skill key|}} @@ -161,6 +165,10 @@ {{!-- Physical Statistics like STR, CON, etc. --}}
+
+ ATTRIBUTES +
+
{{#each actor.system.statistics as |statistic key|}}
@@ -177,6 +185,11 @@
{{/each}}
+
+
+ INJURIES +
+
- {{!-- Mental Tab (formerly 'Motivations') --}} + {{!-- Psychological Tab (formerly 'Mental', formerly 'Motivations') --}}
+
+ BREAKING POINT AND ADAPTATIONS +
{{localize 'DG.Mental.Reset'}}
- +

{{localize 'DG.Mental.SanityLossIncidentsLabel'}}

@@ -236,6 +252,10 @@
+
+ MOTIVATIONS AND DISORDERS +
+
    @@ -416,8 +436,8 @@
    1. -
      {{localize 'DG.Gear.Name'}}
      -
      +
      {{localize 'DG.Gear.Name'}}
      + {{localize 'DG.Gear.Equipped'}}
    2. {{#each actor.items as |item id|}} + {{#if_eq item.type 'gear'}}
    3. -

      {{item.name}}

      - - +

      {{item.name}}

      @@ -456,16 +475,20 @@
- {{!-- Biography Tab --}} + {{!-- PERSONAL (Biography) Tab --}}
+
+ PERSIONAL INFORMATION/CV +
{{> "systems/deltagreen/templates/actor/cv-partial.html" }}
{{!-- Bonds Tab --}}
-
- +
+ BONDS/RELATIONSHIPS/CONTACTS
+
  1. diff --git a/templates/actor/cv-partial.html b/templates/actor/cv-partial.html index f307198..5d4328f 100644 --- a/templates/actor/cv-partial.html +++ b/templates/actor/cv-partial.html @@ -45,8 +45,11 @@ {{/if}} -
    - {{localize 'DG.CV.PhysicalDescriptionLabel'}} + + +{{!--
    --}} +
    + {{localize 'DG.CV.PhysicalDescriptionLabel'}}
    diff --git a/templates/actor/limited-sheet.html b/templates/actor/limited-sheet.html index 9400c44..864c759 100644 --- a/templates/actor/limited-sheet.html +++ b/templates/actor/limited-sheet.html @@ -1,4 +1,4 @@ - + {{!-- Sheet Header --}}
    diff --git a/templates/actor/npc-sheet.html b/templates/actor/npc-sheet.html index 7fbd890..fb824b4 100644 --- a/templates/actor/npc-sheet.html +++ b/templates/actor/npc-sheet.html @@ -1,4 +1,4 @@ - + {{!-- Sheet Header --}}
    diff --git a/templates/actor/unnatural-sheet.html b/templates/actor/unnatural-sheet.html index 4835ef7..e0514f8 100644 --- a/templates/actor/unnatural-sheet.html +++ b/templates/actor/unnatural-sheet.html @@ -1,4 +1,4 @@ - + {{!-- Sheet Header --}}
    diff --git a/templates/actor/vehicle-sheet.html b/templates/actor/vehicle-sheet.html index 2088c8d..cfd1e60 100644 --- a/templates/actor/vehicle-sheet.html +++ b/templates/actor/vehicle-sheet.html @@ -1,4 +1,4 @@ - + {{!-- Sheet Header --}}
    diff --git a/templates/item/item-armor-sheet.html b/templates/item/item-armor-sheet.html index 462dd90..3b292b5 100644 --- a/templates/item/item-armor-sheet.html +++ b/templates/item/item-armor-sheet.html @@ -1,4 +1,4 @@ - +
    diff --git a/templates/item/item-bond-sheet.html b/templates/item/item-bond-sheet.html index 2d842bf..f9f6ce3 100644 --- a/templates/item/item-bond-sheet.html +++ b/templates/item/item-bond-sheet.html @@ -1,4 +1,4 @@ - +
    diff --git a/templates/item/item-gear-sheet.html b/templates/item/item-gear-sheet.html index aa3a0dc..e7253ab 100644 --- a/templates/item/item-gear-sheet.html +++ b/templates/item/item-gear-sheet.html @@ -1,4 +1,4 @@ - +
    diff --git a/templates/item/item-motivation-sheet.html b/templates/item/item-motivation-sheet.html index 7fd3838..abd9a67 100644 --- a/templates/item/item-motivation-sheet.html +++ b/templates/item/item-motivation-sheet.html @@ -1,4 +1,4 @@ - + {{!-- Sheet Tab Navigation --}}