From a71e9a193bb98ed5c6093bc0a43a1915912dc6c4 Mon Sep 17 00:00:00 2001 From: Orichalque Date: Tue, 16 Feb 2021 13:02:30 +0100 Subject: [PATCH] Now able to sort gear --- index.html | 20 ++++++++++---------- js/gear.js | 3 +++ 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/index.html b/index.html index 604bfb8f..301350f7 100644 --- a/index.html +++ b/index.html @@ -61,19 +61,19 @@

Gloomhaven Deckbuilder

- Build your deck in the Abilities section first ! + Build your deck in the Abilities section first !
@@ -313,11 +313,11 @@

Curse

Gear

-
+
- Choose your equipment in the Gear section ! + Choose your equipment in the Gear section !
-
+
@@ -583,7 +583,7 @@

{{ item.points +1 }}

- Build your deck in the Abilities section first ! + Build your deck in the Abilities section first !
diff --git a/js/gear.js b/js/gear.js index ed8db99d..e5b56fcd 100644 --- a/js/gear.js +++ b/js/gear.js @@ -68,6 +68,9 @@ var gearManagement = { this.addGear(item) } })) + }, + updateGearPosition: function(oldIndex, newIndex) { + this.gearChosen.move(oldIndex, newIndex) } } }