ENH: Tooltip display long names

master
U~man 2020-06-28 19:02:51 +02:00
parent e61da35617
commit 438556386f
4 changed files with 31 additions and 22 deletions

View File

@ -1,8 +1,8 @@
### Old School Essentials System for Foundry VTT
# Old School Essentials System for Foundry VTT
## License
Old-School Essentials is a trademark of Necrotic Gnome.
This Foundry VTT system requires Old-School Essentials Core Rules and does not contain any copyright infringement material.
This Foundry VTT system requires Old-School Essentials Core Rules and does not contain any copyrighted material.
## Contributions
This system is currently under heavy development.

View File

@ -27,10 +27,15 @@
"OSE.scores.cha.short": "CHA",
"OSE.saves.death.short": "D",
"OSE.saves.death.long": "Death",
"OSE.saves.wands.short": "W",
"OSE.saves.wands.long": "Wands",
"OSE.saves.paralysis.short": "P",
"OSE.saves.paralysis.long": "Paralysis",
"OSE.saves.breath.short": "B",
"OSE.saves.breath.long": "Breath",
"OSE.saves.spells.short": "S",
"OSE.saves.spells.long": "Spells",
"OSE.Health": "Hit Points",
"OSE.HealthShort": "HP",

View File

@ -44,32 +44,32 @@
<div class="attribute-group">
<ul class="attributes">
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.str.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.str.long' }}">{{ localize "OSE.scores.str.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.str.value" type="text" value="{{data.scores.str.value}}" placeholder="0" data-dtype="Number"/>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.int.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.int.long' }}">{{ localize "OSE.scores.int.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.int.value" type="text" value="{{data.scores.int.value}}" placeholder="0" data-dtype="Number"/>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.wis.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.wis.long' }}">{{ localize "OSE.scores.wis.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.wis.value" type="text" value="{{data.scores.wis.value}}" placeholder="0" data-dtype="Number"/>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.dex.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.dex.long' }}">{{ localize "OSE.scores.dex.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.dex.value" type="text" value="{{data.scores.dex.value}}" placeholder="0" data-dtype="Number"/>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.con.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.con.long' }}">{{ localize "OSE.scores.con.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.con.value" type="text" value="{{data.scores.con.value}}" placeholder="0" data-dtype="Number"/>
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.scores.cha.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.scores.cha.long' }}">{{ localize "OSE.scores.cha.short" }}</h4>
<div class="attribute-value">
<input name="data.scores.cha.value" type="text" value="{{data.scores.cha.value}}" placeholder="0" data-dtype="Number"/>
</li>
@ -107,27 +107,31 @@
<div class="attribute-group">
<ul class="attributes">
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.death.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.death.long' }}">{{ localize "OSE.saves.death.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.d.value" type="text" value="{{data.saves.d.value}}" placeholder="0" data-dtype="Number"/>
<input name="data.saves.d.value" type="text" value="{{data.saves.d.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.wands.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.wands.long' }}">{{ localize "OSE.saves.wands.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.w.value" type="text" value="{{data.saves.w.value}}" placeholder="0" data-dtype="Number" />
<input name="data.saves.w.value" type="text" value="{{data.saves.w.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.paralysis.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.paralysis.long' }}">{{ localize "OSE.saves.paralysis.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.p.value" type="text" value="{{data.saves.p.value}}" placeholder="0" data-dtype="Number" />
<input name="data.saves.p.value" type="text" value="{{data.saves.p.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.breath.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.breath.long' }}">{{ localize "OSE.saves.breath.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.b.value" type="text" value="{{data.saves.b.value}}" placeholder="0" data-dtype="Number" />
<input name="data.saves.b.value" type="text" value="{{data.saves.b.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.spells.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.spells.long' }}">{{ localize "OSE.saves.spells.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.s.value" type="text" value="{{data.saves.s.value}}" placeholder="0" />
</li>

View File

@ -99,31 +99,31 @@
<div class="attribute-group">
<ul class="attributes">
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.death.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.death.long' }}">{{ localize "OSE.saves.death.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.d.value" type="text" value="{{data.saves.d.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.wands.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.wands.long' }}">{{ localize "OSE.saves.wands.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.w.value" type="text" value="{{data.saves.w.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.paralysis.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.paralysis.long' }}">{{ localize "OSE.saves.paralysis.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.p.value" type="text" value="{{data.saves.p.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.breath.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.breath.long' }}">{{ localize "OSE.saves.breath.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.b.value" type="text" value="{{data.saves.b.value}}" placeholder="0"
data-dtype="Number" />
</li>
<li class="attribute">
<h4 class="attribute-name box-title">{{ localize "OSE.saves.spells.short" }}</h4>
<h4 class="attribute-name box-title" title="{{ localize 'OSE.saves.spells.long' }}">{{ localize "OSE.saves.spells.short" }}</h4>
<div class="attribute-value">
<input name="data.saves.s.value" type="text" value="{{data.saves.s.value}}" placeholder="0" />
</li>