diff --git a/Hc Svnt Dracones Second Edition/Readme.md b/Hc Svnt Dracones Second Edition/Readme.md index 072951d8cf..19d52a62f1 100644 --- a/Hc Svnt Dracones Second Edition/Readme.md +++ b/Hc Svnt Dracones Second Edition/Readme.md @@ -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" diff --git a/Hc Svnt Dracones Second Edition/hsd2.css b/Hc Svnt Dracones Second Edition/hsd2.css index 53171a6ac0..de8771b067 100644 --- a/Hc Svnt Dracones Second Edition/hsd2.css +++ b/Hc Svnt Dracones Second Edition/hsd2.css @@ -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 diff --git a/Hc Svnt Dracones Second Edition/hsd2.html b/Hc Svnt Dracones Second Edition/hsd2.html index 0ed525a3bd..76d817f733 100644 --- a/Hc Svnt Dracones Second Edition/hsd2.html +++ b/Hc Svnt Dracones Second Edition/hsd2.html @@ -1,10 +1,10 @@ - - - + + + -Sheet Version: 1.70 +Sheet Version: 1.75 @@ -65,6 +65,7 @@
Initiative +
@@ -1018,6 +1019,24 @@
+ + + +
+
+ {{#title}}
{{title}}
{{/title}} + {{#subtitle}}
{{subtitle}}
{{/subtitle}} +
+
+ {{#allprops() title subtitle desc color}} +
{{key}}
+
{{value}}
+ {{/allprops() title subtitle desc color}} + {{#desc}}
{{desc}}
{{/desc}} +
+
+
+ diff --git a/Hc Svnt Dracones Second Edition/sheet.json b/Hc Svnt Dracones Second Edition/sheet.json index a30ae6d0de..223b00fa8e 100644 --- a/Hc Svnt Dracones Second Edition/sheet.json +++ b/Hc Svnt Dracones Second Edition/sheet.json @@ -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",