[Hc Svnt Dracones 2E] v.1.75: add roll template and init button

This commit is contained in:
Andreas Johansson
2020-10-14 19:17:17 +03:00
parent a149140a75
commit 45efaa68de
4 changed files with 124 additions and 5 deletions
@@ -3,6 +3,13 @@ Official Character Sheet
# Changelog
## V.1.75 (2020-10-20)
* fix duplicate page number on Ability 3
* add `&{template:hsd2}` roll template to sheet. Syntax: `&{template:hsd2} {{title=big title}} {{subtitle=optional subtitle}} {{color=white}} {{normal=section like default roll template}} {{rollexample =[[2d10+2]] }} {{desc=wide section better suited for descriptions. color section is optional, defaults to grey. Other color options are white, black, red}}`
* add initiative button
* update page names
* update sheet desciption
## V.1.70 (2020-05-27)
* add Default sheet settings for `EXP`, `credits` and number of `techniques`
* updated `sheet.json`'s "instructions"
+93
View File
@@ -11,6 +11,8 @@
*
* PAGE.................CSS for switching tabs/pages
*
* ROLL TEMPATES........Styling roll outputs
*
* SPECIAL..............special CSS tricks applied last
*/
@@ -695,6 +697,97 @@ div.sheet-pg3 {
div.sheet-tab-content { display: none; }
/*------------------------------------*\
#ROLL TEMPLATES
\*------------------------------------*/
/* Smaller margins - remove these if you want the huge default left margin */
.sheet-rolltemplate-hsd2 {
margin-left: -37px;
}
.withoutavatars .sheet-rolltemplate-hsd2 {
margin-left: -7px;
}
.sheet-rolltemplate-hsd2 .sheet-container {
border: 3px solid black;
border-radius: 3px;
}
/* Header formatting - title and subtitle */
.sheet-rolltemplate-hsd2 .sheet-header {
background-color: var(--header-bg-color);
color: var(--header-text-color);
text-align: left;
text-transform: capitalize;
padding: 5px;
border-bottom: 2px solid black;
}
.sheet-rolltemplate-hsd2 .sheet-title {
font-size:1.2em;
font-weight: bold;
}
.sheet-rolltemplate-hsd2 .sheet-subtitle {
font-size:.9em;
}
/* example colors */
.sheet-rolltemplate-hsd2 .sheet-container {
/* this is the default color */
--header-bg-color: #FFF;
--header-text-color: #000;
}
/* alt template colors */
.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-grey {
--header-bg-color: #A4A4A4;
}
.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-black {
--header-bg-color: #000;
--header-text-color: #FFF;
}
.sheet-rolltemplate-hsd2 .sheet-container.sheet-color-red {
--header-bg-color: #a83521;
--header-text-color: #FFF;
}
/* Allprops part */
.sheet-rolltemplate-hsd2 .sheet-content {
display: grid;
background: #FFF;
/* Header formatting - modify the column layout below */
grid-template-columns: auto auto;
/* Line height to match default roll template */
line-height:1.4em;
}
.sheet-rolltemplate-hsd2 .sheet-content > div {
padding: 5px;
}
/* Left column */
.sheet-rolltemplate-hsd2 .sheet-content .sheet-key {
font-weight: bold;
padding-right: 10px;
text-align: right;
}
/* Empty rule, use this if you want to change the right column
.sheet-rolltemplate-hsd2 .sheet-value {
}
*/
/* Make even-numbered rows grey */
.sheet-rolltemplate-hsd2 .sheet-content :nth-child(4n+3),
.sheet-rolltemplate-hsd2 .sheet-content :nth-child(4n) {
background:#EEE;
}
/* Description field */
.sheet-rolltemplate-hsd2 .sheet-desc {
grid-column: span 2;
padding: 5px;
text-align: center;
}
/*------------------------------------*\
#SPECIAL
+23 -4
View File
@@ -1,10 +1,10 @@
<input type="radio" name="attr_tab" class="tab tab1" value="1" checked="checked"><span title="Page 1"></span>
<input type="radio" name="attr_tab" class="tab tab2" value="2" ><span title="Page 2"></span>
<input type="radio" name="attr_tab" class="tab tab3" value="3" ><span title="Page 3"></span>
<input type="radio" name="attr_tab" class="tab tab1" value="1" checked="checked"><span title="Main"></span>
<input type="radio" name="attr_tab" class="tab tab2" value="2" ><span title="Inventory & Augs"></span>
<input type="radio" name="attr_tab" class="tab tab3" value="3" ><span title="Experience"></span>
<span class="version bold">Sheet Version: 1.70</span>
<span class="version bold">Sheet Version: 1.75</span>
<!-- ----------------------------------------------------------------------------------------------------------------------- -->
<!-- ------------------------------------------------- PAGE 1 -------------------------------------------------------------- -->
<!-- ----------------------------------------------------------------------------------------------------------------------- -->
@@ -65,6 +65,7 @@
</div>
<div style="margin-bottom:10px;">
<span class="bold">Initiative</span>
<button name="roll_init" type="roll" value="&{template:hsd2} {{title=Initiative}} {{subtitle=@{character_name} }} {{color=grey}} {{Roll= [[1d10+?{Dedicate Initiative?|0} &{tracker}]] }}" title="Remeber to select token before rolling initiative. Button can be called with %{init}"></button>
</div>
<div>
@@ -1018,6 +1019,24 @@
</div>
<!-- -------------------------------- ROLL TEMPLATES -------------------------------------- -->
<rolltemplate class="sheet-rolltemplate-hsd2">
<div class="sheet-container sheet-color-{{color}}">
<div class="sheet-header">
{{#title}}<div class="sheet-title">{{title}}</div>{{/title}}
{{#subtitle}}<div class="sheet-subtitle">{{subtitle}}</div>{{/subtitle}}
</div>
<div class="sheet-content">
{{#allprops() title subtitle desc color}}
<div class="sheet-key">{{key}}</div>
<div class="sheet-value">{{value}}</div>
{{/allprops() title subtitle desc color}}
{{#desc}}<div class="sheet-desc">{{desc}}</div>{{/desc}}
</div>
</div>
</rolltemplate>
<!-- -------------------------------- SHEETWORKERS ---------------------------------------- -->
<input name="attr_exp" type="hidden" value="210">
<input name="attr_progression_credits_track" type="hidden" value="0">
+1 -1
View File
@@ -4,7 +4,7 @@
"authors": "Andreas J.",
"roll20userid": "1223200",
"preview": "hsd2preview.png",
"instructions": "This is the Offical Sheet for **HC SVNT DRACONES: Second Edition**.\n* `Total Mass`,`Total Move` and `Cargo Points` are calcualted automatically\n* Page 3: Changes made to the `Notoriety Purchase Tracking` and `Landmark Automatic Benefits`-sections doesn't affect other parts of the sheet, and must be manually changed.\n* Page 3: Changes made on the `Large EXP table` automatically edit your `stats` accordingly, as well as `credits` and values in the `Progression Purchse Tracking`-section\n* No roll buttons\n* Sheet Version 1.70 - See [Readme](https://github.com/Roll20/roll20-character-sheets/tree/master/Hc%20Svnt%20Dracones%20Second%20Edition) for Sheet Changelog\n\n [Game's homepage](https://hsdroleplayinggame.com/)",
"instructions": "This is the Offical Sheet for **HC SVNT DRACONES: Second Edition**.\n\n* `Total Mass`,`Total Move` and `Cargo Points` are calcualted automatically\n* Experience Page: Changes made to the `Notoriety Purchase Tracking` and `Landmark Automatic Benefits`-sections doesn't affect other parts of the sheet, and must be manually changed.\n* Experience Page: Changes made on the `Large EXP table` automatically edit your `stats` accordingly, as well as `credits` and values in the `Progression Purchse Tracking`-section\n* Initiative roll button, can be called with `%{character_name|init}`\n* roll template, example: `&{template:hsd2} {{title=big title}} {{subtitle=optional subtitle}} {{color=white}} {{normal=section like default roll template}} {{rollexample =[[2d10+2]] }} {{desc=wide section better suited for descriptions. color section is optional, defaults to grey. Other color options are white, black, red}}`\n\n* Sheet Version 1.75 - See [Readme](https://github.com/Roll20/roll20-character-sheets/tree/master/Hc%20Svnt%20Dracones%20Second%20Edition) for Sheet Changelog\n\n [Game's homepage](https://hsdroleplayinggame.com/)",
"useroptions": [
{
"attribute": "techniques",