From 8e7ccbd50d187b8e9815fe2b1cf90a67a8574b34 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81ngel=20Montero=20Lamas?= Date: Sun, 6 Feb 2022 21:09:30 +0100 Subject: [PATCH] Zone filter (#728) * Adding zone type dropdown to index.html * added zone type filter to zones-editor.js * zoneTypes dialog add and delete types, dialog * filtering types * correct filter button and prompt The filter button now works on click with an added zonesEditorAddLines(); on function toggleFilterTable(). If the table is empty, a message appears on a line giving advice. * Amount of types and fixes Fixed some spacing in zoneTypes dialog, and made a count for the amount of zones per type. * Minor changes for zone types * dialog for types on a button New button for the zone Types dialog. * typo in index.html * update on click add type Co-authored-by: Evolvedexperiment Co-authored-by: Azgaar --- index.html | 28 +++++++- main.js | 9 +++ modules/ui/zones-editor.js | 131 ++++++++++++++++++++++++++++++++++++- 3 files changed, 165 insertions(+), 3 deletions(-) diff --git a/index.html b/index.html index a7d19f8a..a4ab8f0a 100644 --- a/index.html +++ b/index.html @@ -2874,9 +2874,16 @@
Cells 
Area 
Population 
+
Type 
+ +
+ Filter by type: + + +
Zones: 0
@@ -2902,10 +2909,29 @@
- + + + +