Bugfixes
This commit is contained in:
@@ -90,6 +90,8 @@ public class ContentParser{
|
|||||||
|
|
||||||
String name = "sounds/" + data.asString();
|
String name = "sounds/" + data.asString();
|
||||||
String path = Vars.tree.get(name + ".ogg").exists() && !Vars.ios ? name + ".ogg" : name + ".mp3";
|
String path = Vars.tree.get(name + ".ogg").exists() && !Vars.ios ? name + ".ogg" : name + ".mp3";
|
||||||
|
|
||||||
|
if(Core.assets.contains(path, Sound.class)) return Core.assets.get(path, Sound.class);
|
||||||
ModLoadingSound sound = new ModLoadingSound();
|
ModLoadingSound sound = new ModLoadingSound();
|
||||||
AssetDescriptor<?> desc = Core.assets.load(path, Sound.class);
|
AssetDescriptor<?> desc = Core.assets.load(path, Sound.class);
|
||||||
desc.loaded = result -> sound.sound = (Sound)result;
|
desc.loaded = result -> sound.sound = (Sound)result;
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ public class PlanetDialog extends FloatingDialog{
|
|||||||
//TODO names
|
//TODO names
|
||||||
buttons.addImageTextButton("$back", Icon.left, style, this::hide).margin(bmargin);
|
buttons.addImageTextButton("$back", Icon.left, style, this::hide).margin(bmargin);
|
||||||
buttons.addImageTextButton("Tech", Icon.tree, style, () -> ui.tech.show()).margin(bmargin);
|
buttons.addImageTextButton("Tech", Icon.tree, style, () -> ui.tech.show()).margin(bmargin);
|
||||||
buttons.addImageTextButton("Launch", Icon.upOpen, style, this::hide).margin(bmargin);
|
//buttons.addImageTextButton("Launch", Icon.upOpen, style, this::hide).margin(bmargin);
|
||||||
buttons.addImageTextButton("Database", Icon.book, style, () -> ui.database.show()).margin(bmargin);
|
buttons.addImageTextButton("Database", Icon.book, style, () -> ui.database.show()).margin(bmargin);
|
||||||
buttons.addImageTextButton("Resources", Icon.file, style, this::hide).margin(bmargin);
|
buttons.addImageTextButton("Resources", Icon.file, style, this::hide).margin(bmargin);
|
||||||
|
|
||||||
|
|||||||
@@ -327,7 +327,7 @@ public class SettingsMenuDialog extends SettingsDialog{
|
|||||||
graphics.checkPref("blockselectkeys", true);
|
graphics.checkPref("blockselectkeys", true);
|
||||||
}
|
}
|
||||||
graphics.checkPref("indicators", true);
|
graphics.checkPref("indicators", true);
|
||||||
graphics.checkPref("animatedwater", !mobile);
|
graphics.checkPref("animatedwater", true);
|
||||||
if(Shaders.shield != null){
|
if(Shaders.shield != null){
|
||||||
graphics.checkPref("animatedshields", !mobile);
|
graphics.checkPref("animatedshields", !mobile);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ public class SurgeWall extends Wall{
|
|||||||
public void collision(Bulletc bullet){
|
public void collision(Bulletc bullet){
|
||||||
super.collision(bullet);
|
super.collision(bullet);
|
||||||
if(Mathf.chance(lightningChance)){
|
if(Mathf.chance(lightningChance)){
|
||||||
Lightning.create(team(), Pal.surge, lightningDamage, bullet.x(), bullet.y(), bullet.rotation() + 180f, lightningLength);
|
Lightning.create(team(), Pal.surge, lightningDamage, x, y, bullet.rotation() + 180f, lightningLength);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user