GH-77
- Closes #77 - Adds new "concat" handlebars helper to concat str and var - Adds Short attributes names to use them in layout
This commit is contained in:
parent
009b731b7e
commit
41396ddd73
5 changed files with 23 additions and 1 deletions
|
@ -138,18 +138,21 @@
|
|||
"BITD.EffectGreat": "Great",
|
||||
|
||||
"BITD.SkillsInsight": "Insight",
|
||||
"BITD.SkillsInsightShort": "Insight",
|
||||
"BITD.SkillsHunt": "Hunt",
|
||||
"BITD.SkillsStudy": "Study",
|
||||
"BITD.SkillsSurvey": "Survey",
|
||||
"BITD.SkillsTinker": "Tinker",
|
||||
|
||||
"BITD.SkillsProwess": "Prowess",
|
||||
"BITD.SkillsProwessShort": "Prowess",
|
||||
"BITD.SkillsFinesse": "Finesse",
|
||||
"BITD.SkillsProwl": "Prowl",
|
||||
"BITD.SkillsSkirmish": "Skirmish",
|
||||
"BITD.SkillsWreck": "Wreck",
|
||||
|
||||
"BITD.SkillsResolve": "Resolve",
|
||||
"BITD.SkillsResolveShort": "Resolve",
|
||||
"BITD.SkillsAttune": "Attune",
|
||||
"BITD.SkillsCommand": "Command",
|
||||
"BITD.SkillsConsort": "Consort",
|
||||
|
|
|
@ -138,18 +138,21 @@
|
|||
"BITD.EffectGreat": "Excelente",
|
||||
|
||||
"BITD.SkillsInsight": "Perspicacia",
|
||||
"BITD.SkillsInsightShort": "Per.",
|
||||
"BITD.SkillsHunt": "Cazar",
|
||||
"BITD.SkillsStudy": "Estudiar",
|
||||
"BITD.SkillsSurvey": "Analizar",
|
||||
"BITD.SkillsTinker": "Trastear",
|
||||
|
||||
"BITD.SkillsProwess": "Destreza",
|
||||
"BITD.SkillsProwessShort": "Des.",
|
||||
"BITD.SkillsFinesse": "Afinar",
|
||||
"BITD.SkillsProwl": "Acechar",
|
||||
"BITD.SkillsSkirmish": "Pelear",
|
||||
"BITD.SkillsWreck": "Destrozar",
|
||||
|
||||
"BITD.SkillsResolve": "Voluntad",
|
||||
"BITD.SkillsResolveShort": "Vol.",
|
||||
"BITD.SkillsAttune": "Armonizar",
|
||||
"BITD.SkillsCommand": "Mandar",
|
||||
"BITD.SkillsConsort": "Socializar",
|
||||
|
|
|
@ -131,16 +131,19 @@
|
|||
"BITD.EffectStandard": "Средняя",
|
||||
"BITD.EffectGreat": "Высокая",
|
||||
"BITD.SkillsInsight": "Чутьё",
|
||||
"BITD.SkillsInsightShort": "Чутьё",
|
||||
"BITD.SkillsHunt": "Охота",
|
||||
"BITD.SkillsStudy": "Изучение",
|
||||
"BITD.SkillsSurvey": "Разведка",
|
||||
"BITD.SkillsTinker": "Ремесло",
|
||||
"BITD.SkillsProwess": "Удаль",
|
||||
"BITD.SkillsProwessShort": "Удаль",
|
||||
"BITD.SkillsFinesse": "Сноровка",
|
||||
"BITD.SkillsProwl": "Проникновение",
|
||||
"BITD.SkillsSkirmish": "Драка",
|
||||
"BITD.SkillsWreck": "Разрушение",
|
||||
"BITD.SkillsResolve": "Воля",
|
||||
"BITD.SkillsResolveShort": "Воля",
|
||||
"BITD.SkillsAttune": "Манипулирование",
|
||||
"BITD.SkillsCommand": "Приказ",
|
||||
"BITD.SkillsConsort": "Общение",
|
||||
|
|
|
@ -165,6 +165,19 @@ Hooks.once("init", async function() {
|
|||
return accum;
|
||||
});
|
||||
|
||||
// Concat helper
|
||||
// https://gist.github.com/adg29/f312d6fab93652944a8a1026142491b1
|
||||
// Usage: (concat 'first 'second')
|
||||
Handlebars.registerHelper('concat', function() {
|
||||
var outStr = '';
|
||||
for(var arg in arguments){
|
||||
if(typeof arguments[arg]!='object'){
|
||||
outStr += arguments[arg];
|
||||
}
|
||||
}
|
||||
return outStr;
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
/**
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<div id="attributes-{{attribute_name}}" class="attribute">
|
||||
<div id="attributes-{{attribute_name}}-title" class="attributes-exp">
|
||||
<div class="stripe">
|
||||
<a class="attribute-label roll-die-attribute rollable-text" data-roll-attribute="{{attribute_name}}">{{localize attribute.label}}</a>
|
||||
<a class="attribute-label roll-die-attribute rollable-text" data-roll-attribute="{{attribute_name}}">{{localize (concat attribute.label 'Short')}}</a>
|
||||
</div>
|
||||
<div class="stripe-tooth-body">
|
||||
{{#multiboxes attribute.exp}}
|
||||
|
|
Reference in a new issue