Skip to content

Commit

Permalink
Merge pull request #13782 from LilLiteralist/master
Browse files Browse the repository at this point in the history
[Star Wars Saga Edition] Minor changes
  • Loading branch information
NorWhal authored Feb 18, 2025
2 parents 58ec91d + 364e57e commit 4ff58ef
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions Star Wars Saga Edition/StarWarsSagaEdition.html
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ <h4 data-i18n="size">Size</h4>

<!-- Bonuses and penalties -->
<div>
<input type="checkbox" class="hidden sect-show" name="attr_equipment-section-show" value="1" checked="false" id="show-bonuses" />
<input type="checkbox" class="hidden sect-show" name="attr_bonuses-section-show" value="1" checked="false" id="show-bonuses" />
<label for="show-bonuses" class="textHead clickable" title="Show/Hide Equipment Section">
Bonuses and Penalties
</label>
Expand Down Expand Up @@ -2653,7 +2653,7 @@ <h4 data-i18n="status">Status</h4>
<!-- Fourth row of grid -->
<div style="grid-column:2/7;">
<input type="checkbox" class="sect-show hidden" value="1" name="attr_power-formula-show">
<textarea class="sect" name="attr_power-formula" placeholder="Power formula" style="width:100%; resize:vertical; box-sizing: border-box;" title="See the Settings tab for a link to the wiki, where you can find another link to a document containing macros">&{template:sagadefault} {{header=[Name]}} {{subheader=[Description]}} {{Time:=[Time]]}} {{Target:=[Target]}} {{skillname=Use the Force}} {{skillcheck=[[1d20+@{UsetheForceformula}+?{Other Modifiers|0}[Other]]]}} {{less15=Nothing happens!}} {{15=...}} {{20=...}}{{more25=...}} {{?{Force Point to ...|No, **No Force Point Used**|Yes, **Force Point Used:**=...} }}</textarea>
<textarea class="sect" name="attr_power-formula" placeholder="Power formula" style="width:100%; resize:vertical; box-sizing: border-box;" title="See the Settings tab for a link to the wiki, where you can find another link to a document containing macros">&{template:sagadefault} {{header=[Name]}} {{subheader=[Description]}} {{type=power}} {{Time:=[Time]]}} {{Target:=[Target]}} {{skillname=Use the Force}} {{skillcheck=[[1d20+@{UsetheForceformula}+?{Other Modifiers|0}[Other]]]}} {{less15=Nothing happens!}} {{15=...}} {{20=...}}{{more25=...}} {{?{Force Point to ...|No, **No Force Point Used**|Yes, **Force Point Used:**=...} }}</textarea>
</div>
</div>
</fieldset>
Expand Down Expand Up @@ -8617,4 +8617,24 @@ <h4>Available Emplacement Points</h4>
});
});
};
// ====== Settings Sheet ====== \\
on("change:show-Athletics", function() {
console.log("Changing stuff");
getAttrs(["show-Athletics"], function(values) {
if(values['show-Athletics'] == 1) {
setAttrs({
"show-Climb": 0,
"show-Jump": 0,
"show-Swim": 0
});
}
else {
setAttrs({
"show-Climb": 1,
"show-Jump": 1,
"show-Swim": 1
});
}
});
});
</script>

0 comments on commit 4ff58ef

Please sign in to comment.