79 lines
1.7 KiB
HTML
79 lines
1.7 KiB
HTML
<div class="sheet-main">
|
|
|
|
<!-- Game Name, and roll toggles -->
|
|
<div class='sheet-topgrid'>
|
|
|
|
<a href="https://ibb.co/KqnVCkB"><img src="https://i.ibb.co/yy2gL1K/red-giant-logo.png" alt="red-giant-logo" border="0"></a>
|
|
|
|
|
|
<span> </span>
|
|
|
|
<input type="hidden" class="sheet-radio-roll-state" name="attr_rollstate" value="flat" />
|
|
|
|
<button type="action" name="act_roll_state_disadvantage" class="sheet-radio-roll-state sheet-radio-roll-state-disadvantage"> Dis
|
|
</button>
|
|
|
|
<span> </span>
|
|
|
|
<button type="action" name="act_roll_state_flat" class="sheet-radio-roll-state sheet-radio-roll-state-flat"> -
|
|
</button>
|
|
|
|
<span> </span>
|
|
|
|
<button type="action" name="act_roll_state_advantage" class="sheet-radio-roll-state sheet-radio-roll-state-advantage"> Adv
|
|
</button>
|
|
|
|
<span> </span>
|
|
|
|
<label class="sheet-big-label" > Roll Mod </label>
|
|
|
|
<input name="attr_roll_mod" class="sheet-stat-inputs" type="number" value="0" />
|
|
|
|
<span> </span>
|
|
|
|
<button type="action" name="act_pc" class="sheet-tabbutton" >PC</button>
|
|
<span> </span>
|
|
<button type="action" name="act_npc" class="sheet-tabbutton" >NPC</button>
|
|
|
|
|
|
</div>
|
|
|
|
<!-- Spacing fix -->
|
|
|
|
<div class="col" style="width: 100%; height: 10px;"></div>
|
|
|
|
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<script type="text/worker">
|
|
//Buttons for Tabs
|
|
const buttonlist = ["pc","npc"];
|
|
buttonlist.forEach(button => {
|
|
on(`clicked:${button}`, function() {
|
|
setAttrs({
|
|
sheetTab: button,
|
|
});
|
|
});
|
|
});
|
|
|
|
const rollStateRadioValues = ["advantage","flat","disadvantage"];
|
|
rollStateRadioValues.forEach(function(value) {
|
|
on(`clicked:roll_state_${value}`, function() {
|
|
setAttrs({
|
|
["rollstate"]: value
|
|
});
|
|
});
|
|
});
|
|
|
|
|
|
</script>
|