From 3b10ac18c245675ca60918d31e079f32c1deeab1 Mon Sep 17 00:00:00 2001 From: sladecraven Date: Mon, 24 Oct 2022 15:39:09 +0200 Subject: [PATCH] Armes/Protections/Equipement --- modules/hawkmoon-utility.js | 3 +- styles/simple.css | 16 ++- template.json | 38 ++++--- templates/item-arme-sheet.html | 156 ++++++++++++++------------- templates/item-bouclier-sheet.html | 43 -------- templates/item-equipement-sheet.html | 24 ++--- templates/item-monnaie-sheet.html | 15 ++- templates/item-protection-sheet.html | 60 +++++------ 8 files changed, 174 insertions(+), 181 deletions(-) delete mode 100644 templates/item-bouclier-sheet.html diff --git a/modules/hawkmoon-utility.js b/modules/hawkmoon-utility.js index d423092..ee35404 100644 --- a/modules/hawkmoon-utility.js +++ b/modules/hawkmoon-utility.js @@ -122,7 +122,8 @@ export class HawkmoonUtility { 'systems/fvtt-hawkmoon-cyd/templates/editor-notes-gm.html', 'systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html', 'systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html', - 'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html' + 'systems/fvtt-hawkmoon-cyd/templates/partial-list-niveau.html', + 'systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html' ] return loadTemplates(templatePaths); } diff --git a/styles/simple.css b/styles/simple.css index a3c499f..d10f36b 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -713,6 +713,12 @@ ul, li { flex-grow: 0; } +.numeric-input { + text-align: right; + direction: rtl; + padding: 5px; +} + .input-numeric-short { width: 40px; max-width: 40px; @@ -1324,11 +1330,13 @@ ul, li { min-width: 9rem; } .item-field-label-short { + padding-top: 6px; flex-grow:1; max-width: 4rem; min-width: 4rem; } .item-field-label-medium { + padding-top: 6px; flex-grow:1; max-width: 6rem; min-width: 6rem; @@ -1339,11 +1347,17 @@ ul, li { max-width: 8rem; min-width: 8rem; } +.item-field-label-long2 { + padding-top: 6px; + flex-grow:1; + max-width: 20rem; + min-width: 20rem; +} .item-control-end { align-self: flex-end; } .alternate-list { - margin-top: 4px; + margin-top: 2px; flex-wrap: nowrap; } .item-filler { diff --git a/template.json b/template.json index 02b5084..3c4e650 100644 --- a/template.json +++ b/template.json @@ -101,6 +101,13 @@ "templates": { "base": { "description": "" + }, + "basequip": { + "prixpo": 0, + "prixca": 0, + "prixsc": 0, + "rarete": 0, + "equipped": false } }, "types": [ @@ -149,10 +156,9 @@ ] }, "equipement": { - "rarete": 0, - "prix": 0, "templates": [ - "base" + "base", + "basequip" ] }, "competence": { @@ -168,35 +174,34 @@ }, "arme": { "typearme": "", - "isdefense": false, "bonusmaniementoff": 0, - "bonusmaniementdef": 0, + "seuildefense": 0, + "onlevelonly": false, "degats": "", "deuxmains": false, + "percearmure": false, + "percearmurevalue": 0, "courte": 0, "moyenne": 0, "longue": 0, "tr": 0, - "rarete": 0, - "prix": 0, - "equipped": false, "templates": [ - "base" + "base", + "basequip" ] }, "protection": { - "typeprotection": "", "protection": 0, - "rarete": 0, - "prix": 0, - "equipped": false, + "adversitepoids" :0, "templates": [ - "base" + "base", + "basequip" ] }, "monnaie": { "templates": [ - "base" + "base", + "basequip" ] }, "artefact": { @@ -211,7 +216,8 @@ "avantages": "", "competences": "", "templates": [ - "base" + "base", + "basequip" ] } diff --git a/templates/item-arme-sheet.html b/templates/item-arme-sheet.html index 6a488ab..4297282 100644 --- a/templates/item-arme-sheet.html +++ b/templates/item-arme-sheet.html @@ -1,84 +1,94 @@
-
- -
-

-
-
+
+ +
+

+
+
- {{!-- Sheet Body --}} -
- -
- - - + {{#select system.typearme}} {{/select}} - - - - - - - - - - - {{#if data.isdefense}} - - - - + + +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • + {{#if system.onlevelonly}} + {{else}} +
  • + + +
  • {{/if}} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +
  • + + +
  • +
  • + + +
  • + {{#if system.percearmure}} +
  • + + +
  • + {{/if}} +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • +
  • + + +
  • - {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}} + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html}}
    - -
    -
    + + + \ No newline at end of file diff --git a/templates/item-bouclier-sheet.html b/templates/item-bouclier-sheet.html deleted file mode 100644 index 85e8934..0000000 --- a/templates/item-bouclier-sheet.html +++ /dev/null @@ -1,43 +0,0 @@ -
    -
    - -
    -

    -
    -
    - - {{!-- Sheet Body --}} -
    - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - {{> systems/fvtt-mournblade/templates/partial-item-description.html}} - -
    - -
    -
    diff --git a/templates/item-equipement-sheet.html b/templates/item-equipement-sheet.html index 2a17604..142533c 100644 --- a/templates/item-equipement-sheet.html +++ b/templates/item-equipement-sheet.html @@ -6,25 +6,21 @@ + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html}} + {{!-- Sheet Body --}}
    - - {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}} +
    + +
      + + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html}} + +
    +
    diff --git a/templates/item-monnaie-sheet.html b/templates/item-monnaie-sheet.html index 8ebe157..f2c2762 100644 --- a/templates/item-monnaie-sheet.html +++ b/templates/item-monnaie-sheet.html @@ -6,12 +6,21 @@ + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html}} + {{!-- Sheet Body --}}
    - -
    - + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}} + + +
    + +
      + + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html}} + +
    diff --git a/templates/item-protection-sheet.html b/templates/item-protection-sheet.html index 6e6b4bc..b0d3070 100644 --- a/templates/item-protection-sheet.html +++ b/templates/item-protection-sheet.html @@ -1,35 +1,35 @@
    -
    - -
    -

    -
    -
    +
    + +
    +

    +
    +
    - {{!-- Sheet Body --}} -
    - -
    - - - - - - - - - - - - - - - - + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-nav.html}} - {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}} + {{!-- Sheet Body --}} +
    + + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-description.html}} + +
    + +
      +
    • + + +
    • +
    • + + +
    • + + {{> systems/fvtt-hawkmoon-cyd/templates/partial-item-prix.html}}
    - -
    - + +
    + \ No newline at end of file