Add master file icon to editor toolbar.

This commit is contained in:
Oliver Hamlet
2015-01-13 18:05:29 +00:00
parent b23aa2744d
commit 80d5563f94
2 changed files with 7 additions and 2 deletions
@@ -33,7 +33,8 @@ loot-editor-close
visibility: hidden;
}
:host-context(loot-plugin-card[data-bsa=false]) #loadsBSA,
:host-context(loot-plugin-card[data-empty=false]) #emptyPlugin {
:host-context(loot-plugin-card[data-empty=false]) #emptyPlugin,
:host-context(loot-plugin-card[data-master=false]) #isMaster {
display: none;
}
#activeTick > core-icon {
@@ -126,6 +127,9 @@ loot-editor-close
<span id="version">{{data.version}}</span>
<span id="crc">{{data.computed.crc}}</span>
</div>
<core-tooltip id="isMaster" label="Master File" noarrow>
<core-icon icon="loot-custom-icons:crown"></core-icon>
</core-tooltip>
<core-tooltip id="emptyPlugin" label="Empty Plugin" noarrow>
<core-icon icon="visibility-off"></core-icon>
</core-tooltip>
@@ -237,7 +241,7 @@ loot-editor-close
<script>
Polymer({
data: undefined,
observe: {
'data.isGlobalPriority': 'onPriorityChange',
'data.modPriority': 'onPriorityChange',
+1
View File
@@ -78,6 +78,7 @@
}
pluginEditor.getElementById('activeTick').setAttribute('label', l10n.translate("Active Plugin").fetch());
pluginEditor.getElementById('isMaster').setAttribute('label', l10n.translate("Master File").fetch());
pluginEditor.getElementById('emptyPlugin').setAttribute('label', l10n.translate("Empty Plugin").fetch());
pluginEditor.getElementById('loadsBSA').setAttribute('label', l10n.translate("Loads BSA").fetch());