added additional alt tags to msg rolltemplate

This commit is contained in:
Bodo Huesemann
2022-08-20 13:00:37 +02:00
parent cc4e3f189c
commit 3e5eda89ec
4 changed files with 48 additions and 4 deletions
+3
View File
@@ -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
+16 -3
View File
@@ -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;
+28
View File
@@ -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 @@
<div class="sheet-container">
<div class="sheet-header">
{{#header}}<div class="sheet-title sheet-text-center">{{header}}</div>{{/header}}
{{#header-alt}}<div class="sheet-title-alt sheet-text-center">{{header-alt}}</div>{{/header-alt}}
{{#sub1}}<div class="sheet-subtitle sheet-text-center">{{sub1}}</div>{{/sub1}}
{{#sub1-alt}}<div class="sheet-subtitle-alt sheet-text-center">{{sub1-alt}}</div>{{/sub1-alt}}
{{#sub2}}<div class="sheet-subtitle sheet-text-center">{{sub2}}</div>{{/sub2}}
{{#sub2-alt}}<div class="sheet-subtitle-alt sheet-text-center">{{sub2-alt}}</div>{{/sub2-alt}}
</div>
{{#header}}{{^sub1}}{{^sub2}}{{#msg}}<div class="sheet-header-sep"/>{{/msg}}{{/sub2}}{{/sub1}}{{/header}}
{{#sub1}}{{^sub2}}{{#msg}}<div class="sheet-header-sep"/>{{/msg}}{{/sub2}}{{/sub1}}
{{#sub2}}{{#msg}}<div class="sheet-header-sep"/>{{/msg}}{{/sub2}}
{{#header-alt}}{{^sub1-alt}}{{^sub2-alt}}{{#msg-alt}}<div class="sheet-header-sep"/>{{/msg-alt}}{{/sub2-alt}}{{/sub1-alt}}{{/header-alt}}
{{#sub1-alt}}{{^sub2-alt}}{{#msg-alt}}<div class="sheet-header-sep"/>{{/msg-alt}}{{/sub2-alt}}{{/sub1-alt}}
{{#sub2-alt}}{{#msg-alt}}<div class="sheet-header-sep"/>{{/msg-alt}}{{/sub2-alt}}
{{#msg}}
<div class="sheet-contentmin">
<div class="sheet-main">{{msg}}</div>
+1 -1
View File
@@ -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",