diff --git a/module/rdd-tmr-dialog.js b/module/rdd-tmr-dialog.js
index 4dc6849e..b8faa8e6 100644
--- a/module/rdd-tmr-dialog.js
+++ b/module/rdd-tmr-dialog.js
@@ -24,10 +24,10 @@ export class RdDTMRDialog extends Dialog {
let dialogOptions = { classes: [ "tmrdialog"] }
dialogConf.title = "Terres Médianes de Rêve",
- dialogOptions.width = 600;
- dialogOptions.height = 360;
+ dialogOptions.width = 740;
+ dialogOptions.height = 960;
super(dialogConf, dialogOptions);
-
+
this.sort = sort;
this.actor = actor;
}
@@ -38,8 +38,22 @@ export class RdDTMRDialog extends Dialog {
}
/* -------------------------------------------- */
-
+ loadImage(url) {
+ return new Promise(r => { let i = new Image(); i.onload = (() => r(i)); i.src = url; });
+ }
+
+ /* -------------------------------------------- */
+ async init_canvas() {
+ var ctx = document.getElementById('canvas_tmr');
+ ctx = ctx.getContext('2d');
+ let img = await this.loadImage("systems/foundryvtt-reve-de-dragon/styles/ui/tmp_main_r1.webp");
+ await ctx.drawImage(img, 0, 0, 720, 860);
+ }
+
+ /* -------------------------------------------- */
activateListeners(html) {
super.activateListeners(html);
+
+ this.init_canvas();
}
}
diff --git a/styles/ui/terres_medianes.png b/styles/ui/terres_medianes.png
deleted file mode 100644
index 890c83ab..00000000
Binary files a/styles/ui/terres_medianes.png and /dev/null differ
diff --git a/styles/ui/tmp_main_r1.webp b/styles/ui/tmp_main_r1.webp
new file mode 100644
index 00000000..941768d8
Binary files /dev/null and b/styles/ui/tmp_main_r1.webp differ
diff --git a/system.json b/system.json
index 543abf86..a35c61bd 100644
--- a/system.json
+++ b/system.json
@@ -2,10 +2,10 @@
"name": "foundryvtt-reve-de-dragon",
"title": "Rêve de Dragon",
"description": "L'implémentation de Rêve de Dragon pour FoundryVTT",
- "version": "0.7.9",
+ "version": "0.7.10",
"minimumCoreVersion": "0.6.0",
"compatibleCoreVersion": "0.6.2",
- "templateVersion": 17,
+ "templateVersion": 18,
"author": "LeRatierBretonnien",
"esmodules": [ "module/rdd-main.js", "module/hook-renderChatLog.js" ],
"styles": ["styles/simple.css"],
diff --git a/template.json b/template.json
index a9e93296..c32425c6 100644
--- a/template.json
+++ b/template.json
@@ -217,12 +217,21 @@
"derivee": true
}
},
- "compteurs": {
+ "reve": {
"reve": {
"max": 0,
"value": 0,
- "label": "Points de Rêve"
+ "label": "Points de Rêve actuels"
},
+ "tmrpos": {
+ "coord": "",
+ "label": "Position TMR"
+ },
+ "reserve": {
+ "reserveList": []
+ }
+ },
+ "compteurs": {
"sust": {
"value": 0,
"label": "Sust."
@@ -384,7 +393,7 @@
"difficulte": 0,
"points_de_tache": 0,
"encombrement": 0,
- "xp": 0,
+ "xp": "",
"cout": 0
},
"potion": {
diff --git a/templates/dialog-tmr.html b/templates/dialog-tmr.html
index e49e702c..9bd062fc 100644
--- a/templates/dialog-tmr.html
+++ b/templates/dialog-tmr.html
@@ -9,7 +9,8 @@
-
+
diff --git a/templates/item-livre-sheet.html b/templates/item-livre-sheet.html
index 1588e28e..ed307c96 100644
--- a/templates/item-livre-sheet.html
+++ b/templates/item-livre-sheet.html
@@ -26,7 +26,7 @@