Skip to content

Commit

Permalink
Reworks
Browse files Browse the repository at this point in the history
- Fixed UnitSound, UnitHalo won't load before l2d installed
- Replace boss3 with Theme 232(Chokmah's Theme)
  • Loading branch information
WilloIzCitron committed Dec 30, 2024
1 parent a0382f0 commit 60585a7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ A mod that override the vanilla soundtrack into Blue Archive Soundtrack, and als
## Building

To generate the mod jar, you can do this below with platform specified jar:
- Android: `gradlew jarAndroid`
- Android: `gradlew dex`
- PC: `gradlew jar`

for Build Deployment(desktop and android) you can do `gradlew build`
Expand Down
Binary file modified assets/music/boss3.ogg
Binary file not shown.
20 changes: 10 additions & 10 deletions src/bluearchive/ArchiveDustry.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public void init(){
//ArchivDStyles.load();
ArchivDLoadingFragment.init();
ArchivDSettings.loadSettings();
if(Core.settings.getBool("ba-addHalo", true)) UnitHalo.init();
UnitSound.init();
ArchivDMusic.load();
if(Core.settings.getBool("enableL2D")) {
dataDirectory.child("live2d").walk(f -> {
foundL2D++;
Expand Down Expand Up @@ -75,15 +78,13 @@ public void init(){
// ArchivDBackground.buildL2D("nonomi");
// recollectionMusic = tree.loadMusic("cat");
// break;
if(!Core.settings.getString("setL2D-new").isEmpty()) {
ArchivDBackground.buildL2D(Core.settings.getString("setL2D-new"));
} else {
Core.settings.put("enableL2D", false); //fallback if setl2d is blank
Core.settings.put("setSong", 1);
}
if(Core.settings.getBool("ba-addHalo", true)) UnitHalo.init();
UnitSound.init();
ArchivDMusic.load();
if (!Core.settings.getString("setL2D-new").isEmpty()) {
ArchivDBackground.buildL2D(Core.settings.getString("setL2D-new"));
} else {
Core.settings.put("enableL2D", false); //fallback if setl2d is blank
Core.settings.put("setSong", 1);
}
}
Events.on(EventType.ClientLoadEvent.class, event -> {
switch (Core.settings.getInt("setSong")) {
case 1:
Expand Down Expand Up @@ -165,7 +166,6 @@ public void init(){
Time.clear();
});
});
}
}
public static Music soundControlPlaying() {
if (state.isMenu()) {
Expand Down
5 changes: 3 additions & 2 deletions src/bluearchive/ui/overrides/ArchivDLoadingFragment.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import arc.scene.ui.*;
import arc.scene.ui.layout.*;
import arc.util.Nullable;
import mindustry.Vars;
import mindustry.graphics.*;
import mindustry.ui.*;
import mindustry.ui.fragments.*;
Expand All @@ -34,7 +35,7 @@ public static void init() {
if(!mobile){
scale = 45f;
} else {
scale = 25f;
scale = 60f;
}
}

Expand All @@ -47,7 +48,7 @@ public void build(Group parent){
});
t.visible = false;
t.touchable = Touchable.enabled;
t.add().height((Core.graphics.getHeight())/2f).row();
t.add().height((Core.graphics.getHeight())/ 2f).row();
t.row();
tooltipTitle = t.add("Lorem Ipsum").color(Pal.techBlue).fontScale(1.5f).style(Styles.techLabel).pad(10).left().get();
t.row();
Expand Down

0 comments on commit 60585a7

Please sign in to comment.