mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Add master file icon to editor toolbar.
This commit is contained in:
@@ -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',
|
||||
|
||||
@@ -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());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user