From a32da77f3e760387cd886e71bdfc2bf3241cd5bb Mon Sep 17 00:00:00 2001 From: johnmoney-code <64189467+johnmoney-code@users.noreply.github.com> Date: Sat, 3 Apr 2021 00:12:46 -0700 Subject: [PATCH] another weapons template overhaul Added a Carried button. If it's not checked, its weight doesn't count against carry limits. Spray now counts into damage rolls, and will announce a jam on a natural 9. What we don't have: working collapse buttons. (you'll know what those are if they ever get to work) [we have the skeleton of that system though] --- Only-War-Enhanced/OnlyWarEnhanced.css | 61 +++++++++++++++------ Only-War-Enhanced/OnlyWarEnhanced.html | 74 +++++++++++++++----------- 2 files changed, 90 insertions(+), 45 deletions(-) diff --git a/Only-War-Enhanced/OnlyWarEnhanced.css b/Only-War-Enhanced/OnlyWarEnhanced.css index 7662acaae1..c32db7b95a 100644 --- a/Only-War-Enhanced/OnlyWarEnhanced.css +++ b/Only-War-Enhanced/OnlyWarEnhanced.css @@ -107,7 +107,7 @@ ______________________________ start of multipurpose or special-use classes such .sheet-full_width_49px { width: calc(100% - 49px); } .sheet-full_width_30px { width: calc(100% - 30px); } -/* TODO: Add the visibility toggles for collapsible weapon blocks */ + .sheet-margin_adjust { margin-top: -23px; margin-bottom: 4px; text-align: right; } .sheet-margin_adjust2 { margin-top: -22px; margin-bottom: 4px; margin-left: -25px; text-align: right; } .sheet-margin_adjust_wep { margin-top: -19px; margin-bottom: 2px; margin-left: 3px; text-align: right; } @@ -120,6 +120,30 @@ ______________________________ start of multipurpose or special-use classes such .sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_block { display: block; } .sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_toggle { display: none; } +.sheet-collapsible_entity_toggle { display: block; } +.sheet-collapsible_entity_block { display: none; } +.sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_block, +.sheet-collapsible_entity_switch_weapon[value='1'] ~ .sheet-collapsible_entity_block { display: block; } +.sheet-collapsible_entity_switch:checked ~ .sheet-collapsible_entity_toggle, +.sheet-collapsible_entity_switch_weapon[value='1'] ~ .sheet-collapsible_entity_toggle { display: none; } + +.sheet-collapsible_entity_toggle_min { display: block; } +.sheet-collapsible_entity_block_min { display: none; } +.sheet-collapsible_entity_switch_min:checked ~ .sheet-collapsible_entity_block_half, +.sheet-collapsible_entity_switch_weapon[value='2'] ~ .sheet-collapsible_entity_block_half { display: block; } +.sheet-collapsible_entity_switch_min:checked ~ .sheet-collapsible_entity_toggle_half, +.sheet-collapsible_entity_switch_weapon[value='2'] ~ .sheet-collapsible_entity_toggle_half { display: none; } + +.sheet-collapsible_entity_toggle_half { display: block; } +.sheet-collapsible_entity_block_half { display: none; } +.sheet-collapsible_entity_switch_half:checked ~ .sheet-collapsible_entity_block_min, +.sheet-collapsible_entity_switch_weapon[value='3'] ~ .sheet-collapsible_entity_block_min { display: block; } +.sheet-collapsible_entity_switch_half:checked ~ .sheet-collapsible_entity_toggle_min, +.sheet-collapsible_entity_switch_weapon[value='3'] ~ .sheet-collapsible_entity_toggle_min { display: none; } + + + + .sheet-hidden { display: none; } .sheet-input_background { @@ -716,11 +740,12 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_gs_a4 { grid-area: rwa4; color: white; font-size: 12px; width: 55px!important;} .sheet-equipment_ranged_weapons_gs_a5 { grid-area: rwa5; color: white; font-size: 12px; width: 45px!important;} -/*TODO: add a subgrid right here with 2 cells - for the minmax*/ -.sheet-equipment_ranged_weapons_gs_b1 { grid-area: rwb1; color: white; font-size: 12px; padding: 0px 2px; } -.sheet-equipment_ranged_weapons_gs_b2 { grid-area: rwb2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_b1 { grid-area: rwb1; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} +.sheet-equipment_ranged_weapons_gs_b2 { grid-area: rwb2; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} .sheet-equipment_ranged_weapons_gs_b3 { grid-area: rwb3; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_b4 { grid-area: rwb4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_b5 { grid-area: rwb5; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_ranged_weapons_gs_b6 { grid-area: rwb6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_ranged_weapons_gs_c1 { grid-area: rwc1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_c2 { grid-area: rwc2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } @@ -750,6 +775,8 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_gs_e8 { grid-area: rwe8; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_ranged_weapons_gs_e9 { grid-area: rwe9; color: white; font-size: 30px; margin-top: -27px; text-align: center; height: 15px; } .sheet-equipment_ranged_weapons_gs_e10 { grid-area: rwe10; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_ranged_weapons_gs_e11 { grid-area: rwe11; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_ranged_weapons_gs_e12 { grid-area: rwe12; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_f1 { grid-area: rwf1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_ranged_weapons_gs_f2 { grid-area: rwf2; color: white; font-size: 12px; padding: 0px 2px; } @@ -780,9 +807,9 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_ranged_weapons_grid2 { align-items: center; display: grid; - grid-template-columns: auto auto auto auto auto auto auto auto auto auto; + grid-template-columns: 25px 25px auto auto auto auto auto auto auto auto; grid-template-areas: - 'rwb1 rwb2 rwb2 rwb2 rwb2 rwb2 rwb3 rwb4 rwb4 rwb4'; + 'rwb1 rwb2 rwb3 rwb4 rwb4 rwb4 rwb4 rwb5 rwb6 rwb6'; } @@ -804,13 +831,13 @@ ______________________________ start of equipment tab __________________________ 'rwd1 rwd2 rwd3 rwd4 rwd5 rwd6 rwd7 rwd8'; } -/* gs_e RoF, Magazine */ +/* gs_e RoF, Magazine, Carry? */ .sheet-equipment_ranged_weapons_grid5 { align-items: center; display: grid; - grid-template-columns: auto 10% 4% 10% 4% 10% 6px auto 13% 4% 13%; /* nonstandard */ + grid-template-columns: auto 8% 3% 8% 3% 8% auto 10% 3% 10% auto 20px; /* nonstandard */ grid-template-areas: - 'rwe1 rwe2 rwe3 rwe4 rwe5 rwe6 . rwe7 rwe8 rwe9 rwe10'; + 'rwe1 rwe2 rwe3 rwe4 rwe5 rwe6 rwe7 rwe8 rwe9 rwe10 rwe11 rwe12'; } /* gs_f Trained?, HitMod, Reload, Weight */ @@ -837,10 +864,12 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_melee_weapons_gs_a4 { grid-area: mwa4; color: white; font-size: 12px; width: 55px!important;} .sheet-equipment_melee_weapons_gs_a5 { grid-area: mwa5; color: white; font-size: 12px; width: 45px!important;} -.sheet-equipment_melee_weapons_gs_b1 { grid-area: mwb1; color: white; font-size: 12px; padding: 0px 2px; } -.sheet-equipment_melee_weapons_gs_b2 { grid-area: mwb2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_b1 { grid-area: mwb1; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} +.sheet-equipment_melee_weapons_gs_b2 { grid-area: mwb2; align-items: center margin-bottom: 0px; font-size: 14px; padding: 0px 2px;} .sheet-equipment_melee_weapons_gs_b3 { grid-area: mwb3; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_b4 { grid-area: mwb4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_b5 { grid-area: mwb5; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_melee_weapons_gs_b6 { grid-area: mwb6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_melee_weapons_gs_c1 { grid-area: mwc1; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_c2 { grid-area: mwc2; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } @@ -864,6 +893,8 @@ ______________________________ start of equipment tab __________________________ .sheet-equipment_melee_weapons_gs_e4 { grid-area: mwe4; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } .sheet-equipment_melee_weapons_gs_e5 { grid-area: mwe5; color: white; font-size: 12px; padding: 0px 2px; } .sheet-equipment_melee_weapons_gs_e6 { grid-area: mwe6; color: white; font-size: 12px; border: none; border-bottom: 1px dotted white; } +.sheet-equipment_melee_weapons_gs_e7 { grid-area: mwe7; color: white; font-size: 12px; padding: 0px 2px; } +.sheet-equipment_melee_weapons_gs_e8 { grid-area: mwe8; color: white; font-size: 12px; padding: 0px 2px; } /* gs_a Range/Attack/Aim Dropdowns, Hit/Dmg Buttons*/ .sheet-equipment_melee_weapons_grid1 { @@ -880,7 +911,7 @@ ______________________________ start of equipment tab __________________________ display: grid; grid-template-columns: auto auto auto auto auto auto auto auto auto auto; grid-template-areas: - 'mwb1 mwb2 mwb2 mwb2 mwb2 mwb2 mwb2 mwb3 mwb4 mwb4'; + 'mwb1 mwb2 mwb3 mwb4 mwb4 mwb4 mwb4 mwb5 mwb6 mwb6'; } /* gs_c reach, damage, pen, type */ @@ -902,13 +933,13 @@ ______________________________ start of equipment tab __________________________ } -/* gs_e trained?, hitmod, weight */ +/* gs_e trained?, hitmod, weight, carry? */ .sheet-equipment_melee_weapons_grid5 { align-items: center; display: grid; - grid-template-columns: auto 20px auto auto auto auto auto auto; + grid-template-columns: auto 20px auto auto auto auto auto 20px; grid-template-areas: - 'mwe1 mwe2 mwe3 mwe4 mwe4 mwe5 mwe6 mwe6'; + 'mwe1 mwe2 mwe3 mwe4 mwe5 mwe6 mwe7 mwe8'; } diff --git a/Only-War-Enhanced/OnlyWarEnhanced.html b/Only-War-Enhanced/OnlyWarEnhanced.html index 571873ef34..cbffa2389d 100644 --- a/Only-War-Enhanced/OnlyWarEnhanced.html +++ b/Only-War-Enhanced/OnlyWarEnhanced.html @@ -1166,15 +1166,19 @@ - +