From aed892e4d4738bf02d8949b9aabb94ae33ab7ec8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois-Xavier=20Guillois?= Date: Tue, 6 Jun 2023 14:22:00 +0200 Subject: [PATCH] totems - v0.0.13 --- css/style.css | 85 +++++++-------- css/vermine2047.css | 1 + lang/en.json | 15 ++- system.json | 2 +- template.json | 3 + templates/actor/actor-character-sheet.html | 12 +-- templates/actor/parts/actor-defenses.hbs | 4 +- templates/actor/parts/actor-items.html | 52 ++++++---- templates/actor/parts/actor-totem.hbs | 115 +++++++++++++++++---- templates/actor/parts/actor-weapons.hbs | 20 +++- templates/item/item-weapon-sheet.html | 15 +-- 11 files changed, 220 insertions(+), 104 deletions(-) diff --git a/css/style.css b/css/style.css index 21bec69..3a9bb09 100644 --- a/css/style.css +++ b/css/style.css @@ -237,16 +237,16 @@ } /* Styles limited to vermine2047 sheets */ -.vermine2047 { +.system-vermine2047 { /* ----------------------------------------- */ /* Items Lists */ /* ----------------------------------------- */ /* Example style for Vermine 2047 (can be removed if not needed) */ } -.vermine2047 .item-form { +.system-vermine2047 .item-form { font-family: "Roboto", sans-serif; } -.vermine2047 .sheet-header { +.system-vermine2047 .sheet-header { -webkit-box-flex: 0; -ms-flex: 0 auto; flex: 0 auto; @@ -265,57 +265,61 @@ justify-content: flex-start; margin-bottom: 10px; } -.vermine2047 .sheet-header .profile-img { +.system-vermine2047 .sheet-header .profile-img { -webkit-box-flex: 0; -ms-flex: 0 0 100px; flex: 0 0 100px; height: 100px; margin-right: 10px; } -.vermine2047 .sheet-header .header-fields { +.system-vermine2047 .sheet-header .header-fields { -webkit-box-flex: 1; -ms-flex: 1; flex: 1; } -.vermine2047 .sheet-header h1.charname { +.system-vermine2047 .sheet-header h1.charname { height: 50px; padding: 0px; margin: 5px 0; border-bottom: 0; } -.vermine2047 .sheet-header h1.charname input { +.system-vermine2047 .sheet-header h1.charname input { width: 100%; height: 100%; margin: 0; } -.vermine2047 .sheet-tabs { +.system-vermine2047 .sheet-tabs { -webkit-box-flex: 0; -ms-flex: 0; flex: 0; } -.vermine2047 .sheet-body, -.vermine2047 .sheet-body .tab, -.vermine2047 .sheet-body .tab .editor { +.system-vermine2047 .sheet-body, +.system-vermine2047 .sheet-body .tab, +.system-vermine2047 .sheet-body .tab .editor { height: 100%; + } -.vermine2047 .sheet-body .editor { +.system-vermine2047 .sheet-body .editor { min-height:75px; margin-bottom:1rem; } -.vermine2047 editor:hover .editor-edit { +.system-vermine2047 editor:hover .editor-edit { display: block; } -.vermine2047 .tox .tox-editor-container { - background: #fff; +.system-vermine2047 .tox { + min-height:25vh; } -.vermine2047 .tox .tox-edit-area { +.system-vermine2047 .tox .tox-editor-container { + background: #fff; +} +.system-vermine2047 .tox .tox-edit-area { padding: 0 8px; } -.vermine2047 .resource-label { +.system-vermine2047 .resource-label { font-weight: bold; } -.vermine2047 .items-header { +.system-vermine2047 .items-header { height: 28px; margin: 2px 0; padding: 0; @@ -326,11 +330,11 @@ border: 2px groove #eeede0; font-weight: bold; } -.vermine2047 .items-header > * { +.system-vermine2047 .items-header > * { font-size: 14px; text-align: center; } -.vermine2047 .items-header .item-name { +.system-vermine2047 .items-header .item-name { font-weight: bold; padding-left: 5px; text-align: left; @@ -338,7 +342,7 @@ display: -ms-flexbox; display: flex; } -.vermine2047 .items-list { +.system-vermine2047 .items-list { list-style: none; margin: 0; padding: 0; @@ -346,12 +350,13 @@ scrollbar-width: thin; color: #444; } -.vermine2047 .items-list .item-list { +.system-vermine2047 .items-list .item-list { list-style: none; margin: 0; padding: 0; } -.vermine2047 .items-list .item-name { + +.system-vermine2047 .items-list .item-name { -webkit-box-flex: 2; -ms-flex: 2; flex: 2; @@ -366,41 +371,39 @@ display: -ms-flexbox; display: flex; } -.vermine2047 .items-list .item-name h3, .vermine2047 .items-list .item-name h4 { +.system-vermine2047 .items-list .item-name h3, .system-vermine2047 .items-list .item-name h4 { margin: 0; white-space: nowrap; overflow-x: hidden; } -.vermine2047 .items-list .item-controls { +.system-vermine2047 .items-list .item-controls { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-flex: 0; - -ms-flex: 0 0 100px; - flex: 0 0 100px; -webkit-box-pack: end; -ms-flex-pack: end; justify-content: flex-end; } -.vermine2047 .items-list .item-controls a { +.system-vermine2047 .items-list .item-controls a { font-size: 12px; text-align: center; margin: 0 6px; } -.vermine2047 .items-list .item { +.system-vermine2047 .items-list .item { -webkit-box-align: center; -ms-flex-align: center; align-items: center; padding: 0 2px; border-bottom: 1px solid #c9c7b8; } -.vermine2047 .items-list .item:last-child { +.system-vermine2047 .items-list .item:last-child { border-bottom: none; } -.vermine2047 .items-list .item .item-name { +.system-vermine2047 .items-list .item .item-name { color: #191813; } -.vermine2047 .items-list .item .item-name .item-image { +.system-vermine2047 .items-list .item .item-name .item-image { -webkit-box-flex: 0; -ms-flex: 0 0 30px; flex: 0 0 30px; @@ -409,13 +412,13 @@ border: none; margin-right: 5px; } -.vermine2047 .items-list .item-prop { +.system-vermine2047 .items-list .item-prop { text-align: center; border-left: 1px solid #c9c7b8; border-right: 1px solid #c9c7b8; font-size: 12px; } -.vermine2047 .items-list .items-header { +.system-vermine2047 .items-list .items-header { height: 28px; margin: 2px 0; padding: 0; @@ -426,29 +429,29 @@ border: 2px groove #eeede0; font-weight: bold; } -.vermine2047 .items-list .items-header > * { +.system-vermine2047 .items-list .items-header > * { font-size: 12px; text-align: center; } -.vermine2047 .items-list .items-header .item-name { +.system-vermine2047 .items-list .items-header .item-name { padding-left: 5px; text-align: left; } -.vermine2047 .item-formula { +.system-vermine2047 .item-formula { -webkit-box-flex: 0; -ms-flex: 0 0 200px; flex: 0 0 200px; padding: 0 8px; } -.vermine2047 .effects .item .effect-source, -.vermine2047 .effects .item .effect-duration, -.vermine2047 .effects .item .effect-controls { +.system-vermine2047 .effects .item .effect-source, +.system-vermine2047 .effects .item .effect-duration, +.system-vermine2047 .effects .item .effect-controls { text-align: center; border-left: 1px solid #c9c7b8; border-right: 1px solid #c9c7b8; font-size: 12px; } -.vermine2047 .effects .item .effect-controls { +.system-vermine2047 .effects .item .effect-controls { border: none; } diff --git a/css/vermine2047.css b/css/vermine2047.css index 62b5d7e..79aa8d5 100644 --- a/css/vermine2047.css +++ b/css/vermine2047.css @@ -143,6 +143,7 @@ ul.unstyled li { .actor.sheet .form .characteristics h4 { font-size:1.25rem; } +.actor.sheet .form .tab.equipment h4, .actor.sheet .form .tab.stories h4 { margin-top:0.875rem; } diff --git a/lang/en.json b/lang/en.json index 74bfca4..b9731b8 100644 --- a/lang/en.json +++ b/lang/en.json @@ -42,23 +42,33 @@ "bonus":"Bonus", "penalty":"Malus", "reroll":"Relance", + "equipment":"Equipement", "specialty":"Spécialité", "technique":"Technique", "techniques":"Techniques", "difficulty":"Difficulté", "help":"Entraide", "tooling":"Equipement", + "quantity": "Quantité", + "qty": "Qté", + "weight": "Poids", + "dmg": "Dmg", "damage": "Dommage", "damages": "Dommages", "range": "Portée", "ranges": "Portées", "mobility": "Mobilité", "rarity": "Rareté", + "rarity_sm": "Rar.", "reliability": "Fiabilité", + "reliability_sm": "Fiab.", "ammo": "Munitions", + "ammo_sm": "Mun", "trait": "Trait", "traits": "Traits", - "clew": "Indice" + "clew": "Indice", + "combat": "Combat", + "stories": "Histoires" }, "ITEMS": { "defense": "Protection", @@ -71,6 +81,7 @@ "rumors": "Rumeurs", "ability": "Capacité", "abilities": "Capacités", + "specialties": "Spécialités", "evolution": "Adaptation", "evolutions": "Adaptations" }, @@ -90,7 +101,7 @@ "VERMINE.effect_edit": "Edit Effect", "VERMINE.effect_delete": "Delete Effect", - "VERMINE.Add": "Add", + "VERMINE.Add": "Ajouter", "VERMINE.skill_level.beginner": "Débutant", "VERMINE.skill_level.proficient": "Confirmé", diff --git a/system.json b/system.json index 6016746..ae98657 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "id": "vermine2047", "title": "Vermine 2047", "description": "The Vermine 2047 system for FoundryVTT!", - "version": "0.0.12", + "version": "0.0.13", "compatibility": { "minimum": 10, "verified": "10.287", diff --git a/template.json b/template.json index 375cf19..ddabcd6 100644 --- a/template.json +++ b/template.json @@ -36,6 +36,9 @@ "relations": "", "biography": "" }, + "equipment": { + "description": "" + }, "attributes": { "xp": { "value": 0, diff --git a/templates/actor/actor-character-sheet.html b/templates/actor/actor-character-sheet.html index 7c29791..67e101c 100644 --- a/templates/actor/actor-character-sheet.html +++ b/templates/actor/actor-character-sheet.html @@ -17,7 +17,7 @@ - + @@ -44,23 +44,23 @@ {{> "systems/vermine2047/templates/actor/parts/character-features.hbs"}} -
-

Vermine 2047

+
+

{{ localize 'IDENTITY.totem'}}

{{> "systems/vermine2047/templates/actor/parts/actor-totem.hbs"}}
-

Equipement

+

{{ localize 'VERMINE.equipment'}}

{{> "systems/vermine2047/templates/actor/parts/actor-items.html"}}
-

Combat

+

{{ localize 'VERMINE.combat'}}

{{> "systems/vermine2047/templates/actor/parts/actor-effects.html"}}
-

Histoire

+

{{ localize 'VERMINE.stories'}}

{{> "systems/vermine2047/templates/actor/parts/actor-stories.hbs"}}
diff --git a/templates/actor/parts/actor-defenses.hbs b/templates/actor/parts/actor-defenses.hbs index a1604a9..6c733e7 100644 --- a/templates/actor/parts/actor-defenses.hbs +++ b/templates/actor/parts/actor-defenses.hbs @@ -6,11 +6,11 @@
{{ localize 'VERMINE.rarity'}}
{{ localize 'VERMINE.reliability'}}
{{#each defenses as |item id|}} -
  • +
  • diff --git a/templates/actor/parts/actor-items.html b/templates/actor/parts/actor-items.html index 6e8d400..ec0aa0c 100644 --- a/templates/actor/parts/actor-items.html +++ b/templates/actor/parts/actor-items.html @@ -1,24 +1,36 @@ -
      -
    1. -
      Nom
      - -
    2. - {{#each gear as |item id|}} -
    3. -
      -
      - +
      +
      +
        +
      1. +
        {{ localize 'IDENTITY.name'}}
        +
        {{ localize 'VERMINE.qty'}}
        +
        {{ localize 'VERMINE.weight'}}
        +
        +
        -
      -

      {{item.name}}

      -
      - -
      -
    4. - {{/each}} -
    +
  • + {{#each gear as |item id|}} +
  • +
    +
    + +
    + {{item.name}} +
    +

    {{item.system.quantity}}

    +

    {{item.system.weight}}

    +
    + +
    +
  • + {{/each}} + +
    +
    +

    {{ localize 'IDENTITY.notes'}}

    + {{editor system.equipment.description target="system.equipment.description" button=true owner=owner editable=editable}} +
    +

    {{localize 'ITEMS.weapons'}}

    {{> "systems/vermine2047/templates/actor/parts/actor-weapons.hbs"}}

    {{localize 'ITEMS.defenses'}}

    diff --git a/templates/actor/parts/actor-totem.hbs b/templates/actor/parts/actor-totem.hbs index e171067..adf6588 100644 --- a/templates/actor/parts/actor-totem.hbs +++ b/templates/actor/parts/actor-totem.hbs @@ -1,23 +1,96 @@ -
      -
    1. -
      Principes
      -
    2. -
    3. -
      Interdits
      -
    4. - {{#each gear as |item id|}} -
    5. -
      -
      - -
      -

      {{item.name}}

      +

      + {{ smarttl 'TOTEMS' system.identity.totem 'name' }} +

      +

      {{ smarttl 'TOTEMS' system.identity.totem 'description' }}

      +
      +
      +
      Principes
      -
      {{item.system.formula}}
      -
      - - +
      +
      Interdits
      -
    6. - {{/each}} -
    \ No newline at end of file + +
    +
    +
    +

    {{ localize 'ITEMS.abilities'}}

    +
      + {{#each abilities as |item id|}} +
    1. + +
      + + +
      +
    2. + {{/each}} +
    +
    +
    +

    {{ localize 'ITEMS.specialties'}}

    +
      + {{#each specialties as |item id|}} +
    1. + +
      + + +
      +
    2. + {{/each}} +
    +
    +
    +

    {{ localize 'ITEMS.backgrounds'}}

    +
      + {{#each backgrounds as |item id|}} +
    1. + +
      + + +
      +
    2. + {{/each}} +
    +
    +
    +

    {{ localize 'ITEMS.traumas'}}

    +
      + {{#each traumas as |item id|}} +
    1. + +
      + + +
      +
    2. + {{/each}} +
    +
    +
    +

    {{ localize 'ITEMS.evolutions'}}

    +
      + {{#each evolutions as |item id|}} +
    1. + +
      + + +
      +
    2. + {{/each}} +
    +
    +
    + \ No newline at end of file diff --git a/templates/actor/parts/actor-weapons.hbs b/templates/actor/parts/actor-weapons.hbs index 39ec28c..90bd52c 100644 --- a/templates/actor/parts/actor-weapons.hbs +++ b/templates/actor/parts/actor-weapons.hbs @@ -1,18 +1,28 @@
    1. -
      Name
      +
      {{ localize 'IDENTITY.name'}}
      +
      {{ localize 'VERMINE.ranges'}}
      +
      {{ localize 'VERMINE.dmg'}}
      +
      {{ localize 'VERMINE.ammo_sm'}}
      +
      {{ localize 'VERMINE.rarity_sm'}}
      +
      {{ localize 'VERMINE.reliability_sm'}}
    2. {{#each weapons as |item id|}} -
    3. -
      +
    4. + -

      {{item.name}}

      +

      {{item.system.min_range}} / {{item.system.max_range}}

      +

      {{item.system.damage}}

      +

      {{item.system.ammo}}

      +

      {{item.system.rarity}}

      +

      {{item.system.reliability}}

      diff --git a/templates/item/item-weapon-sheet.html b/templates/item/item-weapon-sheet.html index 45dd708..49bc741 100644 --- a/templates/item/item-weapon-sheet.html +++ b/templates/item/item-weapon-sheet.html @@ -6,20 +6,23 @@
      -
      +
      + {{ log system }} -
      +
      {{editor system.description target="system.description" rollData=rollData button=true owner=owner editable=editable}}