Merge branch '067-edit-current-hp-in-actor-sheet' into 'master'

Make it possible to edit / view hit points in actor sheet

Closes #67

See merge request dungeonslayers/ds4!78
This commit is contained in:
Johannes Loher 2021-02-19 13:57:07 +01:00
commit f997f74f93
3 changed files with 26 additions and 9 deletions

View file

@ -119,6 +119,8 @@
"DS4.TraitIntellect": "Verstand",
"DS4.TraitAura": "Aura",
"DS4.CombatValuesHitPoints": "Lebenskraft",
"DS4.CombatValuesHitPointsCurrent": "Aktuelle Lebenskraft",
"DS4.CombatValuesHitPointsCurrentAbbr": "LK",
"DS4.CombatValuesDefense": "Abwehr",
"DS4.CombatValuesInitiative": "Initiative",
"DS4.CombatValuesMovement": "Laufen",
@ -131,7 +133,9 @@
"DS4.CharacterBaseInfoHeroClass": "Heldenklasse",
"DS4.CharacterBaseInfoCulture": "Kultur",
"DS4.CharacterProgressionLevel": "Stufe",
"DS4.CharacterProgressionLevelAbbr": "Stufe",
"DS4.CharacterProgressionExperiencePoints": "Erfahrungspunkte",
"DS4.CharacterProgressionExperiencePointsAbbr": "EP",
"DS4.CharacterProgressionTalentPoints": "Talentpunkte",
"DS4.CharacterProgressionProgressPoints": "Lernpunkte",
"DS4.TalentRank": "Rang",

View file

@ -119,6 +119,8 @@
"DS4.TraitIntellect": "Intellect",
"DS4.TraitAura": "Aura",
"DS4.CombatValuesHitPoints": "Hit Points",
"DS4.CombatValuesHitPointsCurrent": "Current Hit Points",
"DS4.CombatValuesHitPointsCurrentAbbr": "HP",
"DS4.CombatValuesDefense": "Defense",
"DS4.CombatValuesInitiative": "Initiative",
"DS4.CombatValuesMovement": "Movement",
@ -131,7 +133,9 @@
"DS4.CharacterBaseInfoHeroClass": "Hero Class",
"DS4.CharacterBaseInfoCulture": "Culture",
"DS4.CharacterProgressionLevel": "Level",
"DS4.CharacterProgressionLevelAbbr": "Level",
"DS4.CharacterProgressionExperiencePoints": "Experience Points",
"DS4.CharacterProgressionExperiencePointsAbbr": "XP",
"DS4.CharacterProgressionTalentPoints": "Talent Points",
"DS4.CharacterProgressionProgressPoints": "Progress Points",
"DS4.TalentRank": "Rank",

View file

@ -1,17 +1,26 @@
<div class="progression flexrow">
<div class="progression-entry">
<h2 class="progression-label"><label for="data.progression.level">{{config.i18n.characterProgression.level}}</label>
<h2 class="progression-label"><label for="data.combatValues.hitPoints.value"
title="{{localize 'DS4.CombatValuesHitPointsCurrent'}}">{{localize
"DS4.CombatValuesHitPointsCurrentAbbr"}}</label>
</h2>
<label for="data.progression.level" class="hidden">Progression Level</label>
<input class="progression-value" type="number" name="data.progression.level" id="data.progression.level" value="{{data.progression.level}}"
data-dtype="Number" />
<input class="progression-value" type="number" name="data.combatValues.hitPoints.value"
id="data.combatValues.hitPoints.value" value="{{data.combatValues.hitPoints.value}}" data-dtype="Number" />
</div>
<div class="progression-entry">
<h2 class="progression-label"><label
for="data.progression.experiencePoints">{{config.i18n.characterProgression.experiencePoints}}</label>
<h2 class="progression-label"><label for="data.progression.level"
title="{{localize 'DS4.CharacterProgressionLevel'}}">{{localize
"DS4.CharacterProgressionLevelAbbr"}}</label>
</h2>
<label for="data.progression.experiencePoints" class="hidden">Experience Points</label>
<input class="progression-value" type="number" name="data.progression.experiencePoints" id="data.progression.experiencePoints"
value="{{data.progression.experiencePoints}}" data-dtype="Number" />
<input class="progression-value" type="number" name="data.progression.level" id="data.progression.level"
value="{{data.progression.level}}" data-dtype="Number" />
</div>
<div class="progression-entry">
<h2 class="progression-label"><label for="data.progression.experiencePoints"
title="{{localize 'DS4.CharacterProgressionExperiencePoints'}}">{{localize
"DS4.CharacterProgressionExperiencePointsAbbr"}}</label>
</h2>
<input class="progression-value" type="number" name="data.progression.experiencePoints"
id="data.progression.experiencePoints" value="{{data.progression.experiencePoints}}" data-dtype="Number" />
</div>
</div>