Added labelling of dummy and BSA-loading plugins.

Colours are not final.
This commit is contained in:
WrinklyNinja
2014-07-12 15:18:41 +01:00
parent 281b08433c
commit e59bed9c80
4 changed files with 728 additions and 192 deletions
+6
View File
@@ -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">
+8
View File
@@ -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 {
+32
View File
@@ -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 {
File diff suppressed because it is too large Load Diff