Improve sheets to be able to add the french version (#102)

* Improve sheets to be able to add the french version

* Update class.html

Logic field should be plain text.

* Update crew_ability.html

Co-authored-by: megastruktur <astromortis@gmail.com>
This commit is contained in:
Clément Bonnet 2021-03-04 07:44:24 +01:00 committed by GitHub
parent 4c8bae052d
commit 9f004950f4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 44 additions and 27 deletions

View file

@ -164,6 +164,11 @@
"BITD.Position": "Position",
"BITD.Effect": "Effect",
"BITD.Modifier": "Modifier",
"BITD.Light": "light",
"BITD.Normal": "normal",
"BITD.Encumbered": "encumbered",
"BITD.OverMax": "over max",
"BITD.Drain": "Drain",
"BITD.Wear": "Wear",

View file

@ -30,10 +30,10 @@ export class BladesActorSheet extends BladesSheet {
data.data.loadout = loadout;
// Encumbrance Levels
let load_level=["light","light","light","light","normal","normal","heavy","Encumbered",
"Encumbered","Encumbered","over max"];
let mule_level=["light","light","light","light","light","light","normal","normal",
"heavy","Encumbered","over max"];
let load_level=["BITD.Light","BITD.Light","BITD.Light","BITD.Light","BITD.Normal","BITD.Normal","BITD.Heavy","BITD.Encumbered",
"BITD.Encumbered","BITD.Encumbered","BITD.OverMax"];
let mule_level=["BITD.Light","BITD.Light","BITD.Light","BITD.Light","BITD.Light","BITD.Light","BITD.Normal","BITD.Normal",
"BITD.Heavy","BITD.Encumbered","BITD.OverMax"];
let mule_present=0;
//Sanity Check

View file

@ -11,7 +11,7 @@ export class BladesCrewSheet extends BladesSheet {
return mergeObject(super.defaultOptions, {
classes: ["blades-in-the-dark", "sheet", "actor"],
template: "systems/blades-in-the-dark/templates/crew-sheet.html",
width: 930,
width: 940,
height: 1020,
tabs: [{navSelector: ".tabs", contentSelector: ".tab-content", initial: "turfs"}]
});

View file

@ -9,7 +9,7 @@ export class BladesItemSheet extends ItemSheet {
return mergeObject(super.defaultOptions, {
classes: ["blades-in-the-dark", "sheet", "item"],
width: 'auto',
width: 560,
height: 'auto',
tabs: [{navSelector: ".sheet-tabs", contentSelector: ".sheet-body", initial: "description"}]
});

View file

@ -80,7 +80,7 @@ $hover-brightness: 0.8;
.editor,
.editor-content {
min-height: 280px;
min-height: 150px;
}
.flex-horizontal {
@ -453,10 +453,16 @@ $hover-brightness: 0.8;
// Turfs.
#turf-container {
overflow-x: scroll;
overflow-y: clip;
}
#turf-list {
display: flex;
flex-direction: column;
width: 855px;
.turf-row {
display: flex;

View file

@ -74,7 +74,7 @@
}
* .editor,
* .editor-content {
min-height: 280px;
min-height: 150px;
}
* .flex-horizontal {
display: flex;
@ -693,9 +693,14 @@
* #crew-reputation input[disabled=disabled] + label {
background-image: url(assets/teeth/stresstooth-black.png);
}
* #turf-container {
overflow-x: scroll;
overflow-y: clip;
}
* #turf-list {
display: flex;
flex-direction: column;
width: 855px;
}
* #turf-list .turf-row {
display: flex;

View file

@ -272,7 +272,7 @@
<div class="item flex-horizontal" data-item-id="{{item._id}}">
<div class="item-body flex-horizontal">
<b><div class="item-name">{{item.name}}</div></b>
<div class="item-description">{{item.data.description}}</div>
<div class="item-description">{{{item.data.description}}}</div>
</div>
<a class="item-control item-delete" title="{{localize 'BITD.TitleDeleteItem'}}"><i class="fas fa-trash"></i></a>
</div>
@ -285,7 +285,7 @@
{{!-- Owned Items Tab --}}
<div id="loadout" class="tab flex-vertical" data-tab="loadout">
<div class="label-stripe flex-horizontal">
<p>{{localize "BITD.Loadout"}}: {{data.loadout}}/{{data.load_level}} </p>
<p>{{localize "BITD.Loadout"}}: {{data.loadout}}/{{localize data.load_level}} </p>
<p><a class="item-add-popup" data-item-type="item"><i class="fas fa-plus-square"></i></a></p>
</div>
<div>
@ -295,7 +295,7 @@
<div class="item-body flex-horizontal">
<img src="{{item.img}}" title="{{item.name}}" width="24" height="24"/>
<div class="item-name">{{item.name}}</div>
<div class="item-description">{{item.data.description}}</div>
<div class="item-description">{{{item.data.description}}}</div>
</div>
<a class="item-control item-delete" title="{{localize 'BITD.TitleDeleteItem'}}"><i class="fas fa-trash"></i></a>
</div>

View file

@ -30,7 +30,7 @@
<div class="grow-two flex-vertical">
<div id="lair">
<label for="crew-lair">Lair</label>
<label for="crew-lair">{{localize "BITD.Lair"}}</label>
<input type="text" id="crew-lair" name="data.lair" value="{{data.lair}}">
</div>
@ -224,7 +224,7 @@
{{!-- Crew XP --}}
<div class="flex-fertical">
<div class="big-teeth-section">
<div class="big-teeth">
<div id="crew-xp" class="big-teeth">
<label class="black-label" for="crew-experience-0">{{localize "BITD.CrewXP"}}</label>
{{#multiboxes data.experience}}
<input type="radio" id="crew-experience-0" name="data.experience" value="0" dtype="Radio">
@ -275,7 +275,7 @@
<div class="item flex-horizontal" data-item-id="{{item._id}}">
<div class="item-body item-sheet-open flex-horizontal">
<b><div class="item-name">{{item.name}}</div></b>
<div class="item-description">{{item.data.description}}</div>
<div class="item-description">{{{item.data.description}}}</div>
</div>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>
@ -294,7 +294,7 @@
<div class="item flex-horizontal" data-item-id="{{item._id}}">
<div class="item-body item-sheet-open flex-horizontal">
<b><div class="item-name">{{item.name}}</div></b>
<div class="item-description">{{item.data.description}}</div>
<div class="item-description">{{{item.data.description}}}</div>
</div>
<a class="item-control item-delete" title="Delete Item"><i class="fas fa-trash"></i></a>
</div>

View file

@ -8,7 +8,7 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</section>
<div class="flex-vertical">
<label class="label-stripe">{{localize "BITD.AbilityPrice"}}</label>

View file

@ -8,13 +8,13 @@
<section class="flex-vertical">
<label class="label-stripe">{{localize "BITD.Description"}}</label>
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
<label class="label-stripe">{{localize "BITD.ExpClues"}}</label>
<div><i>- {{localize "BITD.ClassExpClue1"}}</i></div>
<div>{{localize "BITD.ClassExpClueDescription"}}</div>
<div><i>- {{localize "BITD.ClassExpClue2"}}</i></div>
<div><i>- {{localize "BITD.ClassExpClue3"}}</i></div>
<textarea name="data.experience_clues">{{data.experience_clues}}</textarea>
{{editor content=data.experience_clues target="data.experience_clues" button=true owner=owner editable=editable}}
{{isG}}
<label class="label-stripe">{{localize "BITD.Logic"}}</label>

View file

@ -8,7 +8,7 @@
{{!-- Sheet Body --}}
<section class="sheet-body">
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</section>
<div class="flex-vertical">

View file

@ -8,10 +8,11 @@
<section class="flex-vertical">
<label class="label-stripe">{{localize "BITD.Description"}}</label>
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
<label class="label-stripe">{{localize "BITD.ExpClues"}}</label>
<textarea name="data.experience_clues">{{data.experience_clues}}</textarea>
{{editor content=data.experience_clues target="data.experience_clues" button=true owner=owner editable=editable}}
<label class="label-stripe">{{localize "BITD.Turf"}}</label>
<div id="turf-container">{{> "systems/blades-in-the-dark/templates/parts/turf-list.html" turfs_data=data.turfs can_edit=true editable=editable}}</div>
</section>
{{> "systems/blades-in-the-dark/templates/parts/turf-list.html" turfs_data=data.turfs can_edit=true editable=editable}}
</form>

View file

@ -9,7 +9,7 @@
{{!-- Sheet Body --}}
<section class="sheet-body flex-vertical">
<label class="label-stripe">{{localize "BITD.Description"}}</label>
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
<label class="label-stripe">{{localize "BITD.CrewType"}}</label>
<input type="text" name="data.class" value="{{data.class}}">
<label class="label-stripe">{{localize "BITD.Price"}}</label>

View file

@ -8,7 +8,7 @@
{{!-- Sheet Body --}}
<section class="sheet-body flex-vertical">
<textarea name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
<label class="label-stripe">{{localize "BITD.Loadout"}}</label>
<input id="item-load" type="text" name="data.load" value="{{data.load}}">
<label class="label-stripe">{{localize "BITD.Class"}}</label>

View file

@ -9,6 +9,6 @@
{{!-- Sheet Body --}}
<section class="sheet-body flex-vertical">
<label class="label-stripe">{{localize "BITD.Description"}}</label>
<textarea rows="20" name="data.description">{{data.description}}</textarea>
{{editor content=data.description target="data.description" button=true owner=owner editable=editable}}
</section>
</form>

View file

@ -40,7 +40,7 @@
{{else}}
<p class="turf-name">{{localize turf.name}}</p>
{{#if turf.description}}
<p class="turf-description">{{localize turf.description}}</p>
<p class="turf-description">{{{localize turf.description}}}</p>
{{/if}}
{{#noteq id "8"}}
<a class="turf-control turf-select" title="Select" data-turf-id="{{id}}" data-turf-status="{{turf.value}}"><i class="fas fa-circle"></i></a>