Character Vault
Any Concept / Any System
Compendium
Your System Come To Life
Roll20 for Android
Streamlined for your Tablet
Roll20 for iPad
Streamlined for your Tablet

Personal tools

Difference between revisions of "Mage: the Ascension"

From Roll20 Wiki

Jump to: navigation, search
(wrap the code in a unformatted codeblock)
m
Line 1: Line 1:
  
Code for a Mage: the Ascension character sheet.
+
Code for a "Mage: the Ascension" character sheet.
  
 
<pre data-language="html">
 
<pre data-language="html">
Line 67: Line 67:
  
 
</pre>
 
</pre>
 +
 +
[[Category:WoD]]

Revision as of 13:57, 14 November 2020

Code for a "Mage: the Ascension" character sheet.

<div>
    <button type="action" name="act_principale" >Principale</button>
    <button type="action" name="act_abilita" >Abilità</button>
    <button type="action" name="act_equipaggiamento" >Equipaggiamento</button>
</div>
<input type='hidden' class='sheet-tabstoggle' name='attr_sheetTab'  value='character'  />

<div class='sheet-principale'>
    <h2>Character</h2>
    <span>character Stuff Goes here </span>
</div>
<div class='sheet-abilita'>
    <h2>Abilità</h2>
    <span>Elenco Abilità</span> 
	<div class="dots">
  <input type="hidden" name="attr_strength" class="dot" value="1" />
  <button type="action" name="act_strength_1" class="dot">
    <span class="checked"></span>
  </button>
  <button type="action" name="act_strength_2" class="dot gt-1">
    <span class="checked"></span>
  </button>
  <button type="action" name="act_strength_3" class="dot gt-1 gt-2">
    <span class="checked"></span>
  </button>
  <button type="action" name="act_strength_4" class="dot gt-1 gt-2 gt-3">
    <span class="checked"></span>
  </button>
  <button type="action" name="act_strength_5" class="dot gt-1 gt-2 gt-3 gt-4">
    <span class="checked"></span>
  </button>
</div>


</div>
<div class='sheet-equipaggiamento'>
    <h2>Config/Settings</h2>
    <span>Sheet Config/Settings goes here</span> 
</div>

<!--Script Tabs-->
<script type="text/worker">
    const buttonlist = ["principale","abilita","equipaggiamento"];
    buttonlist.forEach(button => {
        on(`clicked:${button}`, function() {
            setAttrs({
                sheetTab: button
            });
        });
    });
</script>
<!-- Script RadioButton -->
<script type="text/worker">
  const strengthValues = ["1","2","3","4","5"];
  strengthValues.forEach(function(value) {
    on(`clicked:strength_${value}`, function() {
      setAttrs({
        "strength": value
      });
    });
  });
</script>