From c5f752331a5d7ee3eb14edc39a12bd563789226f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20CAMPO?= Date: Fri, 27 May 2022 04:22:01 +0200 Subject: [PATCH] Character sheet update MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Frédéric CAMPO --- styles/simple.css | 41 +++++++++++++++++++++++--------------- system.json | 2 +- template.json | 10 ++++++++++ templates/actor-sheet.html | 39 ++++++++++++++++++++---------------- 4 files changed, 58 insertions(+), 34 deletions(-) diff --git a/styles/simple.css b/styles/simple.css index cc529c2..0308e88 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -12,7 +12,7 @@ height: 100%; } .vtt_sys_ravenous .sheet-header { - flex: 0 0 100px; + flex: 0 0 auto; overflow: hidden; display: flex; flex-direction: row; @@ -20,26 +20,35 @@ justify-content: flex-start; margin-bottom: 10px; } -.vtt_sys_ravenous .sheet-header .profile-img { - flex: 0 0 100px; - height: 100px; +.vtt_sys_ravenous .sheet-header .header-container { + display: grid; + grid-template: "a a a" auto "b c d" auto / fit-content(100%) auto auto; +} + +.vtt_sys_ravenous .sheet-header .header-container .pc-name { + width: 160px; margin-right: 10px; } -.vtt_sys_ravenous .sheet-header .header-fields { - flex: 1; - height: 100px; + +.vtt_sys_ravenous .sheet-header .header-container .caracs { + display: grid; + grid-area: b; + grid-template: "a a a a" "b b c c" "d d e e" "f f g g" "h h i i" / 30px 50px 30px 50px; } -.vtt_sys_ravenous .sheet-header h1.charname { - height: 50px; - padding: 0px; - margin: 5px 0; - border-bottom: 0; + +.vtt_sys_ravenous .sheet-header .header-container .caracs .caracs-header { + grid-area: a; + align-self: center; + justify-self: center; + text-decoration: underline; } -.vtt_sys_ravenous .sheet-header h1.charname input { - width: 100%; - height: 100%; - margin: 0; +.vtt_sys_ravenous .sheet-header .header-container .caracs input { + width: 35px; } + +.vtt_sys_ravenous .sheet-header .header-container .caracs label { +} + .vtt_sys_ravenous .resource { width: 50%; height: 40px; diff --git a/system.json b/system.json index 712912b..e35b553 100644 --- a/system.json +++ b/system.json @@ -2,7 +2,7 @@ "name": "vtt_sys_ravenous", "title": "Ravenous Game System", "description": "With ravenous hunger.", - "version": "0.0.5e", + "version": "0.0.5f", "minimumCoreVersion": "0.8.9", "compatibleCoreVersion": "9", "author": "Cocobug Inc.", diff --git a/template.json b/template.json index 0b0581d..a1582f6 100644 --- a/template.json +++ b/template.json @@ -2,6 +2,16 @@ "Actor": { "types": ["character"], "character": { + "caracteristics": { + "str": 0, + "agi": 0, + "per": 0, + "chr": 0, + "int": 0, + "wpr": 0, + "psy": 0, + "chn": 0 + }, "biography": "", "health": { "value": 10, diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index fdd5fe1..b24bf77 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -2,24 +2,29 @@ {{!-- Sheet Header --}}
- -
-

- -

-
- - / - +
+
+
+

Caracteristiques

+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
- - / - -
-

- -

+
Zone PV
+
Zone Armure