From eb7bc503c25a706ebfdb84576a8d3aeb2f8dd669 Mon Sep 17 00:00:00 2001
From: Oliver Hamlet
Date: Tue, 7 Jun 2016 18:31:21 +0100
Subject: [PATCH] Move the conflicts filter UI into the Filters sidebar tab
Instead of having a toggle button in each card's dropdown menu,
implement it as a dropdown menu in the Filters sidebar tab,
containing a list of plugin filenames, plus a "No plugin" option.
Closes #580.
---
docs/LOOT Readme.html | 11 +++---
src/gui/html/css/style.css | 4 +++
src/gui/html/elements/loot-plugin-card.html | 36 -------------------
src/gui/html/index.html | 19 ++++++++++
src/gui/html/js/events.js | 35 +++++++-----------
src/gui/html/js/filters.js | 19 ++++++++++
src/gui/html/js/initialise.js | 5 ++-
src/gui/html/js/plugin.js | 1 -
src/gui/html/js/translateStaticText.js | 3 +-
.../html/elements/test_loot-plugin-card.html | 4 ---
src/tests/gui/html/js/test_game.js | 1 -
src/tests/gui/html/js/test_plugin.js | 6 ----
12 files changed, 62 insertions(+), 82 deletions(-)
diff --git a/docs/LOOT Readme.html b/docs/LOOT Readme.html
index f84f9567..d18092b2 100644
--- a/docs/LOOT Readme.html
+++ b/docs/LOOT Readme.html
@@ -321,7 +321,7 @@ figure > div {
The Empty Plugin icon.
The Loads Archive icon.
The Has User Metadata icon.
-
The plugin menu button, which provides access to a few plugin-specific features, including a conflict filter and access to it in the metadata editor. These are explained in later sections.
+
The plugin menu button, which provides access to metadata-related features for the plugin. These are explained in later sections.
Bash Tag suggestions and messages are displayed below the plugin card's header.
@@ -342,13 +342,10 @@ figure > div {
Hide inactive plugins: Hides all plugins that are inactive.
Hide messageless plugins: Hides all plugins that have no visible messages.
-
The filter toggles have their states saved on quitting LOOT, and they are restored when LOOT is next launched. There are also two other filters:
+
The filter toggles have their states saved on quitting LOOT, and they are restored when LOOT is next launched. There are also two other filters in the sidebar tab:
-
A content filter, located beneath the filter toggles in the Filters sidebar tab. This hides any plugins that don't have the filter input value present in any of the text on their cards.
-
A conflict filter that can be accessed through each plugin card's menu. This filters the plugin cards displayed so that only plugins which conflict with this plugin will be visible. If this plugin loads an archive, other plugins that load archives which may contain conflicting resources are also displayed.
-
- Only one plugin's conflict filter can be active at any one time, so activating a second conflict filter will deactivate the first. The plugin for which the filter is currently active has its card highlighted. Sorting with a conflict filter active will first deactivate it.
-
+
A content filter. This hides any plugins that don't have the filter input value present in any of the text on their cards.
+
A conflict filter. This filters the plugin cards displayed so that only plugins which conflict with this plugin will be visible. If this plugin loads an archive, other plugins that load archives which may contain conflicting resources are also displayed. Sorting with the conflict filter active will first deactivate it.