From 7cbf6b0848e1fdb3e8caec64669c916d63acf439 Mon Sep 17 00:00:00 2001 From: James A Culp III Date: Sun, 18 Apr 2021 23:26:59 -0400 Subject: [PATCH] Added Notes tab and section so players can keep notes on the Character Sheet in addition to the Bio & Info section. Added Rolls tab and section, to be used in a future feature of commonly used rolls as roll buttons. --- Shadowrun Sixth World/Shadowrun6thEdition.css | 32 +++- .../Shadowrun6thEdition.html | 139 +++++++++++------- 2 files changed, 112 insertions(+), 59 deletions(-) diff --git a/Shadowrun Sixth World/Shadowrun6thEdition.css b/Shadowrun Sixth World/Shadowrun6thEdition.css index 2409a47384..158ed3e646 100644 --- a/Shadowrun Sixth World/Shadowrun6thEdition.css +++ b/Shadowrun Sixth World/Shadowrun6thEdition.css @@ -464,7 +464,7 @@ div.matrix-device .matrixFirewall { #SR6WE .pc .tabs .header-navtabs { display: grid !important; - grid-template-columns: 1fr 2.5em 2.5em repeat(8, 5em) !important; + grid-template-columns: 1fr 2.5em 2.5em repeat(10, 5em) !important; vertical-align: middle; width: 100% !important; right: 0px !important; } @@ -2782,6 +2782,26 @@ div.contacts div.repitem div.settings input[type='number'] { margin: 0px 2px 0px 0px; } +/***** Notes Section *****/ +.notes .pc-box { + min-height: 800px !important; } +.notes-col { + display: inline-block; + vertical-align: top; + width: 90%; } +.notes-col textarea { + margin-top: 8px; + height: 785px !important; + width: 111% !important; } + + +/***** Rolls Section *****/ +.rolls .pc-box { + min-height: 800px !important; } +.rolls-col { + display: inline-block; } + + /***** Options Section *****/ .options .pc-box { min-height: 800px !important; } @@ -3572,7 +3592,7 @@ width: 100% !important; } .matrix, .magic, .resonance, .optional, .textboxes, .optional-flag[value='0'] + .attr-header, .category + div, -.category + div + div, .npc, .pc, .arms, .augs, .core, .gear, .options, .social, .vehicle, +.category + div + div, .npc, .pc, .arms, .augs, .core, .gear, .options, .social, .vehicle, .notes, .rolls, .skills-active, .skills-knowledge, .skills-language, .magic-spells, .magic-preps, .magic-rituals, .powers-adept, .powers-meta, .powers-conjuring, @@ -3663,12 +3683,12 @@ input[name='attr_sheet_type'][value='pc'] ~ .pc, .options_toggle[value='magic'] ~ .magic, .options_toggle[value='matrix'] ~ .matrix, .options_toggle[value='vehicle'] ~ .vehicle, +.options_toggle[value='notes'] ~ .notes, +.options_toggle[value='rolls'] ~ .rolls, input[name='attr_stats_toggle'][value='settings'] ~ .border-box .attribute .settings, input[name='attr_stats_toggle'][value='settings'] ~ .body .column .settings, input[name='attr_stats_toggle'][value='settings'] ~ .body .textrow .settings, - input[name='attr_stats_toggle'][value='settings'] ~ .settings, - input.settings-toggle[value='settings'] ~ .settings, .character-type[value='magic'] ~ .pc .pc-row .attr-col .hide-magic, input[name='attr_flag_special'][value='magic'] ~ .npc .hide-magic, @@ -3677,11 +3697,9 @@ input[name='attr_flag_special'][value='spirit'] ~ .npc .hide-spirit, input[name='attr_flag_special'][value='resonance'] ~ .npc .hide-resonance, input.tab-switch[value='range'] ~ .weapon-range, input.tab-switch[value='melee'] ~ .weapon-melee, - input[name='attr_sheet_type'][value='grunt'] ~ .npc .rows.grunt, input[name='attr_sheet_type'][value='grunt'] ~ .npc .textrow.grunt, input[name='attr_sheet_type'][value='grunt'] ~ .npc span.grunt, - input[name='attr_sheet_type'][value='host'] ~ .npc .rows.host, input[name='attr_sheet_type'][value='host'] ~ .npc .textrow.host, input[name='attr_sheet_type'][value='sprite'] ~ .npc .rows.sprite, @@ -3759,7 +3777,7 @@ input.collapse-flag:checked ~ div.collapse { input[name='attr_stats_toggle']:not([value='settings']) ~ div.body div.grunt.pain-tolerance { display: none !important; } -.pc .tabs input[value*='arms'] ~ button[name*='arms'], .pc .tabs input[value*='augs'] ~ button[name*='augs'], .pc .tabs input[value*='core'] ~ button[name*='core'], .pc .tabs input[value*='gear'] ~ button[name*='gear'], .pc .tabs input[value*='options'] ~ button[name*='options'], .pc .tabs input[value*='social'] ~ button[name*='social'], .pc .tabs input[value*='magic'] ~ button[name*='magic'], .pc .tabs input[value*='matrix'] ~ button[name*='matrix'], .pc .tabs input[value*='vehicle'] ~ button[name*='vehicle'] { +.pc .tabs input[value*='arms'] ~ button[name*='arms'], .pc .tabs input[value*='augs'] ~ button[name*='augs'], .pc .tabs input[value*='core'] ~ button[name*='core'], .pc .tabs input[value*='gear'] ~ button[name*='gear'], .pc .tabs input[value*='options'] ~ button[name*='options'], .pc .tabs input[value*='social'] ~ button[name*='social'], .pc .tabs input[value*='magic'] ~ button[name*='magic'], .pc .tabs input[value*='matrix'] ~ button[name*='matrix'], .pc .tabs input[value*='vehicle'] ~ button[name*='vehicle'], .pc .tabs input[value*='notes'] ~ button[name*='notes'], .pc .tabs input[value*='rolls'] ~ button[name*='rolls'] { background-color: #79016f !important; box-shadow: inset 0px 0px 3px 1px #460141 !important; color: #fff !important; } diff --git a/Shadowrun Sixth World/Shadowrun6thEdition.html b/Shadowrun Sixth World/Shadowrun6thEdition.html index c5158aee23..e991269da9 100644 --- a/Shadowrun Sixth World/Shadowrun6thEdition.html +++ b/Shadowrun Sixth World/Shadowrun6thEdition.html @@ -52,6 +52,8 @@ + + @@ -2848,65 +2850,98 @@ -
-
-

Options

-
-
-
-
-

Character


-
-
- -
-
-
-

Sheet Select


- -
-
-
-
-

Temporary Modifiers


- - +
+
+

Options

+
+
+
+
+

Character


+
+
+ +

- - - - - - - - - - -
- - +
+

Sheet Select


+ +
+
+
+
+

Temporary Modifiers


+ + +
+ + + + + + + + + + +
+ + - - + + - - - - - - + + + + + + +
-
+ + +
+
+
+

Notes

+
+
+
+
+
+ +
+
+
+
+
+ + +
+
+
+

Rolls

+
+
+
+
+
+
+
+
+
+
@@ -4471,7 +4506,7 @@ const settingsToggle = (eventinfo) => { }); }; -[`core`, `arms`, `augs`, `gear`, `magic`, `matrix`, `social`, `vehicle`, `options`].forEach(attr => { +[`core`, `arms`, `augs`, `gear`, `magic`, `matrix`, `social`, `vehicle`, `options`, `notes`, `rolls`].forEach(attr => { on(`clicked:tab_${attr}`, () => { setAttrs({tab: attr}); });