mirror of
https://github.com/loot/libloot.git
synced 2026-07-27 14:16:01 -07:00
Added labelling of dummy and BSA-loading plugins.
Colours are not final.
This commit is contained in:
@@ -21,6 +21,12 @@
|
||||
<ul>
|
||||
|
||||
</ul>
|
||||
<ol class="buttons">
|
||||
<li class="dummyPlugin hidden" title="Dummy Plugin">D
|
||||
<li class="loadsBSA hidden" title="Loads BSA">B
|
||||
<li class="hasUserEdits hidden" title="Has User Metadata">U
|
||||
<li>
|
||||
</ol>
|
||||
</section>
|
||||
</template>
|
||||
<template id="messageBox">
|
||||
|
||||
@@ -306,6 +306,14 @@ function processURLParams() {
|
||||
|
||||
section.children[1].textContent = 'CRC: ' + data.plugins[i].crc;
|
||||
|
||||
if (data.plugins[i].isDummy) {
|
||||
showElement(section.getElementsByClassName('dummyPlugin')[0]);
|
||||
}
|
||||
|
||||
if (data.plugins[i].loadsBSA) {
|
||||
showElement(section.getElementsByClassName('loadsBSA')[0]);
|
||||
}
|
||||
|
||||
if (data.plugins[i].version) {
|
||||
section.children[2].textContent = data.plugins[i].version;
|
||||
} else {
|
||||
|
||||
@@ -105,6 +105,7 @@ header > ol > li > ol > li {
|
||||
}
|
||||
nav {
|
||||
height: 100%;
|
||||
min-width: 20em;
|
||||
}
|
||||
nav > ol {
|
||||
padding-left: 1em;
|
||||
@@ -153,6 +154,37 @@ section, #settings, #about {
|
||||
margin:1em;
|
||||
box-shadow:0 0 3px 0px rgba(0,0,0,0.5);
|
||||
padding:1em;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
section[data-active] .buttons {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
position: absolute;
|
||||
top: 0.5em;
|
||||
right: 0.5em;
|
||||
}
|
||||
|
||||
.dummyPlugin, .loadsBSA, .hasUserEdits {
|
||||
height: 1.5em;
|
||||
width: 1.5em;
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
display: inline-block;
|
||||
color: white;
|
||||
font-weight: bold;
|
||||
margin: 0.2em;
|
||||
cursor: pointer;
|
||||
}
|
||||
.dummyPlugin {
|
||||
background: #A9BCF5;
|
||||
}
|
||||
.loadsBSA {
|
||||
background: green;
|
||||
}
|
||||
.hasUserEdits {
|
||||
background: #C13C3C;
|
||||
}
|
||||
|
||||
#settings, #about {
|
||||
|
||||
+682
-192
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user