From 467a4d53a422cbc0f63ed1bde67a058ac4f90391 Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Fri, 16 Dec 2022 01:22:09 +0100 Subject: [PATCH] =?UTF-8?q?S=C3=A9paration=20des=20boutons=20Haut-r=C3=AAv?= =?UTF-8?q?e?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- module/rdd-utility.js | 1 + styles/simple.css | 14 ++++++++++++++ templates/actor-sheet.html | 1 + templates/actor/header-buttons.html | 9 --------- templates/actor/header-hautreve.html | 13 +++++++++++++ 5 files changed, 29 insertions(+), 9 deletions(-) create mode 100644 templates/actor/header-hautreve.html diff --git a/module/rdd-utility.js b/module/rdd-utility.js index ecd8a843..59e9f7a3 100644 --- a/module/rdd-utility.js +++ b/module/rdd-utility.js @@ -126,6 +126,7 @@ export class RdDUtility { 'systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-creature.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs-entitee.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/header-effects.html', + 'systems/foundryvtt-reve-de-dragon/templates/actor/header-hautreve.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/vue-detaillee.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/carac-main.html', 'systems/foundryvtt-reve-de-dragon/templates/actor/carac-derivee.html', diff --git a/styles/simple.css b/styles/simple.css index 92f7a11e..65e9d41b 100644 --- a/styles/simple.css +++ b/styles/simple.css @@ -160,6 +160,20 @@ i:is(.fas, .far) { width: fit-content; } +.system-foundryvtt-reve-de-dragon .sheet-header div.tmr-buttons { + padding: 0; + margin: 0; + flex: 0; + flex-direction: column; +} + +.system-foundryvtt-reve-de-dragon .sheet-header div.tmr-buttons img.button-img { + max-width: 32px; + padding: 0; + margin-top: -8px; + margin-bottom: -8px; +} + .system-foundryvtt-reve-de-dragon .sheet-header :is(.header-compteurs,.header-etats,.profile-img){ padding: 0 3%; } diff --git a/templates/actor-sheet.html b/templates/actor-sheet.html index 5dc3dcf1..a7243520 100644 --- a/templates/actor-sheet.html +++ b/templates/actor-sheet.html @@ -13,6 +13,7 @@ {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-compteurs.html"}} {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-etat.html"}} + {{>"systems/foundryvtt-reve-de-dragon/templates/actor/header-hautreve.html"}} diff --git a/templates/actor/header-buttons.html b/templates/actor/header-buttons.html index 2d418099..af6a9703 100644 --- a/templates/actor/header-buttons.html +++ b/templates/actor/header-buttons.html @@ -11,15 +11,6 @@ Se reposer - {{#if system.attributs.hautrevant.value}} - - Montée dans les Terres Médianes ! - - Montée accélérée dans les Terres Médianes ! - - Regarder les Terres Médianes - - {{/if}} {{#if @root.options.isGM}} Remise à neuf diff --git a/templates/actor/header-hautreve.html b/templates/actor/header-hautreve.html new file mode 100644 index 00000000..a4d12700 --- /dev/null +++ b/templates/actor/header-hautreve.html @@ -0,0 +1,13 @@ +{{#if system.attributs.hautrevant.value}} +
+ + Montée dans les Terres Médianes ! + + + Montée accélérée dans les Terres Médianes ! + + + Regarder les Terres Médianes + +
+{{/if}}