aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/me/Danker/gui/CustomMusicGui.java
diff options
context:
space:
mode:
authorbowser0000 <bowser0000@gmail.com>2021-07-31 21:16:48 -0400
committerbowser0000 <bowser0000@gmail.com>2021-07-31 21:16:48 -0400
commit5f2206d383afd3b6424ccda1a2d36522cfbe9b1f (patch)
tree0fe1e02c66441ec02dd23d8023e94215d8f6bb2f /src/main/java/me/Danker/gui/CustomMusicGui.java
parentd807469333b343e7726536b12d13ff29e3b136c5 (diff)
downloadSkyblockMod-5f2206d383afd3b6424ccda1a2d36522cfbe9b1f.tar.gz
SkyblockMod-5f2206d383afd3b6424ccda1a2d36522cfbe9b1f.tar.bz2
SkyblockMod-5f2206d383afd3b6424ccda1a2d36522cfbe9b1f.zip
Add spiders den to custom music
I forgot it existed
Diffstat (limited to 'src/main/java/me/Danker/gui/CustomMusicGui.java')
-rw-r--r--src/main/java/me/Danker/gui/CustomMusicGui.java18
1 files changed, 15 insertions, 3 deletions
diff --git a/src/main/java/me/Danker/gui/CustomMusicGui.java b/src/main/java/me/Danker/gui/CustomMusicGui.java
index 3e634bf..83bed09 100644
--- a/src/main/java/me/Danker/gui/CustomMusicGui.java
+++ b/src/main/java/me/Danker/gui/CustomMusicGui.java
@@ -29,6 +29,7 @@ public class CustomMusicGui extends GuiScreen {
private GuiButton deepCavernsMusic;
private GuiButton dwarvenMinesMusic;
private GuiButton crystalHollowsMusic;
+ private GuiButton spidersDenMusic;
private GuiButton blazingFortressMusic;
private GuiButton endMusic;
private GuiButton parkMusic;
@@ -65,9 +66,10 @@ public class CustomMusicGui extends GuiScreen {
deepCavernsMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.2), "Custom Deep Caverns Music: " + Utils.getColouredBoolean(ToggleCommand.deepCavernsMusic));
dwarvenMinesMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.3), "Custom Dwarven Mines Music: " + Utils.getColouredBoolean(ToggleCommand.dwarvenMinesMusic));
crystalHollowsMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.4), "Custom Crystal Hollows Music: " + Utils.getColouredBoolean(ToggleCommand.crystalHollowsMusic));
- blazingFortressMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Custom Blazing Fortress Music: " + Utils.getColouredBoolean(ToggleCommand.blazingFortressMusic));
- endMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.6), "Custom End Music: " + Utils.getColouredBoolean(ToggleCommand.endMusic));
- parkMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.7), "Custom Park Music: " + Utils.getColouredBoolean(ToggleCommand.parkMusic));
+ spidersDenMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.5), "Custom Spider's Den Music: " + Utils.getColouredBoolean(ToggleCommand.spidersDenMusic));
+ blazingFortressMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.6), "Custom Blazing Fortress Music: " + Utils.getColouredBoolean(ToggleCommand.blazingFortressMusic));
+ endMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.7), "Custom End Music: " + Utils.getColouredBoolean(ToggleCommand.endMusic));
+ parkMusic = new GuiButton(0, width / 2 - 100, (int) (height * 0.1), "Custom Park Music: " + Utils.getColouredBoolean(ToggleCommand.parkMusic));
switch (page) {
case 1:
@@ -85,8 +87,13 @@ public class CustomMusicGui extends GuiScreen {
this.buttonList.add(deepCavernsMusic);
this.buttonList.add(dwarvenMinesMusic);
this.buttonList.add(crystalHollowsMusic);
+ this.buttonList.add(spidersDenMusic);
this.buttonList.add(blazingFortressMusic);
this.buttonList.add(endMusic);
+ this.buttonList.add(nextPage);
+ this.buttonList.add(backPage);
+ break;
+ case 3:
this.buttonList.add(parkMusic);
this.buttonList.add(backPage);
break;
@@ -164,6 +171,11 @@ public class CustomMusicGui extends GuiScreen {
CustomMusic.crystalHollows.stop();
ConfigHandler.writeBooleanConfig("toggles", "CrystalHollowsMusic", ToggleCommand.crystalHollowsMusic);
crystalHollowsMusic.displayString = "Custom Crystal Hollows Music: " + Utils.getColouredBoolean(ToggleCommand.crystalHollowsMusic);
+ } else if (button == spidersDenMusic) {
+ ToggleCommand.spidersDenMusic = !ToggleCommand.spidersDenMusic;
+ CustomMusic.spidersDen.stop();
+ ConfigHandler.writeBooleanConfig("toggles", "SpidersDenMusic", ToggleCommand.spidersDenMusic);
+ spidersDenMusic.displayString = "Custom Spider's Den Music: " + Utils.getColouredBoolean(ToggleCommand.spidersDenMusic);
} else if (button == blazingFortressMusic) {
ToggleCommand.blazingFortressMusic = !ToggleCommand.blazingFortressMusic;
CustomMusic.blazingFortress.stop();