This commit is contained in:
François-Xavier Guillois
2023-06-05 14:00:04 +02:00
parent 4421e4de2e
commit af5ce9efcd
7 changed files with 96 additions and 34 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 508 KiB

+8
View File
@@ -293,6 +293,14 @@
.totem .sheet-body .tab .editor { .totem .sheet-body .tab .editor {
height: 100%; height: 100%;
} }
.totem .sheet-body .editor {
min-height:75px;
margin-bottom:1rem;
}
.totem editor:hover .editor-edit {
display: block;
}
.totem .tox .tox-editor-container { .totem .tox .tox-editor-container {
background: #fff; background: #fff;
} }
+23 -6
View File
@@ -52,7 +52,8 @@ ul.unstyled li {
} }
.padding-with-frieze { .padding-with-frieze {
margin: 0 23% !important; margin-left:18% !important;
margin-right:10% !important;
} }
.padding-with-frieze li { .padding-with-frieze li {
@@ -91,11 +92,7 @@ ul.unstyled li {
} }
.actor.sheet .form aside { .actor.sheet .form aside {
display: flex;
grid-row: span 1 / span 1; grid-row: span 1 / span 1;
flex-direction: column;
justify-content: space-between;
align-items: center;
background-image: url(/systems/totem/assets/images/ui/barre_lateral.webp); background-image: url(/systems/totem/assets/images/ui/barre_lateral.webp);
background-repeat: no-repeat; background-repeat: no-repeat;
background-position: bottom center; background-position: bottom center;
@@ -106,6 +103,23 @@ ul.unstyled li {
grid-row: span 1 / span 1; grid-row: span 1 / span 1;
} }
.actor.sheet .form aside .image-wrapper {
margin: 1rem auto 3rem;
text-align: center;
}
.actor.sheet .form aside .image-wrapper img {
width:170px;
height:145px;
}
.actor.sheet .form aside .paper {
margin-top: 1rem;
height: 350px;
}
.actor.sheet .form aside .second-paper {
margin-top: 4rem;
height: 150px;
}
.actor.sheet .form h3 { .actor.sheet .form h3 {
font-family: "DistressBlack", sans-serif; font-family: "DistressBlack", sans-serif;
text-align: center; text-align: center;
@@ -137,10 +151,13 @@ ul.unstyled li {
.system-totem .sheet.actor .sheet-body { .system-totem .sheet.actor .sheet-body {
height: calc(100% - 35px); height: calc(100% - 35px);
overflow: hidden; overflow-y: auto;
overflow-x: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-wrap: nowrap; flex-wrap: nowrap;
max-height: 720px;
padding-bottom:1rem;
} }
.system-totem .sheet.actor form { .system-totem .sheet.actor form {
width: 100%; width: 100%;
+2 -2
View File
@@ -121,8 +121,8 @@
"animal": { "name": "L'Animal" }, "animal": { "name": "L'Animal" },
"tool": { "name": "L'Outil" }, "tool": { "name": "L'Outil" },
"weapon": { "name": "L'Arme" }, "weapon": { "name": "L'Arme" },
"survival": { "name": "Les Terres Sauvages" }, "survival": { "name": "La Survie" },
"world": { "name": "L'Inconnu" } "world": { "name": "La Terre" }
}, },
"SKILLS": { "SKILLS": {
"arts": { "name": "Arts"}, "arts": { "name": "Arts"},
+1 -1
View File
@@ -2,7 +2,7 @@
"id": "totem", "id": "totem",
"title": "Totem", "title": "Totem",
"description": "The Totem system for FoundryVTT!", "description": "The Totem system for FoundryVTT!",
"version": "0.0.8", "version": "0.0.9",
"compatibility": { "compatibility": {
"minimum": 10, "minimum": 10,
"verified": "10.287", "verified": "10.287",
+14 -7
View File
@@ -44,9 +44,8 @@
<!-- Character --> <!-- Character -->
{{> "systems/totem/templates/actor/parts/character-features.hbs"}} {{> "systems/totem/templates/actor/parts/character-features.hbs"}}
</div> </div>
<div class="tab instincts" data-group="primary" data-tab="totem"> <div class="tab totem" data-group="primary" data-tab="totem">
<h3>Totem</h3> <h3>Totem</h3>
<!-- Rituals -->
{{> "systems/totem/templates/actor/parts/actor-totem.hbs"}} {{> "systems/totem/templates/actor/parts/actor-totem.hbs"}}
</div> </div>
<div class="tab equipment" data-group="primary" data-tab="equipment"> <div class="tab equipment" data-group="primary" data-tab="equipment">
@@ -61,11 +60,19 @@
</div> </div>
<div class="tab stories" data-group="primary" data-tab="stories"> <div class="tab stories" data-group="primary" data-tab="stories">
<h3>Histoire</h3> <h3>Histoire</h3>
<section class="biography-details"> <h4>{{ localize 'IDENTITY.theme'}}</h4>
<label class="details-label">Bio</label> {{editor system.identity.theme target="system.identity.theme" button=true owner=owner}}
{{editor system.stories.biography target="system.stories.biography" button=true owner=owner editable=editable}} <h4>{{ localize 'IDENTITY.instincts'}}</h4>
</section> {{editor system.identity.instincts target="system.identity.instincts" button=true owner=owner editable=editable}}
<h4>{{ localize 'IDENTITY.prohibits'}}</h4>
{{editor system.identity.prohibits target="system.identity.prohibits" button=true owner=owner editable=editable}}
<h4>{{ localize 'IDENTITY.objectives'}}</h4>
{{editor system.identity.objectives target="system.identity.objectives" button=true owner=owner editable=editable}}
<h4>{{ localize 'IDENTITY.relations'}}</h4>
{{editor system.identity.relations target="system.identity.relations" button=true owner=owner editable=editable}}
<h4>{{ localize 'IDENTITY.biography'}}</h4>
{{editor system.identity.biography target="system.identity.biography" button=true owner=owner editable=editable}}
</div> </div>
</section> </section>
+46 -16
View File
@@ -1,11 +1,7 @@
<ul class="padding-with-frieze unstyled"> <div class="image-wrapper">
<li> <img class="profile-img" src="{{actor.img}}" data-edit="img" title="{{actor.name}}" height="100" width="100"/>
<div class="flexrow flex-group-center items-center"> </div>
<label for="system.identity.age" class="resource-label flexlarge align-left">{{ localize "IDENTITY.age"}}</label> <ul class="padding-with-frieze unstyled paper">
<input type="number" name="system.identity.age" value="{{ system.identity.age }}" data-dtype="Number"/>
<span>ans</span>
</div>
</li>
<li> <li>
<div class="flexrow flex-group-center items-center"> <div class="flexrow flex-group-center items-center">
<label for="system.identity.height" class="resource-label flexlarge align-left">{{ localize "IDENTITY.height"}}</label> <label for="system.identity.height" class="resource-label flexlarge align-left">{{ localize "IDENTITY.height"}}</label>
@@ -29,14 +25,6 @@
</select> </select>
</div> </div>
</li> </li>
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.totem" class="resource-label flexlarge align-left">{{ localize "IDENTITY.totem"}}</label>
<select name="system.identity.totem" class="w-full">
{{selectOptions config.totems selected=system.identity.totem localize=true}}
</select>
</div>
</li>
<li> <li>
<div class="flexcol flex-group-center items-center w-full"> <div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.origin" class="resource-label flexlarge align-left">{{ localize "IDENTITY.origin"}}</label> <label for="system.identity.origin" class="resource-label flexlarge align-left">{{ localize "IDENTITY.origin"}}</label>
@@ -45,4 +33,46 @@
</select> </select>
</div> </div>
</li> </li>
{{#if system.identity.theme}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.theme" class="resource-label flexlarge align-left">{{ localize "IDENTITY.theme"}}</label>
{{{ system.identity.theme }}}
</div>
</li>
{{/if}}
{{#if system.identity.instincts}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.instincts" class="resource-label flexlarge align-left">{{ localize "IDENTITY.instincts"}}</label>
{{{ system.identity.instincts }}}
</div>
</li>
{{/if}}
{{#if system.identity.prohibits}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.prohibits" class="resource-label flexlarge align-left">{{ localize "IDENTITY.prohibits"}}</label>
{{{ system.identity.prohibits }}}
</div>
</li>
{{/if}}
{{#if system.identity.objectives}}
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.objectives" class="resource-label flexlarge align-left">{{ localize "IDENTITY.objectives"}}</label>
{{{ system.identity.objectives }}}
</div>
</li>
{{/if}}
</ul> </ul>
{{#if system.identity.relations}}
<ul class="padding-with-frieze unstyled second-paper">
<li>
<div class="flexcol flex-group-center items-center w-full">
<label for="system.identity.relations" class="resource-label flexlarge align-left">{{ localize "IDENTITY.relations"}}</label>
{{{ system.identity.relations }}}
</div>
</li>
</ul>
{{/if}}