From 3e5eda89ecb08c31141a3c7292ffd30bcc24eba5 Mon Sep 17 00:00:00 2001 From: Bodo Huesemann Date: Sat, 20 Aug 2022 13:00:37 +0200 Subject: [PATCH 1/3] added additional alt tags to msg rolltemplate --- The One Ring 2e/release-notes.md | 3 +++ The One Ring 2e/sheet.css | 19 ++++++++++++++++--- The One Ring 2e/sheet.html | 28 ++++++++++++++++++++++++++++ The One Ring 2e/sheet.json | 2 +- 4 files changed, 48 insertions(+), 4 deletions(-) diff --git a/The One Ring 2e/release-notes.md b/The One Ring 2e/release-notes.md index 2602eaf143..a576e98f33 100644 --- a/The One Ring 2e/release-notes.md +++ b/The One Ring 2e/release-notes.md @@ -4,6 +4,9 @@ This is a rewrite based on the early 2e (basic) and 1e edition that also include # Release History +## 03.01.00 (Build 21) +- added header-alt, sub1-alt, sub2-alt to custom roll template msg + ## 03.00.00 (Build 20) - added adversary json importer diff --git a/The One Ring 2e/sheet.css b/The One Ring 2e/sheet.css index 0b81d956d2..a6402db111 100644 --- a/The One Ring 2e/sheet.css +++ b/The One Ring 2e/sheet.css @@ -1089,7 +1089,6 @@ } .sheet-rolltemplate-msg .sheet-contentmin { - border-top: 1px solid #000; padding-top: 10px; height: min-content; } @@ -1110,7 +1109,10 @@ /* change text-align to center to center the header text */ text-align: left; color: black; - padding: 5px; +} + +.sheet-rolltemplate-msg .sheet-header-sep { + border-bottom: 1px solid #000; } .sheet-rolltemplate-tor .sheet-footer, @@ -1120,7 +1122,8 @@ } .sheet-rolltemplate-tor .sheet-title, -.sheet-rolltemplate-msg .sheet-title { +.sheet-rolltemplate-msg .sheet-title, +.sheet-rolltemplate-msg .sheet-title-alt { font-family: 'Uncial Antiqua', "Palatino Linotype", "Book Antiqua", Palatino, serif, sans-serif; font-weight: lighter; line-height: 1; @@ -1129,11 +1132,21 @@ line-height: 25px; } +.sheet-rolltemplate-msg .sheet-header .sheet-title-alt span { + border: 0px !important; + background-color: transparent !important; +} + .sheet-rolltemplate-tor .sheet-subtitle, .sheet-rolltemplate-msg .sheet-subtitle { font-size: 13px; } +.sheet-rolltemplate-msg .sheet-header .sheet-subtitle-alt span { + border: 0px !important; + background-color: transparent !important; +} + .sheet-rolltemplate-tor .sheet-text-center, .sheet-rolltemplate-msg .sheet-text-center { text-align: center; diff --git a/The One Ring 2e/sheet.html b/The One Ring 2e/sheet.html index 6762e5b1a7..e3b62c7bd2 100644 --- a/The One Ring 2e/sheet.html +++ b/The One Ring 2e/sheet.html @@ -2701,6 +2701,25 @@ } } + if (build < 20) { + attrs["build"] = 21; + let releaselog = {msg:""}; + hlog(`Release 03.01.00 - ${new Date().toLocaleString()}`, releaselog); + if (v.sheettab === "isPC"){ + getAttrs(['releaselog'], function(values){ + hlog(` +### Features +- msg custom rolltemplate: added header-alt, sub1-alt, sub2-alt and fixe horizontal line hides correctly + `, releaselog); + hlog("==============", releaselog); + attrs['releaselog'] = releaselog.msg + values['releaselog']; + if (Object.keys(attrs).length) { + setAttrs(attrs); + } + }); + } + } + /* if (build === 9) { attrs["build"] = 8; @@ -2732,9 +2751,18 @@
{{#header}}
{{header}}
{{/header}} + {{#header-alt}}
{{header-alt}}
{{/header-alt}} {{#sub1}}
{{sub1}}
{{/sub1}} + {{#sub1-alt}}
{{sub1-alt}}
{{/sub1-alt}} {{#sub2}}
{{sub2}}
{{/sub2}} + {{#sub2-alt}}
{{sub2-alt}}
{{/sub2-alt}}
+ {{#header}}{{^sub1}}{{^sub2}}{{#msg}}
{{/msg}}{{/sub2}}{{/sub1}}{{/header}} + {{#sub1}}{{^sub2}}{{#msg}}
{{/msg}}{{/sub2}}{{/sub1}} + {{#sub2}}{{#msg}}
{{/msg}}{{/sub2}} + {{#header-alt}}{{^sub1-alt}}{{^sub2-alt}}{{#msg-alt}}
{{/msg-alt}}{{/sub2-alt}}{{/sub1-alt}}{{/header-alt}} + {{#sub1-alt}}{{^sub2-alt}}{{#msg-alt}}
{{/msg-alt}}{{/sub2-alt}}{{/sub1-alt}} + {{#sub2-alt}}{{#msg-alt}}
{{/msg-alt}}{{/sub2-alt}} {{#msg}}
{{msg}}
diff --git a/The One Ring 2e/sheet.json b/The One Ring 2e/sheet.json index 1e6645dbe8..972ae7ff6c 100644 --- a/The One Ring 2e/sheet.json +++ b/The One Ring 2e/sheet.json @@ -1,6 +1,6 @@ { "title": "The One Ring 2e", - "version": "3.0.0", + "version": "3.1.0", "html": "sheet.html", "css": "sheet.css", "authors": "Bodo Hüsemann, Richard W, Michael (aka Aragent) I, Paul Venner, Michael Heilemann, Stefan Unterhuber, Stuart Johnson, David Domínguez, Eric Le Bourvellec", From 60238fe5d18a28337a92b29ec0f015be9a1e4684 Mon Sep 17 00:00:00 2001 From: Bodo Huesemann Date: Sun, 21 Aug 2022 18:05:25 +0200 Subject: [PATCH 2/3] post fell abilities of adversaries into chat --- The One Ring 2e/sheet.css | 17 ++++++++++++--- The One Ring 2e/sheet.html | 43 +++++++++++++++++++++++++++++++++++++- 2 files changed, 56 insertions(+), 4 deletions(-) diff --git a/The One Ring 2e/sheet.css b/The One Ring 2e/sheet.css index a6402db111..16fb867c7d 100644 --- a/The One Ring 2e/sheet.css +++ b/The One Ring 2e/sheet.css @@ -925,6 +925,16 @@ opacity: 0.8; } +.ui-dialog .charsheet button[class~="chat"]::before { + /* change D12 to target-appropriate crosshairs */ + font-family: "Pictos" !important; + content: "q" !important; + font-size: 1.1em; + color: rgb(40, 40, 40); + font-weight: normal; + opacity: 0.8; +} + .ui-dialog .charsheet :is(button[type="roll"][class~="table-rolls"], button[type="roll"][class~="parsed-rolls"], button[type="action"][class~="parsed-rolls"])::before { @@ -1014,8 +1024,9 @@ .charsheet .adversary-combat-proficiencies { display: grid; - grid-template-columns: 250px 60px 60px 60px auto; + grid-template-columns: 220px 60px 60px 60px auto; grid-template-rows: repeat(3, 1fr); + grid-gap: 0px; } .charsheet .adversary-combat-proficiencies input[type="text"], @@ -1033,7 +1044,7 @@ .charsheet .adversary-fell-abilities { display: grid; - grid-template-columns: 200px 1fr; + grid-template-columns: 35px 190px auto; grid-template-rows: repeat(4, auto); justify-items: left; grid-gap: 0px; @@ -1089,7 +1100,7 @@ } .sheet-rolltemplate-msg .sheet-contentmin { - padding-top: 10px; + padding-top: 5px; height: min-content; } diff --git a/The One Ring 2e/sheet.html b/The One Ring 2e/sheet.html index e3b62c7bd2..7bb71ddcc3 100644 --- a/The One Ring 2e/sheet.html +++ b/The One Ring 2e/sheet.html @@ -1327,10 +1327,12 @@

Fell Ability

+
+