Files
roll20-character-sheets/5eShaped/precompiled/components/macros/spells.html
T
2016-06-11 17:54:58 +02:00

31 lines
3.4 KiB
HTML

<input type="hidden" name="attr_spells_level_0_macro_var">
<input type="hidden" name="attr_spells_level_1_macro_var">
<input type="hidden" name="attr_spells_level_2_macro_var">
<input type="hidden" name="attr_spells_level_3_macro_var">
<input type="hidden" name="attr_spells_level_4_macro_var">
<input type="hidden" name="attr_spells_level_5_macro_var">
<input type="hidden" name="attr_spells_level_6_macro_var">
<input type="hidden" name="attr_spells_level_7_macro_var">
<input type="hidden" name="attr_spells_level_8_macro_var">
<input type="hidden" name="attr_spells_level_9_macro_var">
<input type="hidden" name="attr_spell_slots_macro_var" value="{{spells_text_size=@{spells_text_size}}} {{spells_level_1_uses=@{spell_slots_l1}/@{spell_slots_l1|max}}} {{spells_level_1_show=@{spells_level_1_show}}} {{spells_level_2_uses=@{spell_slots_l2}/@{spell_slots_l2|max}}} {{spells_level_2_show=@{spells_level_2_show}}}{{spells_level_3_uses=@{spell_slots_l3}/@{spell_slots_l3|max}}} {{spells_level_3_show=@{spells_level_3_show}}} {{spells_level_4_uses=@{spell_slots_l4}/@{spell_slots_l4|max}}} {{spells_level_4_show=@{spells_level_4_show}}} {{spells_level_5_uses=@{spell_slots_l5}/@{spell_slots_l5|max}}} {{spells_level_5_show=@{spells_level_5_show}}} {{spells_level_6_uses=@{spell_slots_l6}/@{spell_slots_l6|max}}} {{spells_level_6_show=@{spells_level_6_show}}} {{spells_level_7_uses=@{spell_slots_l7}/@{spell_slots_l7|max}}} {{spells_level_7_show=@{spells_level_7_show}}} {{spells_level_8_uses=@{spell_slots_l8}/@{spell_slots_l8|max}}} {{spells_level_8_show=@{spells_level_8_show}}} {{spells_level_9_uses=@{spell_slots_l9}/@{spell_slots_l9|max}}} {{spells_level_9_show=@{spells_level_9_show}}}">
<input type="hidden" name="attr_spells_macro_var" value="/w @{character_name} &{template:5e-shaped} {{character_name=@{character_name}}} @{show_character_name} {{title=<span data-i18n=SPELLS>Spells</span>}} {{spell_list=1}} {{cantrips=@{spells_level_0_macro_var}}} @{spell_slots_macro_var} {{spells_level_1=@{spells_level_1_macro_var}}} {{spells_level_2=@{spells_level_2_macro_var}}} {{spells_level_3=@{spells_level_3_macro_var}}} {{spells_level_4=@{spells_level_4_macro_var}}} {{spells_level_5=@{spells_level_5_macro_var}}} {{spells_level_6=@{spells_level_6_macro_var}}} {{spells_level_7=@{spells_level_7_macro_var}}} {{spells_level_8=@{spells_level_8_macro_var}}} {{spells_level_9=@{spells_level_9_macro_var}}}">
<div class="shaped-row center">
<div class="col-40">
<select name="attr_spells_text_size">
<option value="" data-i18n="NORMAL">Normal</option>
<option value="big" data-i18n="BIG">Big</option>
</select>
<div class="small-label" data-i18n="TEXT_SIZE"></div>
</div>
</div>
<div class="mar-t-sm"></div>
<span data-i18n="SHOW_UNPREPARED_SPELLS"></span><input type="checkbox" name="attr_spells_show_unprepared" checked>
<div class="mar-t-sm"></div>
<span checked data-i18n="SHOW_SPELL_LEVEL_IF_ALL_SLOTS_ARE_USED"></span><input type="checkbox" name="attr_spells_show_spell_level_if_all_slots_are_used">
<div class="mar-t-sm"></div>
<button type="roll" name="roll_shaped_spells" class="visible-button" value="@{spells_macro_var}" data-i18n="SPELLS"></button>
<div class="mar-t-sm"></div>
<button type="roll" name="roll_shaped_spell_slots" class="visible-button" value="/w @{character_name} &{template:5e-shaped} {{character_name=@{character_name}}} @{show_character_name} {{title=<span data-i18n=SPELLS>Spells</span>}} {{spell_list=1}} @{spell_slots_macro_var}" data-i18n="SPELL_SLOTS"></button>