summaryrefslogtreecommitdiff
path: root/core/src/kz/ilotterytea/maxon/ui
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-11-10 21:02:17 +0500
committerilotterytea <iltsu@alright.party>2024-11-10 21:02:17 +0500
commit34f3b60afdc7d6934cf45d990bead9d90f1380f9 (patch)
tree347e5ae8c2eee910a84a6368e82f1082312e020e /core/src/kz/ilotterytea/maxon/ui
parent9534ea1bdfe588c653be91f139bfc7457a108801 (diff)
upd: name for music and sfx in settings
Diffstat (limited to 'core/src/kz/ilotterytea/maxon/ui')
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java3
-rw-r--r--core/src/kz/ilotterytea/maxon/ui/game/QuickActionsTable.java2
2 files changed, 3 insertions, 2 deletions
diff --git a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java
index 643a963..cb02dec 100644
--- a/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java
+++ b/core/src/kz/ilotterytea/maxon/ui/SavegameWidget.java
@@ -11,6 +11,7 @@ import com.badlogic.gdx.scenes.scene2d.utils.ClickListener;
import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.Disposable;
import kz.ilotterytea.maxon.MaxonGame;
+import kz.ilotterytea.maxon.constants.SettingsConstants;
import kz.ilotterytea.maxon.localization.LineId;
import kz.ilotterytea.maxon.player.Savegame;
import kz.ilotterytea.maxon.screens.game.GameScreen;
@@ -37,7 +38,7 @@ public class SavegameWidget extends Table implements Disposable {
this.stage = stage;
this.atlas = game.assetManager.get("sprites/gui/player_icons.atlas", TextureAtlas.class);
this.clickSound = game.assetManager.get("sfx/ui/click.ogg", Sound.class);
- this.soundVolume = game.prefs.getInteger("sfx", 10) / 10f;
+ this.soundVolume = game.prefs.getInteger(SettingsConstants.SFX_NAME, 10) / 10f;
this.skin = skin;
this.savegame = savegame;
diff --git a/core/src/kz/ilotterytea/maxon/ui/game/QuickActionsTable.java b/core/src/kz/ilotterytea/maxon/ui/game/QuickActionsTable.java
index 1940d65..687b910 100644
--- a/core/src/kz/ilotterytea/maxon/ui/game/QuickActionsTable.java
+++ b/core/src/kz/ilotterytea/maxon/ui/game/QuickActionsTable.java
@@ -23,7 +23,7 @@ public class QuickActionsTable extends Table {
MaxonGame game = MaxonGame.getInstance();
Sound clickSound = game.assetManager.get("sfx/ui/click.ogg");
- float soundVolume = game.prefs.getInteger("sfx", 10) / 10f;
+ float soundVolume = game.prefs.getInteger(SettingsConstants.SFX_NAME, 10) / 10f;
float iconSize = (OsUtils.isMobile ? 256f : 64f)
* game.prefs.getFloat("guiScale", SettingsConstants.UI_DEFAULT_SCALE);