Skip to content

Commit 53221a2

Browse files
committed
fixed switching to Sucrose (auto hiding lilGUI)
made lilGUI local cleaned up folder structure renamed few sucrose properties
1 parent adbb593 commit 53221a2

File tree

5 files changed

+22
-14
lines changed

5 files changed

+22
-14
lines changed

SucroseProperties.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@
162162
},
163163
"ui_logo_logo": {
164164
"type": "dropdown",
165-
"text": "Logo Matrix",
165+
"text": "Logo",
166166
"value": 0,
167167
"items": [
168168
"None",
@@ -193,37 +193,37 @@
193193
]
194194
},
195195
"ui_logo_customlogo": {
196-
"text": "Custom Logo Matrix URL (SVG/PNG)",
197-
"help": "Enter custom logo matrix url (svg/png)",
196+
"text": "Custom Logo URL (SVG/PNG)",
197+
"help": "Enter custom logo url (svg/png)",
198198
"type": "textbox",
199199
"value": ""
200200
},
201201
"ui_logo_preservecolor": {
202-
"text": "Preserve Logo Matrix Color",
202+
"text": "Preserve Logo Color",
203203
"type": "checkbox",
204204
"value": false
205205
},
206206
"ui_logo_scale": {
207207
"max": 100,
208208
"min": 0,
209209
"step": 1,
210-
"text": "Logo Matrix Scale",
210+
"text": "Logo Scale",
211211
"type": "slider",
212212
"value": 10
213213
},
214214
"ui_logo_positionx": {
215215
"max": 2500,
216216
"min": -2500,
217217
"step": 1,
218-
"text": "Logo Matrix Position X",
218+
"text": "Logo Position X",
219219
"type": "slider",
220220
"value": 0
221221
},
222222
"ui_logo_positiony": {
223223
"max": 2500,
224224
"min": -2500,
225225
"step": 1,
226-
"text": "Logo Matrix Position Y",
226+
"text": "Logo Position Y",
227227
"type": "slider",
228228
"value": 0
229229
},

index.css renamed to css/index.css

1.58 KB
Binary file not shown.

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
<title>Wallpaper - NeoMatrix</title>
55
<meta name="author" content="IP.AF">
66
<meta charset="utf-8">
7-
<link rel="stylesheet" type="text/css" href="./index.css" media="screen" />
8-
<script src="https://cdn.jsdelivr.net/npm/lil-gui@0.19"></script>
9-
<script type="text/javascript" src="./index.js"></script>
7+
<link rel="stylesheet" type="text/css" href="./css/index.css" media="screen" />
8+
<script src="./js/lil-gui-0.19.js"></script>
9+
<script type="text/javascript" src="./js/index.js"></script>
1010
</head>
1111

1212
<body>

index.js renamed to js/index.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -106,13 +106,13 @@ window.onload = function () {
106106
window.wallpaperRegisterAudioListener((audioArray) => {
107107
return frequencyArray = audioArray;
108108
});
109+
else if (navigator.userAgent.startsWith("Sucrose"))
110+
window.SucroseAudioData = function (audioArray) {
111+
frequencyArray = audioArray.Data;
112+
};
109113
else
110114
drawGui();
111115

112-
window.SucroseAudioData = function (audioArray) {
113-
frequencyArray = audioArray.Data;
114-
};
115-
116116
//MARK: GUI
117117
function drawGui() {
118118
const params = getUrlParams();

js/lil-gui-0.19.js

Lines changed: 8 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)