Skip to content

Commit 4b45fcb

Browse files
committed
shift colors, add secret option
1 parent 12afbbf commit 4b45fcb

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

img/bmc.png

14.4 KB
Loading

js/index.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,8 @@ socket.commands((data) => {
9898

9999
window.noteShaking = message.noteShaking
100100
window.noteColoring = message.noteColoring
101+
102+
window.bmcMode = message.bmcMode
101103
}
102104
} catch (error) {
103105
console.log(error);
@@ -192,6 +194,13 @@ socket.api_v2_precise((data) => {
192194
}
193195
}
194196

197+
// Set :bmc: background if enabled
198+
if (bmcMode) {
199+
note.style.backgroundColor = ''
200+
note.style.backgroundImage = 'url(./img/bmc.png)'
201+
note.style.backgroundSize = '100% 100%'
202+
}
203+
195204
// Add the note to the track
196205
document.getElementById(`track${_key}`).prepend(note);
197206
} else {

settings.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,5 +203,13 @@
203203
"Hide"
204204
],
205205
"value": "Auto"
206+
},
207+
{
208+
"uniqueID": "bmcMode",
209+
"type": "checkbox",
210+
"title": "secret mode",
211+
"description": "what do it does?...",
212+
"options": "",
213+
"value": false
206214
}
207215
]

0 commit comments

Comments
 (0)