From 1816102ae9ef48c728190dab4fb407f766e42e52 Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Mon, 29 Dec 2014 21:22:46 +0000 Subject: [PATCH] Dummy Plugin -> Empty Plugin It's clearer what the latter means. --- resources/report/html/loot-plugin-card.html | 7 ++++--- resources/report/html/loot-plugin-editor.html | 6 +++--- resources/report/js/l10n.js | 4 ++-- resources/report/js/plugin.js | 2 +- resources/report/js/script.js | 8 ++++---- resources/report/report.html | 2 +- src/backend/metadata.cpp | 10 +++++----- src/backend/metadata.h | 4 ++-- src/gui/handler.cpp | 8 ++++---- 9 files changed, 26 insertions(+), 25 deletions(-) diff --git a/resources/report/html/loot-plugin-card.html b/resources/report/html/loot-plugin-card.html index 7493eb5c..5ffe25bf 100644 --- a/resources/report/html/loot-plugin-card.html +++ b/resources/report/html/loot-plugin-card.html @@ -53,7 +53,7 @@ loot-clear-metadata visibility: hidden; } :host([data-bsa=false]) #loadsBSA, - :host([data-dummy=false]) #dummyPlugin, + :host([data-empty=false]) #emptyPlugin, :host(:not([data-edits])) #hasUserEdits { display: none; } @@ -101,6 +101,7 @@ loot-clear-metadata font-size: 1.143rem; display: inline-block; margin: 0; + color: inherit; } content::content > .version { display: inline-block; @@ -152,7 +153,7 @@ loot-clear-metadata - + @@ -282,7 +283,7 @@ loot-clear-metadata /* Re-calculate tooltip positions, since the flip animation tends to mess with them. */ this.shadowRoot.getElementById('activeTick').setPosition(); - this.shadowRoot.getElementById('dummyPlugin').setPosition(); + this.shadowRoot.getElementById('emptyPlugin').setPosition(); this.shadowRoot.getElementById('hasUserEdits').setPosition(); this.shadowRoot.getElementById('loadsBSA').setPosition(); diff --git a/resources/report/html/loot-plugin-editor.html b/resources/report/html/loot-plugin-editor.html index 2108b1c3..7ee5a80c 100644 --- a/resources/report/html/loot-plugin-editor.html +++ b/resources/report/html/loot-plugin-editor.html @@ -33,7 +33,7 @@ loot-editor-close visibility: hidden; } :host-context(loot-plugin-card[data-bsa=false]) #loadsBSA, - :host-context(loot-plugin-card[data-dummy=false]) #dummyPlugin { + :host-context(loot-plugin-card[data-empty=false]) #emptyPlugin { display: none; } #activeTick > core-icon { @@ -108,7 +108,7 @@ loot-editor-close {{data.version}} {{data.computed.crc}} - + @@ -516,7 +516,7 @@ loot-editor-close updatePolymerElements: function() { /* Set tooltip positions. */ this.shadowRoot.getElementById('activeTick').setPosition(); - this.shadowRoot.getElementById('dummyPlugin').setPosition(); + this.shadowRoot.getElementById('emptyPlugin').setPosition(); this.shadowRoot.getElementById('loadsBSA').setPosition(); this.shadowRoot.getElementById('globalPriority').parentElement.setPosition(); diff --git a/resources/report/js/l10n.js b/resources/report/js/l10n.js index 701076e7..50224ec8 100644 --- a/resources/report/js/l10n.js +++ b/resources/report/js/l10n.js @@ -59,7 +59,7 @@ } pluginCard.getElementById('activeTick').label = l10n.translate("Active Plugin").fetch(); - pluginCard.getElementById('dummyPlugin').label = l10n.translate("Dummy Plugin").fetch(); + pluginCard.getElementById('emptyPlugin').label = l10n.translate("Empty Plugin").fetch(); pluginCard.getElementById('loadsBSA').label = l10n.translate("Loads BSA").fetch(); pluginCard.getElementById('hasUserEdits').label = l10n.translate("Has User Metadata").fetch(); @@ -77,7 +77,7 @@ } pluginEditor.getElementById('activeTick').label = l10n.translate("Active Plugin").fetch(); - pluginEditor.getElementById('dummyPlugin').label = l10n.translate("Dummy Plugin").fetch(); + pluginEditor.getElementById('emptyPlugin').label = l10n.translate("Empty Plugin").fetch(); pluginEditor.getElementById('loadsBSA').label = l10n.translate("Loads BSA").fetch(); pluginEditor.getElementById('enableEdits').label = l10n.translate("Enable Edits").fetch(); diff --git a/resources/report/js/plugin.js b/resources/report/js/plugin.js index a21db10a..20f89da9 100644 --- a/resources/report/js/plugin.js +++ b/resources/report/js/plugin.js @@ -28,7 +28,7 @@ function Plugin(obj) { this.crc = obj.crc; this.version = obj.version; this.isActive = obj.isActive; - this.isDummy = obj.isDummy; + this.isEmpty = obj.isEmpty; this.loadsBSA = obj.loadsBSA; this.masterlist = obj.masterlist; diff --git a/resources/report/js/script.js b/resources/report/js/script.js index 9783d62d..731e8c93 100644 --- a/resources/report/js/script.js +++ b/resources/report/js/script.js @@ -394,7 +394,7 @@ function getConflictingPluginsFromFilter() { for (var i = 0; i < loot.game.plugins.length; ++i) { if (loot.game.plugins[i].name == key) { loot.game.plugins[i].crc = result[key].crc; - loot.game.plugins[i].isDummy = result[key].isDummy; + loot.game.plugins[i].isEmpty = result[key].isEmpty; loot.game.plugins[i].messages = result[key].messages; loot.game.plugins[i].tags = result[key].tags; @@ -552,7 +552,7 @@ function sortPlugins(evt) { for (var i = 0; i < loot.game.plugins.length; ++i) { if (loot.game.plugins[i].name == plugin.name) { loot.game.plugins[i].crc = plugin.crc; - loot.game.plugins[i].isDummy = plugin.isDummy; + loot.game.plugins[i].isEmpty = plugin.isEmpty; loot.game.plugins[i].messages = plugin.messages; loot.game.plugins[i].tags = plugin.tags; @@ -701,7 +701,7 @@ function copyContent(evt) { crc: plugin.crc, version: plugin.version, isActive: plugin.isActive, - isDummy: plugin.isDummy, + isEmpty: plugin.isEmpty, loadsBSA: plugin.loadsBSA, modPriority: plugin.modPriority, @@ -1225,7 +1225,7 @@ function onContentRefresh(evt) { if (loot.game.plugins[i].name == plugin.name) { loot.game.plugins[i].isActive = plugin.isActive; - loot.game.plugins[i].isDummy = plugin.isDummy; + loot.game.plugins[i].isEmpty = plugin.isEmpty; loot.game.plugins[i].loadsBSA = plugin.loadsBSA; loot.game.plugins[i].crc = plugin.crc; loot.game.plugins[i].version = plugin.version; diff --git a/resources/report/report.html b/resources/report/report.html index 51c24992..f9cf85aa 100644 --- a/resources/report/report.html +++ b/resources/report/report.html @@ -203,7 +203,7 @@