From 1c500479a51ddaf080d2ba0b2e2e1217251ab868 Mon Sep 17 00:00:00 2001 From: Azgaar Date: Wed, 5 May 2021 01:44:37 +0300 Subject: [PATCH] color picker behavior update --- modules/ui/resources-editor.js | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/modules/ui/resources-editor.js b/modules/ui/resources-editor.js index a9ddaf84..9c1bfb76 100644 --- a/modules/ui/resources-editor.js +++ b/modules/ui/resources-editor.js @@ -28,17 +28,19 @@ function editResources() { // // {i: 33, name: "Saltpeter", icon: "resource-saltpeter", color: "#e6e3e3", value: 8, chance: 2, model: "habitability", bonus: {artillery: 3}} for (const r of pack.resources) { const stroke = Resources.getStroke(r.color); - lines += `
+ lines += `
- - + + - - + +
${r.cells}
@@ -97,12 +99,12 @@ function editResources() { } function downloadResourcesData() { - let data = "Id,Resource,Type,Color,Icon,Value,Chance,Model,Cells\n"; // headers + let data = "Id,Resource,Category,Color,Icon,Value,Chance,Model,Cells\n"; // headers body.querySelectorAll(":scope > div").forEach(function(el) { data += el.dataset.id + ","; data += el.dataset.name + ","; - data += el.dataset.type + ","; + data += el.dataset.category + ","; data += el.dataset.color + ","; data += el.dataset.icon + ","; data += el.dataset.value + ",";