Just a wip of the sheet

Nothing is quite working yet
This commit is contained in:
Maximilien Rigaut 2017-02-19 02:36:11 +01:00
parent 08d6f5f3e1
commit 3d75acb507
3 changed files with 41 additions and 6 deletions

View File

@ -31,6 +31,12 @@
Seuil s
*/
on("change:skill_SKILLNAME_activation change:general_skilllevel_SKILLNAME", function() {
getAttrs(["skill_SKILLNAME_activation", "general_skilllevel_Perfection"], function(values) {
setAttrs({"general_effective_SKILLNAME":values.skill_SKILLNAME_activation*values.general_skilllevel_SKILLNAME});
});
});
<!--SKILLNAME -->
<input class="sheet-skill_name" style="margin-right: 4px;" type="text" name="attr_general_skill_SKILLNAME" disabled="true" value="SKILLNAME" />
<input type="number" min="0" name="attr_skillcost_SKILLNAME" />
@ -38,7 +44,7 @@
<select class="sheet-skill_select" style="margin-right:4px" name="attr_Skill_general_attribute_select_SKILLNAME"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_SKILLNAME} [[(@{general_skilllevel_SKILLNAME}+(@{Skill_general_attribute_select_SKILLNAME}) - d@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_SKILLNAME_activation" />
<input class="sheet-hidden" type="number" disabled="true" name="attr_general_effective_SKILLNAME" value="@{general_skilllevel_SKILLNAME}"/>
<!--FIELD_TYPE -->
<fieldset class="repeating_FIELD_TYPE-skills">

View File

@ -1,4 +1,26 @@
<head><link rel="stylesheet" type="text/css" href="style.css"><link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet"></head>
<head><link rel="stylesheet" type="text/css" href="style.css"><link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script type="text/worker">
on("change:skill_Perfection_activation change:general_skilllevel_Perfection", function() {
getAttrs(["skill_Perfection_activation", "general_skilllevel_Perfection"], function(values) {
setAttrs({"general_effective_Perfection":values.skill_Perfection_activation*values.general_skilllevel_Perfection});
});
});
on("change:skill_Fauchage_activation change:general_skilllevel_Fauchage", function() {
getAttrs(["skill_Fauchage_activation", "general_skilllevel_Perfection"], function(values) {
setAttrs({"general_effective_Fauchage":values.skill_Fauchage_activation*values.general_skilllevel_Fauchage});
});
});
on("change:skill_Exploiter_les_points_faibles_activation change:general_skilllevel_Exploiter_les_points_faibles", function() {
getAttrs(["skill_Exploiter_les_points_faibles_activation", "general_skilllevel_Perfection"], function(values) {
setAttrs({"general_effective_Exploiter_les_points_faibles":values.skill_Exploiter_les_points_faibles_activation*values.general_skilllevel_Exploiter_les_points_faibles});
});
});
</script>
</head>
<div class="sheet-content">
<div class="sheet-center">
<input type="text" class="sheet-bigname" name="attr_character_name" placeholder="Nom"/><br>
@ -275,7 +297,7 @@
<div class="sheet-tab-content sheet-secondary_tab1">
<button type='roll' class="sheet-Initiative_roll" value="/e tire son initiative [[@{base-Agilite} + @{exal-Agilite} + @{Initiative} + 1d10 &{tracker}]]">Initiative</button>
<input type="number" class="sheet-numberbox" name="attr_Initiative" value="0"/>
<button type='roll' class="sheet-Attack_roll" value="/e attaque [[@{nb_attack_dices}d10+@{base_damage_dices}+@{Skill_general_attribute_select_attaque}]]">Attaque de base</button>
<button type='roll' class="sheet-Attack_roll" value="crit @{nb_attack_dices} + @{base_damage_dices} P @{general_skilllevel_Perfection} T @{skillcost_Technique_martiale} @{general_skilllevel_Technique_martiale}">Attaque de base</button>
<input type="number" class="sheet-numberbox" name="attr_nb_attack_dices" value="0"/>d10+
<input type="number" class="sheet-numberbox" name="attr_base_damage_dices" value="0"/>
<select class="sheet-skill_select" style="margin-right:4px" name="attr_Skill_general_attribute_select_attaque"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option></select>
@ -286,7 +308,8 @@
<input class="sheet-skill_name" style="margin-right: 0px;" type="number" min="0" max="10" name="attr_general_skilllevel_Perfection" />
<select class="sheet-skill_select" style="margin-right:0px" name="attr_Skill_general_attribute_select_Perfection"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_Perfection} [[(@{general_skilllevel_Perfection}+(@{Skill_general_attribute_select_Perfection}) - d@{dice}cs1cf@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 10px;" value="1" name="attr_skill_Perfection_activation" />
<input type="checkbox" class="sheet-skill_activation" value="1" name="attr_skill_Perfection_activation" />
<input class="sheet-skill_hidden" type="number" name="attr_general_effective_Perfection" />
<!--general_combat -->
<fieldset class="repeating_general-combat-skills">
@ -314,11 +337,12 @@
<!--Technique_martiale -->
<input class="sheet-skill_name" style="margin-right: 0px;" type="text" name="attr_general_skill_Technique_martiale " disabled="true" value="Technique_martiale " />
<input type="number" min="0" name="attr_skillcost_Technique_martiale " />
<input type="number" min="0" name="attr_skillcost_Technique_martiale" />
<input class="sheet-skill_name" style="margin-right: 0px;" type="number" min="0" max="10" name="attr_general_skilllevel_Technique_martiale " />
<select class="sheet-skill_select" style="margin-right:0px" name="attr_Skill_general_attribute_select_Technique_martiale "><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_Technique_martiale } [[(@{general_skilllevel_Technique_martiale }+(@{Skill_general_attribute_select_Technique_martiale }) - d@{dice}cs1cf@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Technique_martiale _activation" />
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Technique_martiale_activation" />
<input class="sheet-skill_hidden" type="number" name="attr_general_effective_Technique_martiale" />
<!--Coup_déchirant -->
<input class="sheet-skill_name" style="margin-right: 0px;" type="text" name="attr_general_skill_Coup_déchirant" disabled="true" value="Coup_déchirant" />
@ -327,6 +351,7 @@
<select class="sheet-skill_select" style="margin-right:0px" name="attr_Skill_general_attribute_select_Coup_déchirant"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_Coup_déchirant} [[(@{general_skilllevel_Coup_déchirant}+(@{Skill_general_attribute_select_Coup_déchirant}) - d@{dice}cs1cf@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Coup_déchirant_activation" />
<input class="sheet-skill_hidden" type="number" name="attr_general_effective_Coup_déchirant" />
<!--Fauchage -->
<input class="sheet-skill_name" style="margin-right:0px;" type="text" name="attr_general_skill_Fauchage" disabled="true" value="Fauchage" />
@ -335,6 +360,7 @@
<select class="sheet-skill_select" style="margin-right:0px" name="attr_Skill_general_attribute_select_Fauchage"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_Fauchage} [[(@{general_skilllevel_Fauchage}+(@{Skill_general_attribute_select_Fauchage}) - d@{dice}cs1cf@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Fauchage_activation" />
<input class="sheet-skill_hidden" type="number" name="attr_general_effective_Fauchage" />
<!--Exploiter_les_points_faibles -->
<input class="sheet-skill_name" style="margin-right: 0px;" type="text" name="attr_general_skill_Exploiter_les_points_faibles" disabled="true" value="Exploiter_les_points_faibles" />
@ -343,6 +369,7 @@
<select class="sheet-skill_select" style="margin-right:0px" name="attr_Skill_general_attribute_select_Exploiter_les_points_faibles"><option value="@{base-Force} + @{exal-Force}">For</option><option value="@{base-Agilite} + @{exal-Agilite}">Agi</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Charisme} + @{exal-Charisme}">Cha</option><option value="@{base-Intelligence} + @{exal-Intelligence}">Int</option><option value="@{base-Perception} + @{exal-Perception}">Per</option><option value="@{base-Volonte} + @{exal-Volonte}">Vol</option><option value="@{base-Psyche} + @{exal-Psyche}">Psy</option><option value="@{base-Chance} + @{exal-Chance}">Chn</option></select>
<button type='roll' class="sheet-skillbutton" value="/e rolls @{general_skill_Exploiter_les_points_faibles} [[(@{general_skilllevel_Exploiter_les_points_faibles}+(@{Skill_general_attribute_select_Exploiter_les_points_faibles}) - d@{dice}cs1cf@{dice})]] "></button>
<input type="checkbox" class="sheet-skill_activation" style="margin-right: 4px;" value="1" name="attr_skill_Exploiter_les_points_faibles_activation" />
<input class="sheet-skill_hidden" type="number" name="attr_general_effective_Exploiter_les_points_faibles" />
<!--offensive_combat -->
<fieldset class="repeating_offensive-combat-skills">

View File

@ -91,7 +91,9 @@ input.sheet-skill_name{
}
div.sheet-skill_hidden{
}
div.sheet-tab-content{
border-top-color: #000;
margin: 2px 0 0 0;