Skip to content

Commit

Permalink
fixed switching to Sucrose (auto hiding lilGUI)
Browse files Browse the repository at this point in the history
made lilGUI local
cleaned up folder structure
renamed few sucrose properties
  • Loading branch information
IPdotSetAF committed May 26, 2024
1 parent adbb593 commit 53221a2
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 14 deletions.
14 changes: 7 additions & 7 deletions SucroseProperties.json
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@
},
"ui_logo_logo": {
"type": "dropdown",
"text": "Logo Matrix",
"text": "Logo",
"value": 0,
"items": [
"None",
Expand Down Expand Up @@ -193,37 +193,37 @@
]
},
"ui_logo_customlogo": {
"text": "Custom Logo Matrix URL (SVG/PNG)",
"help": "Enter custom logo matrix url (svg/png)",
"text": "Custom Logo URL (SVG/PNG)",
"help": "Enter custom logo url (svg/png)",
"type": "textbox",
"value": ""
},
"ui_logo_preservecolor": {
"text": "Preserve Logo Matrix Color",
"text": "Preserve Logo Color",
"type": "checkbox",
"value": false
},
"ui_logo_scale": {
"max": 100,
"min": 0,
"step": 1,
"text": "Logo Matrix Scale",
"text": "Logo Scale",
"type": "slider",
"value": 10
},
"ui_logo_positionx": {
"max": 2500,
"min": -2500,
"step": 1,
"text": "Logo Matrix Position X",
"text": "Logo Position X",
"type": "slider",
"value": 0
},
"ui_logo_positiony": {
"max": 2500,
"min": -2500,
"step": 1,
"text": "Logo Matrix Position Y",
"text": "Logo Position Y",
"type": "slider",
"value": 0
},
Expand Down
Binary file renamed index.css → css/index.css
Binary file not shown.
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
<title>Wallpaper - NeoMatrix</title>
<meta name="author" content="IP.AF">
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="./index.css" media="screen" />
<script src="https://cdn.jsdelivr.net/npm/lil-gui@0.19"></script>
<script type="text/javascript" src="./index.js"></script>
<link rel="stylesheet" type="text/css" href="./css/index.css" media="screen" />
<script src="./js/lil-gui-0.19.js"></script>
<script type="text/javascript" src="./js/index.js"></script>
</head>

<body>
Expand Down
8 changes: 4 additions & 4 deletions index.js → js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,13 @@ window.onload = function () {
window.wallpaperRegisterAudioListener((audioArray) => {
return frequencyArray = audioArray;
});
else if (navigator.userAgent.startsWith("Sucrose"))
window.SucroseAudioData = function (audioArray) {
frequencyArray = audioArray.Data;
};
else
drawGui();

window.SucroseAudioData = function (audioArray) {
frequencyArray = audioArray.Data;
};

//MARK: GUI
function drawGui() {
const params = getUrlParams();
Expand Down
8 changes: 8 additions & 0 deletions js/lil-gui-0.19.js

Large diffs are not rendered by default.

0 comments on commit 53221a2

Please sign in to comment.