From 1619c8739c8a8d232e7ba55c14808c8c9d70abce Mon Sep 17 00:00:00 2001 From: LilLiteralist <104447108+LilLiteralist@users.noreply.github.com> Date: Tue, 17 Sep 2024 22:41:29 -0500 Subject: [PATCH] Added buffs and penalties section --- .../StarWarsSagaEdition.css | 173 ++++++- .../StarWarsSagaEdition.html | 447 +++++++++++++++++- Star Wars Saga Edition/sheet.json | 2 +- Star Wars Saga Edition/translation.json | 11 +- 4 files changed, 595 insertions(+), 38 deletions(-) diff --git a/Star Wars Saga Edition/StarWarsSagaEdition.css b/Star Wars Saga Edition/StarWarsSagaEdition.css index 42848087ad5..d1c5db5022e 100644 --- a/Star Wars Saga Edition/StarWarsSagaEdition.css +++ b/Star Wars Saga Edition/StarWarsSagaEdition.css @@ -21,6 +21,7 @@ input.tab::before, --input-disabled-bg:#e3e3e3; --input-disabled-border:#444; --input-disabled-border-top:#999; + --input-darker-text: #333; --checkbox-accent: #606060; /* This is now unused on the sheet because of visible-checkbox */ --checkbox-bg:#eee; --checkbox-checked-bg:#ddd; @@ -29,6 +30,9 @@ input.tab::before, --checkbox-check:#222; --checkbox-disabled-bg:#cecece; --checkbox-disabled-check:#606060; + --toggle-bar: #eeeefb; + --toggle-bar-checked: #cacad5; + --toggle-shadow: #4441; --header-bg: #000; --header-bg-highlight: #333; --col1-bg:#a7a8aa; @@ -56,6 +60,18 @@ input.tab::before, --button-gradient2: #e6e6e6; --button-shadow1: #ffffff33; --button-shadow2: #0000000d; + --bonuses-bg: #7794; + --bonuses-skills-bg: #0000000c; + --bonuses-skills-border: #8a8aa844; + --bonuses-toggle-shadow: #4444; + --scrollbar1-thumb: #a7a7ae; + --scrollbar1-shaft: #d3d3dc; + --scrollbar2-thumb: #9090ae; + --scrollbar2-shaft: #d9d9e6; +} + +.ui-dialog { + scrollbar-color: var(--scrollbar1-thumb) var(--scrollbar1-shaft); } .center { @@ -183,30 +199,99 @@ input[type="number"]:hover { margin-top:4px; } +.repcontrol { + margin-bottom: 15px; +} + /* Bonuses and Penalties Grid */ +.repcontainer[data-groupname="repeating_bonuses"] > .repitem { + display:inline-block; + width:33.33%; +} + +.repcontainer[data-groupname="repeating_bonuses"] { + display:flex; + flex-wrap:wrap; +} + .bonuses-grid { display:grid; - grid-template-columns: 1fr 1fr 3fr 2fr 5fr; - column-gap: 4px; - row-gap: 3px; + grid-template-columns: 3fr 2fr; + gap:4px; + margin:4px; + border: 1px solid var(--rule-borders); + border-radius:5px; + padding: 5px; + box-sizing: content-box; } -.bonuses-header-grid { - grid-column-start: span 8; - display:flex; - grid-template-columns: 1fr 9fr 2fr; - column-gap: 4px; - row-gap: 3px; +.bonuses-header { + grid-column: 1/3; + display: flex; + gap: 4px; } -.bonuses-name { - grid-column:2/6; +.bonuses-header input[type="text"] { + width: calc(100% - 65px); + color: var(--input-darker-text); +} + +.bonus-categories-grid { + margin: 6px 2px 4px 4px; + display:grid; + grid-template-columns: 1fr 3fr 2fr; + row-gap: 2px; +} + +.bonuses-grid .bonus-categories-grid label, +.bonuses-grid .bonus-categories-grid h4 { + font-size:13px; } .bonuses-grid select { width: auto; } +.bonuses-defenses > div { + display:inline-flex; + margin-left: -5px; + margin-right: -5px; + width: 100%; +} + +.bonuses-defenses div div { + flex-basis: 50px; + flex-grow: 1; + text-align: center; +} + +.bonuses-skills { + grid-column-start: span 2; + height: 200px; + overflow: scroll; + border-style: inset; + border-width: 2px; + padding: 5px; + background-color: var(--bonuses-skills-bg); + border-radius: 5px; + border-color: var(--bonuses-skills-border); +} + +/* If the bonus is active */ +.bonuses-grid:has(.bonuses-header .visible-checkbox:checked) { + background-color: var(--bonuses-bg); + outline: 1px solid var(--rule-borders); + scrollbar-color: var(--scrollbar2-thumb) var(--scrollbar2-shaft); +} + +.bonuses-header .visible-checkbox:checked ~ input[type="text"] { + font-weight:bold; +} + +.bonuses-header .visible-checkbox:checked ~ label.toggle-bar { + box-shadow: 0px 0px 6px 1px var(--bonuses-toggle-shadow) inset; +} + /* Vitals Grid (HP, Threshold, Condition Track, Second Wind) */ .vitals-grid { display: grid; @@ -297,7 +382,7 @@ input[type="number"]:hover { .attacks-grid-weapon-name { grid-column:2/9; - color:#333; + color: var(--input-darker-text); font-weight:bold; width:100%; } @@ -931,15 +1016,15 @@ label.toggle-bar { height: 17px; margin-bottom:-3px; box-sizing: border-box; - background-color: #eeeefb; + background-color: var(--toggle-bar); border-radius: 30px; cursor: pointer; transition: background-color .25s; - box-shadow: 0px 0px 6px 1px #4441 inset + box-shadow: 0px 0px 6px 1px var(--toggle-shadow) inset } .toggle-bar:has(input:checked) { - background-color: #cacad5; + background-color: var(--toggle-bar-checked); } label.toggle-bar input { @@ -1060,6 +1145,7 @@ input:checked + .toggle-knob::after { /* ******** Hiding sections and show/hide toggle ******** */ .forceShow:not(:checked) ~ .forceBody, +.forceShow:not(:checked) ~ div.repcontainer .forceBody, .organizationShow:not(:checked) ~ .organizationBody, .SRShow:not(:checked) ~ .SRBody, .DRShow:not(:checked) ~ .DRBody, @@ -1085,7 +1171,9 @@ input:checked + .toggle-knob::after { /* Section for showing/hiding specific skills */ .athleticsShow:not(:checked) ~ .athleticsBody, -.athleticsShow:checked ~ .noathleticsBody { +.athleticsShow:not(:checked) ~ div.repcontainer .athleticsBody, +.athleticsShow:checked ~ .noathleticsBody, +.athleticsShow:checked ~ div.repcontainer .noathleticsBody { display:none!important; } @@ -1316,6 +1404,7 @@ input:not(:checked) + label.clickable.textHead2Col { --dm-scrollbar1-shaft: #2e2e40; --dm-scrollbar2-thumb: #1e1e44; --dm-scrollbar2-shaft: #60608c; + --dm-scrollbar3-shaft: #232331; --dm-col1: #55555a; --dm-col1-highlight: #727275; --dm-input-border: #707099; @@ -1336,7 +1425,7 @@ input:not(:checked) + label.clickable.textHead2Col { --dm-header-bg-highlight: #44a; --dm-header-text: #f5f5f5; --dm-clickable-hover:#eee; - --dm-clickable-highlight:#fff4; + --dm-clickable-highlight:#fff6; --dm-button-bg: #747492; --dm-button-gradient1:#d9d9e3; --dm-button-gradient2: #b8b8cc; @@ -1349,10 +1438,15 @@ input:not(:checked) + label.clickable.textHead2Col { --dm-tab-inactive-gradient2: #292929; --dm-toggle-bar: #446; --dm-toggle-bar-checked: #3c3cbc; + --dm-toggle-shadow: #0008; --dm-toggle-knob:#bbbbd7; --dm-toggle-knob-border:#6c6c8f; --dm-toggle-knob-active:#d1d1ec; --dm-toggle-knob-active-border:#9d9dcc; + --dm-bonuses-outline: #556; + --dm-bonuses-outline-active: #8a8aa8; + --dm-bonuses-toggle-shadow: #000a; + --dm-bonuses-toggle-outline: #0006; /* Colors below are for the CT buttons */ --dm-ct-bg: #747492; --dm-ct-border: #000f; @@ -1420,6 +1514,7 @@ input:not(:checked) + label.clickable.textHead2Col { color: var(--dark-primarytext); } +/* Begin sectio for checkboxes */ .sheet-darkmode .charsheet input[type=radio], .sheet-darkmode .charsheet input[type=checkbox] { accent-color: var(--dm-checkbox-accent); @@ -1442,6 +1537,16 @@ input:not(:checked) + label.clickable.textHead2Col { transition: 60ms all linear; } +.sheet-darkmode .charsheet .visible-checkbox:hover { + filter: brightness(125%); +} + +.sheet-darkmode .charsheet .visible-checkbox:hover::before { + filter:none; /* This gets rid of the contrast filter from light mode. */ +} +/* End section for checkboxes */ + +/* Start section for crew */ .sheet-darkmode .skills-grid .skills-grid-name label { color:var(--dark-primarytext); } @@ -1466,14 +1571,7 @@ input:not(:checked) + label.clickable.textHead2Col { .sheet-darkmode .charsheet .defaultCrew:not(:checked) ~ .defaultCrewLock[type="checkbox"]::before { box-shadow: inset 1em 1em var(--dm-checkbox-disabled-check); /*The dimensions don't actually make a difference, as long as they are larger than the width and height. */ } - -.sheet-darkmode .charsheet .visible-checkbox:hover { - filter: brightness(125%); -} - -.sheet-darkmode .charsheet .visible-checkbox:hover::before { - filter:none; /* This gets rid of the contrast filter from light mode. */ -} +/* End section for crew */ .sheet-darkmode .charsheet div.textHead2Col, .sheet-darkmode .charsheet div.textHead, @@ -1538,7 +1636,7 @@ input:not(:checked) + label.clickable.textHead2Col { /* Start section for toggle switches */ .sheet-darkmode label.toggle-bar { background-color: var(--dm-toggle-bar); - box-shadow: 0px 0px 6px 1px #0008 inset + box-shadow: 0px 0px 6px 1px var(--dm-toggle-shadow) inset } .sheet-darkmode .toggle-bar:has(input:checked) { @@ -1558,6 +1656,29 @@ input:not(:checked) + label.clickable.textHead2Col { } /* End section for toggle switches */ +/* Start section for Bonuses and Penalties */ +.sheet-darkmode .charsheet .bonuses-grid { + border: 1px solid var(--dm-bonuses-outline); +} + +.sheet-darkmode .charsheet .bonuses-skills { + background-color: #0002; + border-color: #8a8aa888; +} + +.sheet-darkmode .charsheet .bonuses-grid:has(.bonuses-header .visible-checkbox:checked) { + /* If the bonus is active */ + border-color: var(--dm-bonuses-outline-active); + outline: 1px solid var(--dm-bonuses-outline-active); + scrollbar-color: var(--dm-scrollbar1-thumb) var(--dm-scrollbar3-shaft); +} + +.sheet-darkmode .charsheet .bonuses-header .visible-checkbox:checked ~ label.toggle-bar { + box-shadow: 0px 0px 6px 1px var(--dm-bonuses-toggle-shadow) inset; + outline: 1px solid var(--dm-bonuses-toggle-outline); +} +/* End section for Bonuses and Penalties */ + /* Start section for condition track buttons and heavy load warning */ .sheet-darkmode .charsheet input.ct-label + label, .sheet-darkmode .charsheet input.encumbrance-load ~ label { diff --git a/Star Wars Saga Edition/StarWarsSagaEdition.html b/Star Wars Saga Edition/StarWarsSagaEdition.html index 44a28ea946d..58870a27f2a 100644 --- a/Star Wars Saga Edition/StarWarsSagaEdition.html +++ b/Star Wars Saga Edition/StarWarsSagaEdition.html @@ -112,6 +112,220 @@

Size


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

Attacks

+ + + +

Damage

+ + + + + + + + + +
+
+ Type + +
+
+ +
+
+ +
+ Reflex +
+
+ +
+ Flat‑footed +
+
+
+ +
+ Fortitude +
+
+ +
+ Will +
+
+
+ +
+
+ + Acrobatics +
+
+ + Athletics +
+
+ + Climb +
+
+ + Deception +
+
+ + Endurance +
+
+ + Gather Information +
+
+ + Initiative +
+
+ + Jump +
+
+ + + Knowledge + (Bureaucracy) + +
+
+ + + Knowledge + (Life Sciences) + +
+
+ + + Knowledge + (Physical Sciences) + +
+
+ + + Knowledge + (Social Sciences) + +
+
+ + + Knowledge + (Tactics) + +
+
+ + + Knowledge + (Technology) + +
+
+ + Mechanics +
+
+ + Perception +
+
+ + Persuasion +
+
+ + Ride +
+
+ + Stealth +
+
+ + Survival +
+
+ + Swim +
+
+ + Treat Injury +
+
+ + Use Computer +
+
+ + Use the Force +
+
+
+
+
+
+
@@ -579,14 +793,14 @@

Status

- Flatfooted - + Flat‑footed + Fortitude - +  = 10 +  @@ -602,7 +816,7 @@

Status

Will - +  = 10 +  @@ -2893,6 +3107,219 @@

Size


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

Attacks

+ + + +

Damage

+ + + + + + + + + +
+
+ Type + +
+
+ +
+
+ +
+ Reflex +
+
+ +
+ Flat‑footed +
+
+
+ +
+ Fortitude +
+
+ +
+ Will +
+
+
+ +
+
+ + Acrobatics +
+
+ + Athletics +
+
+ + Climb +
+
+ + Deception +
+
+ + Endurance +
+
+ + Gather Information +
+
+ + Initiative +
+
+ + Jump +
+
+ + + Knowledge + (Bureaucracy) + +
+
+ + + Knowledge + (Life Sciences) + +
+
+ + + Knowledge + (Physical Sciences) + +
+
+ + + Knowledge + (Social Sciences) + +
+
+ + + Knowledge + (Tactics) + +
+
+ + + Knowledge + (Technology) + +
+
+ + Mechanics +
+
+ + Perception +
+
+ + Persuasion +
+
+ + Ride +
+
+ + Stealth +
+
+ + Survival +
+
+ + Swim +
+
+ + Treat Injury +
+
+ + Use Computer +
+
+ + Use the Force +
+
+
+
+
+
@@ -3258,9 +3685,9 @@

Immune

- + - + @@ -5410,7 +5837,7 @@

Grapple

- + @@ -6068,7 +6495,7 @@

Available Emplacement Points


- Last updated: 14 September 2024 + Last updated: 17 September 2024 @@ -6126,7 +6553,7 @@

Available Emplacement Points

Init {{init}}; Senses {{#perception-notes}}{{perception-notes}}; {{/perception-notes}}Perception {{perception}}
{{#language}} Languages {{language}} {{/language}}
- Defenses Ref {{ref}} (flat-footed {{flatref}}), Fort {{fort}}{{#will}}, Will {{will}}{{/will}}{{#vehicle-armor}}; +{{vehicle-armor}} Armor {{/vehicle-armor}}{{#defensenotes}}; {{defensenotes}}{{/defensenotes}}
+ Defenses Ref {{ref}} (flat‑footed {{flatref}}), Fort {{fort}}{{#will}}, Will {{will}}{{/will}}{{#vehicle-armor}}; +{{vehicle-armor}} Armor {{/vehicle-armor}}{{#defensenotes}}; {{defensenotes}}{{/defensenotes}}
HP {{hp}}; CT Penalty {{ct}}{{#dr}}; DR {{dr}}{{/dr}}{{#sr}}; SR {{sr}}{{/sr}}; Threshold {{dt}}
@@ -6187,7 +6614,7 @@

Available Emplacement Points

Flatfooted
Flat‑footed
Fortitude
Flatfooted
Flat‑footed
+
{{name}}
- Ref {{ref}} (flat-footed {{flatref}}), Fort {{fort}}{{#will}}, Will {{will}}{{/will}}
+ Ref {{ref}} (flat‑footed {{flatref}}), Fort {{fort}}{{#will}}, Will {{will}}{{/will}}
HP {{hp}}; CT Penalty {{ct}}; Threshold {{dt}}{{#dr}}; DR {{dr}}{{/dr}}{{#sr}}; SR {{sr}}{{/sr}}
{{#force}}FP {{force}} ({{forcedice}}){{/force}}; {{#secondwindmax}}Second Wind {{secondwindcount}}/{{secondwindmax}} for {{hiddensecondwind}} HP{{/secondwindmax}}
diff --git a/Star Wars Saga Edition/sheet.json b/Star Wars Saga Edition/sheet.json index 48e9eabe2d9..9340c272456 100644 --- a/Star Wars Saga Edition/sheet.json +++ b/Star Wars Saga Edition/sheet.json @@ -4,7 +4,7 @@ "authors": "Alicia G (original author), Stephen C (maintainer), Iain J (contributor)", "roll20userid": "2889,436906,2196054", "preview": "StarWarsSagaEditionpreview.png", - "instructions": "# Character Sheet\r Inspired by the Saga Edition sheet by Mad Irishman Productions. This sheet calculates statistics using the rules as written. Not all supplement rules may have been taken into account. If you find a mistake or wish to request a feature, please contact the authors. \r\r\r **Last Updated** 14 September, 2024\r\r\r View the wiki for the change log and more information on the sheet, including complete list of attributes and rolls: https://wiki.roll20.net/Star_Wars_Saga_Edition_Character_Sheet", + "instructions": "# Character Sheet\r Inspired by the Saga Edition sheet by Mad Irishman Productions. This sheet calculates statistics using the rules as written. Not all supplement rules may have been taken into account. If you find a mistake or wish to request a feature, please contact the authors. \r\r\r **Last Updated** 17 September, 2024\r\r\r View the wiki for the change log and more information on the sheet, including complete list of attributes and rolls: https://wiki.roll20.net/Star_Wars_Saga_Edition_Character_Sheet", "useroptions": [ { "attribute": "yellow-logo", diff --git a/Star Wars Saga Edition/translation.json b/Star Wars Saga Edition/translation.json index 5bcc614cf0d..41b9a1cf0cc 100644 --- a/Star Wars Saga Edition/translation.json +++ b/Star Wars Saga Edition/translation.json @@ -20,6 +20,15 @@ "size-tiny":"Tiny", "size-diminutive":"Diminutive", "size-fine":"Fine", +"type":"Type", +"untyped":"Untyped", +"penalty":"Penalty", +"circumstance":"Circumstance", +"competence":"Competence", +"dodge":"Dodge", +"insight":"Insight", +"morale":"Morale", +"rage":"Rage", "attributes":"Attributes", "strength":"Strength", "dexterity":"Dexterity", @@ -41,7 +50,7 @@ "defense":"Defense", "misc":"Misc", "reflex":"Reflex", -"flatfooted":"Flatfooted", +"flat-footed":"Flat‑footed", "fortitude":"Fortitude", "will":"Will", "ignore_ct":"Damage Threshold ignores CT",