general charact selector; xp tooltips & styling

This commit is contained in:
Riernar
2022-01-09 19:15:24 +01:00
parent 95a855ee88
commit f1c1d5b7f9
9 changed files with 517 additions and 128 deletions
+4 -4
View File
@@ -21,20 +21,20 @@ This file is automatically generated from a template. Any change will be overwri
*/
/* Layout utilities */
div.sheet-flex-container-center {
.sheet-flex-container-center {
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
}
div.sheet-flex-container-between {
.sheet-flex-container-between {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
}
div.sheet-flex-container-left {
.sheet-flex-container-left {
display: flex;
flex-wrap: nowrap;
align-items: center;
@@ -61,7 +61,7 @@ div.sheet-artgrid {
.sheet-has-tooltip {
position: relative;
display: inline-block;
border-bottom: 2px dotted #331f1a;
border-bottom: 1px dotted #331f1a;
}
/* Tooltip itself */
+454 -101
View File
@@ -651,7 +651,23 @@ This file is automatically generated from a template. Any change will be overwri
</div>
<!-- Abilities -->
<div class='col'>
<h4 class="heading_label" data-i18n="abilities" >Abilities</h4>
<h4 class="heading_label" data-i18n="abilities" style="margin-bottom: 15px;">Abilities</h4>
<div>
<span class="has-tooltip">
<span data-i18n="characteristic" style="font-family: 'Macondo', cursive; color: #663333; font-size: 1.3em;">Characteristic</span>
<span class="tooltip">Default characteristic to use. Can be overriden per ability.</span>
</span>
<select class="select_1" name="attr_global_Ability_CharacName">
<option value="Intelligence" data-i18n="intelligence" >Intelligence</option>
<option value="Perception" data-i18n="perception" >Perception</option>
<option value="Presence" data-i18n="presence" >Presence</option>
<option value="Communication" data-i18n="communication" >Communication</option>
<option value="Strength" data-i18n="strength" >Strength</option>
<option value="Stamina" data-i18n="stamina" >Stamina</option>
<option value="Dexterity" data-i18n="dexterity" >Dexterity</option>
<option value="Quickness" data-i18n="quickness" >Quickness</option>
</select>
</div>
<table class="table_2" style="width:400px;">
<tr>
<td><div style="width:40px;"></div></td>
@@ -664,8 +680,8 @@ This file is automatically generated from a template. Any change will be overwri
<table class="table_2" style="width:400px;">
<tr>
<td width="30px"><div class="flex-container-center">
<button type="roll" class="button simple-roll" name="roll_ability_simple" value="&{template:ability} {{name=@{character_name}}} {{label0=@{Ability_name}}} {{result0=[[ @{simple-die} + (@{Ability_Score} + @{Ability_Puissant}) [@{Ability_name}] + (@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk}) [@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}] + (@{wound_total}) [@{wounds_i18n}] + ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (?{@{circumstantial_i18n}|0}) [@{circumstances_i18n}] ]]}} {{banner=@{Ability_Speciality}}} {{label1=^{rank}}} {{result1=[[ @{Ability_Score} + @{Ability_Puissant} ]]}} {{label2=@{Ability_CharacName}}} {{result2=[[ @{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk} ]]}} {{label3=^{weakness-m}}} {{result3=[[ ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (@{wound_total}) [@{wounds_i18n}] ]]}} {{label4=^{circumstances-m}}} {{result4=[[ (?{@{circumstantial_i18n}|0}) ]]}} {{botch-button=[@{botch_i18n}!](~@{character_name}|botch)}} {{crit-button=[@{critical_i18n}!](~@{character_name}|critical)}} {{stress=}}"></button>
<button type="roll" class="button stress-roll" name="roll_ability_stress" value="&{template:ability} {{name=@{character_name}}} {{label0=@{Ability_name}}} {{result0=[[ @{stress-die} + (@{Ability_Score} + @{Ability_Puissant}) [@{Ability_name}] + (@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk}) [@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}] + (@{wound_total}) [@{wounds_i18n}] + ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (?{@{circumstantial_i18n}|0}) [@{circumstances_i18n}] ]]}} {{banner=@{Ability_Speciality}}} {{label1=^{rank}}} {{result1=[[ @{Ability_Score} + @{Ability_Puissant} ]]}} {{label2=@{Ability_CharacName}}} {{result2=[[ @{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk} ]]}} {{label3=^{weakness-m}}} {{result3=[[ ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (@{wound_total}) [@{wounds_i18n}] ]]}} {{label4=^{circumstances-m}}} {{result4=[[ (?{@{circumstantial_i18n}|0}) ]]}} {{botch-button=[@{botch_i18n}!](~@{character_name}|botch)}} {{crit-button=[@{critical_i18n}!](~@{character_name}|critical)}} {{stress=1}}"></button>
<button type="roll" class="button simple-roll" name="roll_ability_simple" value="&{template:ability} {{name=@{character_name}}} {{label0=@{Ability_name}}} {{result0=[[ @{simple-die} + (@{Ability_Score} + @{Ability_Puissant}) [@{Ability_name}] + (@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk}) [@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}] + (@{wound_total}) [@{wounds_i18n}] + ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (?{@{circumstantial_i18n}|0}) [@{circumstances_i18n}] ]]}} {{banner=@{Ability_Speciality}}} {{label1=^{rank}}} {{result1=[[ @{Ability_Score} + @{Ability_Puissant} ]]}} {{label2=@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}}} {{result2=[[ @{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk} ]]}} {{label3=^{weakness-m}}} {{result3=[[ ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (@{wound_total}) [@{wounds_i18n}] ]]}} {{label4=^{circumstances-m}}} {{result4=[[ (?{@{circumstantial_i18n}|0}) ]]}} {{botch-button=[@{botch_i18n}!](~@{character_name}|botch)}} {{crit-button=[@{critical_i18n}!](~@{character_name}|critical)}} {{stress=}}"></button>
<button type="roll" class="button stress-roll" name="roll_ability_stress" value="&{template:ability} {{name=@{character_name}}} {{label0=@{Ability_name}}} {{result0=[[ @{stress-die} + (@{Ability_Score} + @{Ability_Puissant}) [@{Ability_name}] + (@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk}) [@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}] + (@{wound_total}) [@{wounds_i18n}] + ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (?{@{circumstantial_i18n}|0}) [@{circumstances_i18n}] ]]}} {{banner=@{Ability_Speciality}}} {{label1=^{rank}}} {{result1=[[ @{Ability_Score} + @{Ability_Puissant} ]]}} {{label2=@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}}} {{result2=[[ @{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk} ]]}} {{label3=^{weakness-m}}} {{result3=[[ ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (@{wound_total}) [@{wounds_i18n}] ]]}} {{label4=^{circumstances-m}}} {{result4=[[ (?{@{circumstantial_i18n}|0}) ]]}} {{botch-button=[@{botch_i18n}!](~@{character_name}|botch)}} {{crit-button=[@{critical_i18n}!](~@{character_name}|critical)}} {{stress=1}}"></button>
</div></td>
<td width="240px"><input type="text" style="width:220px;" class="heading_4" name="attr_Ability_name"/></td>
<td><input type="number" class="number_2" name="attr_Ability_TotalScore" value="[[(@{Ability_Score}) + (@{Ability_Puissant})]]" disabled="true" /></td>
@@ -673,8 +689,8 @@ This file is automatically generated from a template. Any change will be overwri
</tr>
</table>
<input type="checkbox" class="hider hidden" value="1" name="attr_Ability_show" checked/>
<div class="hide">
<table class="table_2" style="width:400px;">
<div class="hide" style="margin-bottom: 15px;">
<table class="table_2" style="width:400px">
<tr>
<th data-i18n="characteristic" >Characteristic</th>
<th data-i18n="speciality" >Speciality</th>
@@ -684,8 +700,8 @@ This file is automatically generated from a template. Any change will be overwri
<tr>
<td>
<select class="select_1" name="attr_Ability_CharacName">
<option class="italic" value="unselected" data-i18n="characteristic" >Characteristic</option>
<option class="italic" value="ask" data-i18n="ask" >Ask</option>
<option class="italic" value="global_char" data-i18n="characteristic-choice" >-Characteristic-</option>
<option class="italic" value="ask" data-i18n="ask" >-Ask-</option>
<option value="Intelligence" data-i18n="intelligence" >Intelligence</option>
<option value="Perception" data-i18n="perception" >Perception</option>
<option value="Presence" data-i18n="presence" >Presence</option>
@@ -701,7 +717,28 @@ This file is automatically generated from a template. Any change will be overwri
<td><input type="text" class="number_2" name="attr_Ability_Puissant" value="0"/><span></span></td>
</tr>
<tr>
<th colspan="2">XP [<input type="text" class="number_3" name="attr_Ability_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Ability_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Ability_totalExp" value="0" readonly/>]</th>
<th colspan="2"><span class="flex-container-left">XP <span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Ability_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Ability_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Ability_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</span></th>
<td colspan="2"><span data-i18n="accelerated-">Accelerated</span> <input type="hidden" value="5" name="attr_AcceleratedCheck"><input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck"></td>
</tr>
</table>
@@ -726,36 +763,141 @@ This file is automatically generated from a template. Any change will be overwri
<th><div style="width:110px;" data-i18n="exp" >Exp.</div></th>
<th><div style="width:45px;" data-i18n="bonus" >Bonus</div></th>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Creo_Score" value="0"/></td>
<td data-i18n="creo" >Creo</td>
<td>[<input type="text" class="number_3" name="attr_Creo_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Creo_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Creo_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Creo_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Intellego_Score" value="0"/></td>
<td data-i18n="intellego" >Intellego</td>
<td>[<input type="text" class="number_3" name="attr_Intellego_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Intellego_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Intellego_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Intellego_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Muto_Score" value="0"/></td>
<td data-i18n="muto" >Muto</td>
<td>[<input type="text" class="number_3" name="attr_Muto_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Muto_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Muto_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Muto_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Perdo_Score" value="0"/></td>
<td data-i18n="perdo" >Perdo</td>
<td>[<input type="text" class="number_3" name="attr_Perdo_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Perdo_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Perdo_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Perdo_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Rego_Score" value="0"/></td>
<td data-i18n="rego" >Rego</td>
<td>[<input type="text" class="number_3" name="attr_Rego_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Rego_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Rego_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Rego_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Creo_Score" value="0"/></td>
<td data-i18n="creo" >Creo</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Creo_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Creo_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Creo_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Creo_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Intellego_Score" value="0"/></td>
<td data-i18n="intellego" >Intellego</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Intellego_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Intellego_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Intellego_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Intellego_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Muto_Score" value="0"/></td>
<td data-i18n="muto" >Muto</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Muto_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Muto_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Muto_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Muto_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Perdo_Score" value="0"/></td>
<td data-i18n="perdo" >Perdo</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Perdo_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Perdo_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Perdo_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Perdo_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Rego_Score" value="0"/></td>
<td data-i18n="rego" >Rego</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Rego_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Rego_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Rego_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Rego_Puissant" value="0"/></td>
</tr>
</table>
</div>
<div class='col' style="margin-right: 20px">
@@ -767,36 +909,141 @@ This file is automatically generated from a template. Any change will be overwri
<th><div style="width:110px;" data-i18n="exp" >Exp.</div></th>
<th><div style="width:45px;" data-i18n="bonus" >Bonus</div></th>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Animal_Score" value="0"/></td>
<td data-i18n="animal" >Animal</td>
<td>[<input type="text" class="number_3" name="attr_Animal_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Animal_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Animal_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Animal_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Aquam_Score" value="0"/></td>
<td data-i18n="aquam" >Aquam</td>
<td>[<input type="text" class="number_3" name="attr_Aquam_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Aquam_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Aquam_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Aquam_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Auram_Score" value="0"/></td>
<td data-i18n="auram" >Auram</td>
<td>[<input type="text" class="number_3" name="attr_Auram_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Auram_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Auram_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Auram_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Corpus_Score" value="0"/></td>
<td data-i18n="corpus" >Corpus</td>
<td>[<input type="text" class="number_3" name="attr_Corpus_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Corpus_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Corpus_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Corpus_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Herbam_Score" value="0"/></td>
<td data-i18n="herbam" >Herbam</td>
<td>[<input type="text" class="number_3" name="attr_Herbam_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Herbam_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Herbam_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Herbam_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Animal_Score" value="0"/></td>
<td data-i18n="animal" >Animal</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Animal_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Animal_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Animal_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Animal_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Aquam_Score" value="0"/></td>
<td data-i18n="aquam" >Aquam</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Aquam_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Aquam_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Aquam_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Aquam_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Auram_Score" value="0"/></td>
<td data-i18n="auram" >Auram</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Auram_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Auram_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Auram_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Auram_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Corpus_Score" value="0"/></td>
<td data-i18n="corpus" >Corpus</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Corpus_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Corpus_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Corpus_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Corpus_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Herbam_Score" value="0"/></td>
<td data-i18n="herbam" >Herbam</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Herbam_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Herbam_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Herbam_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Herbam_Puissant" value="0"/></td>
</tr>
</table>
</div>
<div class='col' style="margin-right: 20px">
@@ -808,36 +1055,141 @@ This file is automatically generated from a template. Any change will be overwri
<th><div style="width:110px;" data-i18n="exp" >Exp.</div></th>
<th><div style="width:45px;" data-i18n="bonus" >Bonus</div></th>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Ignem_Score" value="0"/></td>
<td data-i18n="ignem" >Ignem</td>
<td>[<input type="text" class="number_3" name="attr_Ignem_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Ignem_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Ignem_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Ignem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Imaginem_Score" value="0"/></td>
<td data-i18n="imaginem" >Imaginem</td>
<td>[<input type="text" class="number_3" name="attr_Imaginem_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Imaginem_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Imaginem_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Imaginem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Mentem_Score" value="0"/></td>
<td data-i18n="mentem" >Mentem</td>
<td>[<input type="text" class="number_3" name="attr_Mentem_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Mentem_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Mentem_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Mentem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Terram_Score" value="0"/></td>
<td data-i18n="terram" >Terram</td>
<td>[<input type="text" class="number_3" name="attr_Terram_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Terram_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Terram_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Terram_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Vim_Score" value="0"/></td>
<td data-i18n="vim" >Vim</td>
<td>[<input type="text" class="number_3" name="attr_Vim_exp" value="0"/>/<input type="text" class="number_3 advance" name="attr_Vim_advancementExp" value="0" readonly/>/<input type="text" class="number_3 total" name="attr_Vim_totalExp" value="0" readonly/>]</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Vim_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Ignem_Score" value="0"/></td>
<td data-i18n="ignem" >Ignem</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Ignem_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Ignem_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Ignem_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Ignem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Imaginem_Score" value="0"/></td>
<td data-i18n="imaginem" >Imaginem</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Imaginem_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Imaginem_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Imaginem_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Imaginem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Mentem_Score" value="0"/></td>
<td data-i18n="mentem" >Mentem</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Mentem_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Mentem_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Mentem_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Mentem_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Terram_Score" value="0"/></td>
<td data-i18n="terram" >Terram</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Terram_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Terram_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Terram_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Terram_Puissant" value="0"/></td>
</tr>
<tr>
<td><input type="text" class="number_3" name="attr_Vim_Score" value="0"/></td>
<td data-i18n="vim" >Vim</td>
<td><span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_Vim_exp" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_Vim_advancementExp" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_Vim_totalExp" value="0" readonly/>
<span class="tooltip">XP required to the current score</span>
</span>
)
</span>
</span>
</td>
<td style="text-align: center"><input type="text" class="number_3 minor" name="attr_Vim_Puissant" value="0"/></td>
</tr>
</table>
</div>
</div>
@@ -2004,7 +2356,7 @@ This file is automatically generated from a template. Any change will be overwri
Sheet Documentation
</h2>
<p>
Welcome the th Ars Magica 5th Edition character sheet. This page contains the documentation for the sheet.
Welcome the Ars Magica 5th Edition character sheet. This page contains the documentation for the sheet.
</p>
<h3 class=" heading_label">
Experience
@@ -3516,7 +3868,6 @@ This file is automatically generated from a template. Any change will be overwri
<input name ="attr_ability_i18n" type="hidden" value="Abiliy" />
<input name ="attr_armor_i18n" type="hidden" value="Armor" />
<input name ="attr_artes_i18n" type="hidden" value="Artes Lib." />
<input name ="attr_ask_i18n" type="hidden" value="Ask" />
<input name ="attr_attack_i18n" type="hidden" value="Attack" />
<input name ="attr_aura_i18n" type="hidden" value="Aura" />
<input name ="attr_bold_i18n" type="hidden" value="Bold" />
@@ -3582,6 +3933,9 @@ This file is automatically generated from a template. Any change will be overwri
<input name="attr_Unselected_Score" type="hidden" value="0" />
<input name="attr_Unselected_Puissant" type="hidden" value="0" />
<input name="attr_ask_Score" type="hidden" value="?{@{characteristic_i18n}|@{intelligence_i18n},@{intelligence_Score} [@{intelligence_i18n}]| @{perception_i18n},@{perception_Score} [@{perception_i18n}]| @{presence_i18n},@{presence_Score} [@{presence_i18n}]| @{communication_i18n},@{communication_Score} [@{communication_i18n}]| @{strength_i18n},@{strength_Score} [@{strength_i18n}]| @{stamina_i18n},@{stamina_Score} [@{stamina_i18n}]| @{dexterity_i18n},@{dexterity_Score} [@{dexterity_i18n}]| @{quickness_i18n},@{quickness_Score} [@{quickness_i18n}]}" />
<!-- Those two attribute delegates to the global selector using another deferred attribute -->
<input name="attr_global_char_Score" type="hidden" value="@{sys_at}@{character_name}@{sys_pipe}@{global_Ability_CharacName}_Score@{sys_rbk}" />
<input name="attr_global_char_i18n" type="hidden" value="@{sys_at}@{character_name}@{sys_pipe}@{global_Ability_CharacName}_i18n@{sys_rbk}" />
<input name ="attr_sys_at" type="hidden" value="@{" />
<input name ="attr_sys_pipe" type="hidden" value="|" />
<input name ="attr_sys_rbk" type="hidden" value="}" />
@@ -3695,7 +4049,6 @@ on("sheet:opened", function(eventInfo){
"ability_i18n": getTranslationByKey("ability"),
"armor_i18n": getTranslationByKey("armor"),
"artes_i18n": getTranslationByKey("artes-lib-"),
"ask_i18n": getTranslationByKey("ask"),
"attack_i18n": getTranslationByKey("attack"),
"aura_i18n": getTranslationByKey("aura"),
"bold_i18n": getTranslationByKey("gestures-bold"),
+33 -8
View File
@@ -2,6 +2,7 @@
Small module for helper code that could be helpful everywhere in the part module
"""
import textwrap
from typing import Dict, Set, ClassVar, List, Collection, Union, Tuple
from dataclasses import dataclass
import itertools
@@ -149,15 +150,39 @@ def xp(
"""
Generate the HTML for the Xp parts of arts & abilities
"""
return (
"["
f"""<input type="text" class="number_3" name="attr_{name}{suffix}" value="0"/>"""
"/"
f"""<input type="text" class="number_3 advance" name="attr_{name}{adv_suffix}" value="0" readonly/>"""
"/"
f"""<input type="text" class="number_3 total" name="attr_{name}{tot_suffix}" value="0" readonly/>"""
"]"
return textwrap.dedent(
f"""\
<span class="flex-container-left">
<span class="has-tooltip">
<input type="text" class="number_3" name="attr_{name}{suffix}" value="0"/>
<span class="tooltip">
XP points in this art or ability. You can store either the total amount of XP, or just the XP towards the next score.
</span>
</span>
<span class="flex-container-center">
(
<span class="has-tooltip">
<input type="text" class="number_3 advance" name="attr_{name}{adv_suffix}" value="0" readonly/>
<span class="tooltip">Additional XP required for the next score</span>
</span>
/
<span class="has-tooltip">
<input type="text" class="number_3 total" name="attr_{name}{tot_suffix}" value="0" readonly/>
<span class="tooltip">XP required for the current score</span>
</span>
)
</span>
</span>
"""
)
# return (
# f"""<input type="text" class="number_3" name="attr_{name}{suffix}" value="0"/>"""
# "("
# f"""<input type="text" class="number_3 advance" name="attr_{name}{adv_suffix}" value="0" readonly/>"""
# "/"
# f"""<input type="text" class="number_3 total" name="attr_{name}{tot_suffix}" value="0" readonly/>"""
# ")"
# )
def roll(*parts: str) -> str:
@@ -88,7 +88,7 @@ ability_template = rolltemplate(
banner="@{Ability_Speciality}",
label1="^{rank}",
result1="[[ @{Ability_Score} + @{Ability_Puissant} ]]",
label2="@{Ability_CharacName}",
label2="@{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_i18n@{sys_rbk}",
result2="[[ @{sys_at}@{character_name}@{sys_pipe}@{Ability_CharacName}_Score@{sys_rbk} ]]",
label3="^{weakness-m}",
result3="[[ ([[floor(@{Fatigue})]]) [@{fatigue_i18n}] + (@{wound_total}) [@{wounds_i18n}] ]]",
@@ -6,7 +6,6 @@ TRANSLATION_ATTRS = (
("ability", "Abiliy", "ability"),
("armor", "Armor", "armor"),
("artes", "Artes Lib.", "artes-lib-"),
("ask", "Ask", "ask"),
("attack", "Attack", "attack"),
("aura", "Aura", "aura"),
("bold", "Bold", "gestures-bold"),
+1 -1
View File
@@ -1,6 +1,6 @@
## Sheet Documentation
Welcome the th Ars Magica 5th Edition character sheet. This page contains the documentation for the sheet.
Welcome the Ars Magica 5th Edition character sheet. This page contains the documentation for the sheet.
### Experience
The fields for experience work as follows:
+4 -4
View File
@@ -19,20 +19,20 @@
*/
/* Layout utilities */
div.sheet-flex-container-center {
.sheet-flex-container-center {
display: flex;
flex-wrap: nowrap;
align-content: center;
justify-content: center;
align-items: center;
}
div.sheet-flex-container-between {
.sheet-flex-container-between {
display: flex;
flex-wrap: nowrap;
align-items: center;
justify-content: space-between;
}
div.sheet-flex-container-left {
.sheet-flex-container-left {
display: flex;
flex-wrap: nowrap;
align-items: center;
@@ -59,7 +59,7 @@ div.sheet-artgrid {
.sheet-has-tooltip {
position: relative;
display: inline-block;
border-bottom: 2px dotted #331f1a;
border-bottom: 1px dotted #331f1a;
}
/* Tooltip itself */
+18 -6
View File
@@ -439,7 +439,16 @@ $$alert(
</div>
<!-- Abilities -->
<div class='col'>
<h4 class="heading_label" data-i18n="abilities" >Abilities</h4>
<h4 class="heading_label" data-i18n="abilities" style="margin-bottom: 15px;">Abilities</h4>
<div>
<span class="has-tooltip">
<span data-i18n="characteristic" style="font-family: 'Macondo', cursive; color: #663333; font-size: 1.3em;">Characteristic</span>
<span class="tooltip">Default characteristic to use. Can be overriden per ability.</span>
</span>
<select class="select_1" name="attr_global_Ability_CharacName">
$$characteristic_name_options$$
</select>
</div>
<table class="table_2" style="width:400px;">
<tr>
<td><div style="width:40px;"></div></td>
@@ -461,8 +470,8 @@ $$alert(
</tr>
</table>
<input type="checkbox" class="hider hidden" value="1" name="attr_Ability_show" checked/>
<div class="hide">
<table class="table_2" style="width:400px;">
<div class="hide" style="margin-bottom: 15px;">
<table class="table_2" style="width:400px">
<tr>
<th data-i18n="characteristic" >Characteristic</th>
<th data-i18n="speciality" >Speciality</th>
@@ -472,8 +481,8 @@ $$alert(
<tr>
<td>
<select class="select_1" name="attr_Ability_CharacName">
<option class="italic" value="unselected" data-i18n="characteristic" >Characteristic</option>
<option class="italic" value="ask" data-i18n="ask" >Ask</option>
<option class="italic" value="global_char" data-i18n="characteristic-choice" >-Characteristic-</option>
<option class="italic" value="ask" data-i18n="ask" >-Ask-</option>
$$characteristic_name_options$$
</select>
</td>
@@ -482,7 +491,7 @@ $$alert(
<td><input type="text" class="number_2" name="attr_Ability_Puissant" value="0"/><span></span></td>
</tr>
<tr>
<th colspan="2">XP $$xp("Ability")$$</th>
<th colspan="2"><span class="flex-container-left">XP $$xp("Ability")$$</span></th>
<td colspan="2"><span data-i18n="accelerated-">Accelerated</span> <input type="hidden" value="5" name="attr_AcceleratedCheck"><input type="checkbox" class="check" value="1" name="attr_AcceleratedCheck"></td>
</tr>
</table>
@@ -1912,6 +1921,9 @@ $$translation_attrs$$
<input name="attr_Unselected_Score" type="hidden" value="0" />
<input name="attr_Unselected_Puissant" type="hidden" value="0" />
<input name="attr_ask_Score" type="hidden" value="$$characteristic_name_ask_attr$$" />
<!-- Those two attribute delegates to the global selector using another deferred attribute -->
<input name="attr_global_char_Score" type="hidden" value="@{sys_at}@{character_name}@{sys_pipe}@{global_Ability_CharacName}_Score@{sys_rbk}" />
<input name="attr_global_char_i18n" type="hidden" value="@{sys_at}@{character_name}@{sys_pipe}@{global_Ability_CharacName}_i18n@{sys_rbk}" />
<input name ="attr_sys_at" type="hidden" value="@{" />
<input name ="attr_sys_pipe" type="hidden" value="|" />
<input name ="attr_sys_rbk" type="hidden" value="}" />
+2 -2
View File
@@ -14,7 +14,7 @@
"armor-protection": "Armor Protection",
"armor-worn": "Armor Worn",
"art": "Art",
"ask": "Ask",
"ask": "-Ask-",
"artes-lib-": "Artes Lib.",
"atk": "Atk",
"attack": "Attack",
@@ -33,7 +33,7 @@
"ceremonial": "Ceremonial",
"character": "Character",
"characteristic": "Characteristic",
"characteristic-m": "Characteristic",
"characteristic-choice": "-Characteristic-",
"characteristics": "Characteristics",
"circumstances-m": "Circumstances",
"circumstantial": "Circumstantial",