Browse Source

Modify Roll20 sheet for spell text area

master
Brandon Cornejo 2 years ago
parent
commit
5c02d8f9fa
  1. 7
      roll20/char_sheet.css
  2. 14
      roll20/char_sheet.html

7
roll20/char_sheet.css

@ -357,3 +357,10 @@ div.sheet-npc { display: none; }
/*input.sheet-block-switch { display: none; };*/
input.sheet-block-switch:checked ~ div.sheet-main { display: none; }
input.sheet-block-switch:checked ~ div.sheet-npc { display: grid; }
textarea.sheet-txtarea {
height: 24px;
margin: 0;
padding: 0;
text-align: left;
}

14
roll20/char_sheet.html

@ -306,12 +306,24 @@
<h3>Spellbook</h3>
</div>
<span class="grid-span-1-2">Spell Name</span><span>Level</span><span class="grid-span-4-2">Effect</span><span>Damage</span><span></span><span></span><span></span>
<!-- DEBUG --
<br/>
<input class="sheet-name-input grid-span-1-2" type="text" name="attr_spell_name">
<div><input class="sheet-stat-input" type="text" name="attr_spell_level"></div>
<div class="grid-span-4-2">
<input class="sheet-stat-input" type="text" name="attr_spell_effect">
</div>
<div><input class="sheet-stat-input" type="text" name="attr_spell_damage"></div>
<div><button class="sheet-roll-button" type="roll" value="&{template:acks} {{name=@{spell_name}}} {{subheader=Level @{spell_level} Arcane Spell}} {{desc=@{spell_effect}}} {{damage=[[@{spell_damage}]]}}" name="roll_Spell"></button></div>
-- /DEBUG -->
</div>
<fieldset class="repeating_spells">
<div class="spells-grid">
<input class="sheet-name-input grid-span-1-2" type="text" name="attr_spell_name">
<div><input class="sheet-stat-input" type="text" name="attr_spell_level"></div>
<div class="grid-span-4-2"><input class="sheet-stat-input" type="text" name="attr_spell_effect"></div>
<div class="grid-span-4-2">
<textarea class="sheet-stat-input sheet-txtarea" name="attr_spell_effect" ></textarea>
</div>
<div><input class="sheet-stat-input" type="text" name="attr_spell_damage"></div>
<div><button class="sheet-roll-button" type="roll" value="&{template:acks} {{name=@{spell_name}}} {{subheader=Level @{spell_level} Arcane Spell}} {{desc=@{spell_effect}}} {{damage=[[@{spell_damage}]]}}" name="roll_Spell"></button></div>
</div>

Loading…
Cancel
Save