- Download Development Build
+ Download Grasscutter Development Build
Install Grasscutter development branch. This build sometimes has bugs, and is frequently updated. Use at your own risk.
+
+
+ Download Grasscutter Resources
+
+
+
+ Downloads Grasscutter resources into the currently set Grasscutter folder. This should be done unless you plan on getting resources externally.
+
+
diff --git a/resources/js/index.js b/resources/js/index.js
index 2656464..db2b550 100644
--- a/resources/js/index.js
+++ b/resources/js/index.js
@@ -248,10 +248,20 @@ async function handleFavoriteList() {
async function openDownloads() {
const downloads = document.querySelector('#downloadPanel')
+ const config = await getCfg()
if (downloads.style.display === 'none') {
downloads.style.removeProperty('display')
}
+
+ // Disable the resource download button if a serverFolder path is not set
+ if (!config.serverFolder) {
+ document.querySelector('#resourceInstall').disabled = true
+ document.querySelector('#resourceInstall').classList.add('disabled')
+ } else {
+ document.querySelector('#resourceInstall').disabled = false
+ document.querySelector('#resourceInstall').classList.remove('disabled')
+ }
}
async function closeDownloads() {
diff --git a/resources/style/index.css b/resources/style/index.css
index d466177..d1e2ea6 100644
--- a/resources/style/index.css
+++ b/resources/style/index.css
@@ -216,6 +216,10 @@ a {
margin: 10px 0px;
}
+.downloadLabel {
+ margin: 14px 0px;
+}
+
.downloadSubtitle,
.settingSubtitle {
color: rgb(165, 165, 165);