diff --git a/lang/en.json b/lang/en.json index de1edb8e..47b8e11b 100644 --- a/lang/en.json +++ b/lang/en.json @@ -52,6 +52,7 @@ "WITCHER.Armor.Reliable": "Rel.", "WITCHER.Armor.EncumbranceValue": "Encumbrance", "WITCHER.Armor.Resistances": "Resistances", + "WITCHER.Armor.Res": "Res", "WITCHER.Armor.Bludgeoning": "Bludgeoning", "WITCHER.Armor.Slashing": "Slashing", "WITCHER.Armor.Percing": "Percing", diff --git a/scripts/TheWitcherTRPG.js b/scripts/TheWitcherTRPG.js index d06f8ccc..0a6c5791 100644 --- a/scripts/TheWitcherTRPG.js +++ b/scripts/TheWitcherTRPG.js @@ -24,7 +24,8 @@ async function preloadHandlebarsTemplates(){ "systems/TheWitcherTRPG/templates/partials/monster-inventory-tab.html", "systems/TheWitcherTRPG/templates/partials/monster-details-tab.html", "systems/TheWitcherTRPG/templates/partials/monster-spell-tab.html", - "systems/TheWitcherTRPG/templates/partials/skill-display.html" + "systems/TheWitcherTRPG/templates/partials/skill-display.html", + "systems/TheWitcherTRPG/templates/partials/item-header.html" ]; return loadTemplates(templatePath); } diff --git a/styles/item-sheets.css b/styles/item-sheets.css index 0475c8a2..f7adf1a3 100644 --- a/styles/item-sheets.css +++ b/styles/item-sheets.css @@ -1,22 +1,90 @@ -.item-collum { +.item-header { + display: flex; +} + +.item-header img{ + height: 100px; + max-width: 200px; +} + +.itemname { + margin-left: 5px; +} + +.item-header-row { + display: table; + margin: 0 auto; +} + +.item-header-first-collum { + width: 400px; +} + +.item-header-second-collum { display: table-cell; text-align: center; width: 100px; } +.item-header-second-collum input { + width: 75px; + height: 27px; +} + +.item-header-second-collum label { + display: block; +} + +.item-header-spell { + width: 33.33%; +} + +.item-options { + display: flex; + width: 501px; + height: 54px; +} + +.item-option-tickbox { + height: 27px; +} + +.item-option-tickbox label { + float: left; + margin-top: 5px; +} + +.item-option-tickbox input { + float: right; +} + +.item-collum { + text-align: center; + width: 33.33%; +} + +.item-collum label{ + display: block; +} + .item-row { - display: table; + display: flex; text-align: center; } -.item-collum input { - width: 75px; - height: 27px; - margin-right: 5px; - margin-left: 5px; +.item-second-collum{ + text-align: center; + width: 50%; +} + +.item-second-collum label{ + display: block; + width: 100%; } -.item-selector select{ +.----item-collum input { + width: 75px; + height: 27px; margin-right: 5px; margin-left: 5px; } \ No newline at end of file diff --git a/templates/partials/item-header.html b/templates/partials/item-header.html new file mode 100644 index 00000000..b0b7dfd3 --- /dev/null +++ b/templates/partials/item-header.html @@ -0,0 +1,76 @@ +
+ +
+

+
+ {{#unless data.isSpell}} +
+ + +
+
+ + +
+
+ {{#if data.isMutagen}} + + + {{/if}} + {{#unless data.isMutagen}} + + + {{/unless}} +
+ {{/unless}} + {{#if data.isSpell}} +
+ + +
+
+ {{#if (eq data.class "Hexes")}} + + + {{/if}} + {{#unless (eq data.class "Hexes")}} + + + {{/unless}} +
+
+ {{#unless (eq data.staminaIsVar true)}} + + + {{/unless}} +
+ {{/if}} +
+
+
diff --git a/templates/sheets/alchemical-sheet.html b/templates/sheets/alchemical-sheet.html index 12b6bcf4..3d226721 100644 --- a/templates/sheets/alchemical-sheet.html +++ b/templates/sheets/alchemical-sheet.html @@ -1,23 +1,5 @@
-
- -

-
-
-
- - -
-
- - -
-
- - -
-
- + {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} {{!-- Attributes Tab --}} diff --git a/templates/sheets/armor-sheet.html b/templates/sheets/armor-sheet.html index de44ca7f..b3b8e8d5 100644 --- a/templates/sheets/armor-sheet.html +++ b/templates/sheets/armor-sheet.html @@ -1,28 +1,23 @@ -
- -

-
-
-
- - + {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
+
+
+ +
-
- - -
-
- - +
+
+
+ +
-
-
- - - - +
+
+ + +
{{!-- Attributes Tab --}} diff --git a/templates/sheets/component-sheet.html b/templates/sheets/component-sheet.html index 7b3a6bdd..fb6cc339 100644 --- a/templates/sheets/component-sheet.html +++ b/templates/sheets/component-sheet.html @@ -1,22 +1,7 @@ -
- -

-
-
+ {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
- - -
-
- - -
-
- - -
-
-
+
{{#if (eq data.type "substances")}} - -
+ {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
- - +
+ + +
- - -
-
- - -
-
-
- - -
diff --git a/templates/sheets/enhancement-sheet.html b/templates/sheets/enhancement-sheet.html index b78562c6..e0a4dec5 100644 --- a/templates/sheets/enhancement-sheet.html +++ b/templates/sheets/enhancement-sheet.html @@ -1,21 +1,6 @@ -
- -

-
-
-
- - -
-
- - -
-
- - -
+ {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
- -
-
- - -
-
- - -
-
- - -
-
+ {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} {{!-- Sheet Tab Navigation --}}
diff --git a/templates/sheets/spell-sheet.html b/templates/sheets/spell-sheet.html index 4af87606..e593713d 100644 --- a/templates/sheets/spell-sheet.html +++ b/templates/sheets/spell-sheet.html @@ -1,56 +1,14 @@ -
- -

-
-
-
- - -
-
- {{#if (eq data.class "Hexes")}} - - - {{/if}} - {{#unless (eq data.class "Hexes")}} - - - {{/unless}} -
+ + {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
+
+
- {{#unless (eq data.staminaIsVar true)}} - - - {{/unless}} -
-
-
-
{{#if (or (eq data.class "Spells") (eq data.class "Witcher"))}} @@ -75,7 +33,7 @@

{{/if}}

-
+
{{#if (eq data.class "Witcher")}} - + {{#unless (eq data.class "Hexes")}}
diff --git a/templates/sheets/valuable-sheet.html b/templates/sheets/valuable-sheet.html index 0869b2bf..5ff8d5d8 100644 --- a/templates/sheets/valuable-sheet.html +++ b/templates/sheets/valuable-sheet.html @@ -1,57 +1,46 @@ -
- -

-
-
-
- - -
-
- - -
-
- - -
-
- - -
-
-
- - -
-
- + {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
+
+ + +
+
+
+
+ + +
+
+
+ + + {{!-- effect Tab --}}
diff --git a/templates/sheets/weapon-sheet.html b/templates/sheets/weapon-sheet.html index ea8d56da..f3b0905d 100644 --- a/templates/sheets/weapon-sheet.html +++ b/templates/sheets/weapon-sheet.html @@ -1,22 +1,23 @@ -
- -

-
-
+ {{>"systems/TheWitcherTRPG/templates/partials/item-header.html"}} +
- - +
+ + +
+
+ + +
- - +
+ + +
- - -
-
{{#unless data.isAmmo}}
-
- - - - - - -
{{localize "WITCHER.Mutagen.MutSource"}}{{localize "WITCHER.Item.Availability"}}{{localize "WITCHER.Valuable.Conceal"}}{{localize "WITCHER.Valuable.Conceal"}}
{{localize "WITCHER.Weapon.Type"}}