Skip to content

Commit

Permalink
update gurps
Browse files Browse the repository at this point in the history
**BUGFIX:** Languages were not totaling correctly during a load of a new version of the character sheet. This is has been fixed, reported by Lloyd J.
**BUGFIX:** Possible issue with Spell Rolls. There's a field named `spell_roll_max_nine` that is no longer needed. This field was completely removed now, so if you had issues with Spells rolls, it should be fixed now. Reported by user on Discord channel.
**NEW:** Initial development of selecting a customized sheet, such as a vehicle sheet.
  • Loading branch information
MadCoder253 committed Oct 23, 2023
1 parent 2a750ae commit 99c0757
Show file tree
Hide file tree
Showing 3 changed files with 242 additions and 23 deletions.
86 changes: 68 additions & 18 deletions GURPS/gurps.css
Original file line number Diff line number Diff line change
Expand Up @@ -788,22 +788,6 @@ input {
}

/* ===== CUSTOM TABS ===== */
input.sheet-tab1:not(:checked) ~ .sheet-tab1,
input.sheet-tab-misc:not(:checked) ~ .sheet-tab-misc,
input.sheet-tab2:not(:checked) ~ .sheet-tab2,
input.sheet-tab3:not(:checked) ~ .sheet-tab3,
input.sheet-tab4:not(:checked) ~ .sheet-tab4,
input.sheet-tab5:not(:checked) ~ .sheet-tab5,
input.sheet-tab6:not(:checked) ~ .sheet-tab6,
input.sheet-tab7:not(:checked) ~ .sheet-tab7,
input.sheet-tab8:not(:checked) ~ .sheet-tab8,
input.sheet-tab0:not(:checked) ~ .sheet-tab0 {
display: none !important;
}

.sheet-tab7 {
background: var(--row-bg);
}

input.sheet-tab {
position: relative;
Expand All @@ -813,11 +797,13 @@ input.sheet-tab {
opacity: 0;
z-index: 1;
border: none;
display: none;
}


input.sheet-tab + span {
position: relative;
display: inline-block !important;
display: none;
min-width: 70px;
height: 23px;
margin: 0 0 -3px -80px;
Expand All @@ -835,6 +821,47 @@ input.sheet-tab + span {
line-height: 23px;
}

/* show/hide tabs based on sheet type */
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="2"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="3"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="4"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="5"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="6"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="7"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="8"],
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="0"] {
display: inline;
}

input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="2"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="1a"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="3"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="4"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="5"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="6"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="7"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="8"] + span,
input[name="attr_sheet_type"][value="character"] ~ input.sheet-tab[value="0"] + span {
display: inline-block !important;
}

input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"],
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"],
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"],
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="0"] {
display: inline;
}

input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="chase"] + span,
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="7"] + span,
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="8"] + span,
input[name="attr_sheet_type"][value="chase"] ~ input.sheet-tab[value="0"] + span {
display: inline-block !important;
}

input.sheet-tab:checked + span {
color: #555;
border: 1px solid #a8a8a8;
Expand All @@ -851,6 +878,27 @@ input.sheet-tab0 + span {
margin-bottom: 5px;
}

.sheet-tab7 {
background: var(--row-bg);
}

/* show/hide selected tabs */

input.sheet-tab1:not(:checked) ~ .sheet-tab1,
input.sheet-tab-misc:not(:checked) ~ .sheet-tab-misc,
input.sheet-tab2:not(:checked) ~ .sheet-tab2,
input.sheet-tab3:not(:checked) ~ .sheet-tab3,
input.sheet-tab4:not(:checked) ~ .sheet-tab4,
input.sheet-tab5:not(:checked) ~ .sheet-tab5,
input.sheet-tab6:not(:checked) ~ .sheet-tab6,
input.sheet-tab7:not(:checked) ~ .sheet-tab7,
input.sheet-tab8:not(:checked) ~ .sheet-tab8,
input.sheet-tab-chase:not(:checked) ~ .sheet-tab-chase,
input.sheet-tab0:not(:checked) ~ .sheet-tab0 {
display: none !important;
}



/* ===== SUB ROWS ===== */
.sheet-sub-row {
Expand Down Expand Up @@ -5835,4 +5883,6 @@ input[name="attr_import_confirm_delete_tables"][value="0"] ~ button[name="act_im

input[name="attr_import_confirm_delete_tables"][value="1"] ~ button[name="act_import_delete_tables"] {
background-color: var(--highlight-text);
}
}

/* --- CHASE CONTROL SHEET --- */
151 changes: 147 additions & 4 deletions GURPS/gurps.html
Original file line number Diff line number Diff line change
Expand Up @@ -4328,11 +4328,14 @@ <h4>
<!-- current version notes: 2.9.19 -->
<ul>
<li>
<b>BUGFIX:</b> Languages were not totalling correctly during a load of a new version of the character sheet. This is has been fixed, reported by Lloyd J.
<b>BUGFIX:</b> Languages were not totaling correctly during a load of a new version of the character sheet. This is has been fixed, reported by Lloyd J.
</li>
<li>
<b>BUGFIX:</b> Possible issue with Spell Rolls. There's a field named `spell_roll_max_nine` that is no longer needed. This field was completely removed now, so if you had issues with Spells rolls, it should be fixed now. Reported by user on Discord channel.
</li>
<li>
<b>NEW:</b> Initial development of selecting a customized sheet, such as a vehicle sheet.
</li>
</ul>

<label class="check"><input type="checkbox" name="attr_announcements_hide" value="1">&nbsp;<b><span data-i18n="hide-until-next-update">Hide until next update</span></b></label>
Expand All @@ -4343,19 +4346,20 @@ <h4>


<!-- ===== ===== ===== ===== TABS ===== ===== ===== ===== -->
<input type="hidden" name="attr_sheet_type" value="character" />
<input type="radio" name="attr_tab" value="1" class="tab tab1" checked="checked" /><span data-i18n="tab-general">General</span>
<input type="radio" name="attr_tab" value="2" class="tab tab2" title="Languages, Advantages, Disadvantages, and Cultural Familiarities" /><span data-i18n="tab-traits">Traits</span>
<input type="radio" name="attr_tab" value="1a" class="tab tab-misc" title="Miscellaneous box, Bio Notes, General Notes" /><span data-i18n="tab-bio-misc">Bio\Misc</span>
<input type="radio" name="attr_tab" value="3" class="tab tab3" title="Skills and Techniques" /><span data-i18n="tab-skills">Skills</span>
<input type="radio" name="attr_tab" value="4" class="tab tab4" /><span data-i18n="tab-combat">Combat</span>
<input type="radio" name="attr_tab" value="5" class="tab tab5" /><span data-i18n="tab-inventory">Inventory</span>
<input type="radio" name="attr_tab" value="6" class="tab tab6" /><span data-i18n="tab-grimoire">Grimoire</span>
<input type="radio" name="attr_tab" value="chase" class="tab tab-chase" /><span data-i18n="tab-chase">Chases</span>
<input type="radio" name="attr_tab" value="7" class="tab tab7" /><span data-i18n="tab-updates">Updates</span>
<input type="radio" name="attr_tab" value="8" class="tab tab8" title="Help" /><span data-i18n="tab-help">Help</span>
<input type="radio" name="attr_tab" value="0" class="tab tab0" title="Sheet Options" /><span>y</span>
<div class="tab-br"></div>


<!-- ===== ===== ===== ===== GENERAL TAB ===== ===== ===== ===== -->
<div class="tab1">

Expand Down Expand Up @@ -7826,6 +7830,9 @@ <h4>
</div>
</div> <!-- .header -->
<div class="row row-native-language">
<div class="cell col-button">

</div>
<div class="cell col0 label">
<!-- idkey is the key used by either GCA or GCS. Can be used to update and advantage instead of just adding -->
<input type="hidden" name="attr_native_language_idkey" />
Expand Down Expand Up @@ -15710,6 +15717,111 @@ <h4 class="spacer">&nbsp;</h4>
</div> <!-- .box .spells -->
</div> <!-- .tab6 -->

<!-- ===== ===== ===== ===== CHASE CONTROL SHEET TAB ===== ===== ===== ===== -->
<div class="tab-chase">

<div>
Under construction.
</div>

<div class="chase-grid" style="display: none;">

<div class="chase-row" data-i18n="chase-control-sheet-description">Use this sheet to help run chase scenes from GURPS Action 2 Exploits, please refer to pages 31-34.</div>

<div class="chase-row">
<div class="form-flex-grid-4-column">
<div class="item">
<label>
<span data-i18n="round-label">Round</span>:
<input type="number" name="attr_chase_round" min="1" step="1" value="1" />
</label>
</div>
<div class="item">
<label>
<span data-i18n="current-sequence-label">Current Sequence</span>
<select name="attr_chase_sequence">
<option value="quarry_chooses" selected><span data-i18n="chase-sequence-option-quarry-chooses">Quarry chooses maneuver</span></option>
<option value="pursuer_chooses"><span data-i18n="chase-sequence-option-pursuer-chooses">Pursuer chooses maneuver</span></option>
<option value="pursuer_rolls"><span data-i18n="chase-sequence-option-pursuer-rolls">Pursuer resolves all rolls</span></option>
<option value="quarry_rolls"><span data-i18n="chase-sequence-option-quarry-rolls">Quarry resolves all rolls</span></option>
<option value="quick_content"><span data-i18n="chase-sequence-option-quick-content">Quick Contest of Chase Rolls</span></option>
<option value="adjust_band"><span data-i18n="chase-sequence-option-range-band">Adjust range band</span></option>
<option value="next_round"><span data-i18n="chase-sequence-option-next-round">Proceed to next round</span></option>
</select>
</label>
</div>
</div>
</div>

<div class="chase-row">
<button type="action" name="act_chase_get_result" class="btn">
<span data-i18n="get-results-label">Get Quick Contest Results</span>
</button>
</div>

<div class="chase-row">
<input type="hidden" name="attr_chase_content_result" />
<div>Place the results of quick content here using input value @{chase_content_result}</div>
</div>

<div class="chase-row">
<div class="form-flex-grid-4-column">
<div class="item">
<label>
<span data-i18n="range-band-label">Range Band</span>:
<select name="attr_chase_range_band">
<option value="close"><span data-i18n="chase-range-band-option-close">Close (0 to 5 hexes)</span></option>
<option value="short"><span data-i18n="chase-range-band-option-short">Short (6 to 20 hexes)</span></option>
<option value="medium" selected><span data-i18n="chase-range-band-option-medium">Medium (21 to 100 hexes)</span></option>
<option value="long"><span data-i18n="chase-range-band-option-long">Long (101 to 500 hexes)</span></option>
<option value="extreme"><span data-i18n="chase-range-band-option-extreme">Extreme (501+ hexes)</span></option>
</select>
</label>
</div>
<div class="item">
<div>
Range Penalty: -3 to -6 (Default is -3 or GM discretion for attack rolls)<br />
CAn talk to enemey, or toss things at them.
</div>
</div>
</div>
</div>

<div class="chase-row">
<div>
<h2><span data-i18n="quarry-label">Quarry</span></h2>
</div>
</div>

<div class="chase-row">
<div class="form-flex-grid-4-column">
<div class="item">
<label>
<span data-i18n="maneuver-label">Maneuver</span>:
<select name="attr_chase_quarry_maneuver">
<option value="attack"><span data-i18n="chase-maneuver-attack">Attack</span></option>
<option value="short"><span data-i18n="chase_range_band_option_short">Short (6 to 20 hexes)</span></option>
</select>
</label>
</div>
<div class="item">
<label>
<span data-i18n="chase-modifier-label">Chase Modifier</span>:
<input type="number" name="attr_chase_modifier" step="1" value="0" ?>
</label>
</div>
<div class="item">
<label>
<span data-i18n="chase-made-by-label">Chase Roll made by</span>:
<input type="number" name="attr_chase_quarry_made_by" step="1" value="0" ?>
</label>
</div>
</div>
</div>

</div>
</div>

<!-- ===== ===== ===== ===== Revision History TAB ===== ===== ===== ===== -->
<div class="tab7">

Expand Down Expand Up @@ -15744,11 +15856,14 @@ <h4>Version: <span name="attr_announcement_version"></span></h4>
<!-- current version notes: 2.9.19 -->
<ul>
<li>
<b>BUGFIX:</b> Languages were not totalling correctly during a load of a new version of the character sheet. This is has been fixed, reported by Lloyd J.
<b>BUGFIX:</b> Languages were not totaling correctly during a load of a new version of the character sheet. This is has been fixed, reported by Lloyd J.
</li>
<li>
<b>BUGFIX:</b> Possible issue with Spell Rolls. There's a field named `spell_roll_max_nine` that is no longer needed. This field was completely removed now, so if you had issues with Spells rolls, it should be fixed now. Reported by user on Discord channel.
</li>
<li>
<b>NEW:</b> Initial development of selecting a customized sheet, such as a vehicle sheet.
</li>
</ul>


Expand Down Expand Up @@ -17184,6 +17299,34 @@ <h4>Roll Template for Skill Rolls</h4>

<div class="option-column">

<div class="option-container">

<h4>
<span data-i18n="sheet-type-label">Sheet Type</span>
</h4>

<div>
<input type="radio" name="attr_sheet_type" value="character" checked="checked" />
<span class="popup">
<span data-i18n="standard-character-sheet-label">Standard Character Sheet</span>
</span>
<span class="tooltip">
<span data-i18n="standard-character-sheet-tooltip">The standard character sheet will display the following tabs: General, Traits, Bio\\Misc, Skills, Combat, Inventory, Grimoire, Updates, Help, and Options Icon.</span>
</span>
</div>

<div>
<input type="radio" name="attr_sheet_type" value="chase" />
<span class="popup">
<span data-i18n="chase-sheet-label">Chase Sheet</span>
</span>
<span class="tooltip">
<span data-i18n="chase-sheet-tooltip">A custom control sheet for managing chases scenes using the Rules from GURPS Action 2 Exploits, pages 31-39.</span>
</span>
</div>

</div><!-- end critical roll options -->

<div class="option-container">

<h4>
Expand Down Expand Up @@ -17396,7 +17539,7 @@ <h4>
</span>
</div>
<div>
<input type="radio" name="attr_point_summary_layout" value="1" checked="checked" />
<input type="radio" name="attr_point_summary_layout" value="1" />
<span class="popup">
<span data-i18n="abbreviation-gurps-character-assistant-label">GCA4</span>
</span>
Expand Down
28 changes: 27 additions & 1 deletion GURPS/translation.json
Original file line number Diff line number Diff line change
Expand Up @@ -429,6 +429,7 @@
"tab-combat": "Combat",
"tab-inventory": "Inventory",
"tab-grimoire": "Grimoire",
"tab-chase": "Chase",
"tab-updates": "Updates",
"tab-help": "Help",
"gear-tab-label": "Gear Tab",
Expand Down Expand Up @@ -1162,6 +1163,11 @@
"import-label": "Import GCA4",
"import-json-label": "Import",
"critical-roll-options-label": "Critical Roll Options",
"sheet-type-label": "Sheet Type",
"standard-character-sheet-label": "Standard Character Sheet",
"standard-character-sheet-tooltip": "The standard character sheet will display the following tabs: General, Traits, Bio\\Misc, Skills, Combat, Inventory, Grimoire, Updates, Help, and Options Icon.",
"chase-sheet-label": "Chase Sheet",
"chase-sheet-tooltip": "A custom control sheet for managing chases scenes using the Rules from GURPS Action 2 Exploits, pages 31-39. If selected the following tabs will display: Chase, Help, and Options Icon",
"user-rules-as-written-label": "Use rules as written",
"critical-miss-notes": "Roll on the appropriate Critical Miss Table (B556).",
"only-on-3-or-4-label": "Only on a 3 or 4",
Expand Down Expand Up @@ -1371,5 +1377,25 @@
"getting-started-label": "Getting Started",
"display-modifier-summary-in-chat-label": "Display Roll Modifier Summary in Chat Window",
"display-modifier-summary-in-chat-tooltip": "If checked, the summary of all the modifiers for a roll will be display in the chat window.",
"spell-summary-label": "Spell Summary"
"spell-summary-label": "Spell Summary",
"chase-control-sheet-description": "Use this sheet to help run chase scenes from GURPS Action 2 Exploits, please refer to pages 31-34.",
"round-label": "Round",
"get-results-label": "Get Results",
"current-sequence-label": "Current Sequence",
"range-band-label": "Range Band",
"chase-sequence-option-quarry-chooses": "Quarry chooses maneuver",
"chase-sequence-option-pursuer-chooses": "Pursuer chooses maneuver",
"chase-sequence-option-pursuer-rolls": "Pursuer resolves all rolls",
"chase-sequence-option-quarry-rolls": "Quarry resolves all rolls",
"chase-sequence-option-quick-content": "Quick Contest of Chase Rolls",
"chase-sequence-option-range-band": "Adjust range band",
"chase-sequence-option-next-round": "Proceed to next round",
"chase-range-band-option-close": "Close (0 to 5 hexes)",
"chase-range-band-option-short": "Short (6 to 20 hexes)",
"chase-range-band-option-medium": "Medium (21 to 100 hexes)",
"chase-range-band-option-long": "Long (101 to 500 hexes)",
"chase-range-band-option-extreme": "Extreme (501+ hexes)",
"quarry-label": "Quarry",
"chase-modifier-label": "Chase Modifier",
"chase-made-by-label": "Chase Roll made by"
}

0 comments on commit 99c0757

Please sign in to comment.