• R/O
  • SSH

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisión14a7c47a320b0a6db6e024ab0b6103517d09c37a (tree)
Tiempo2022-01-30 16:33:48
Autorsebastian_bugiu
Commitersebastian_bugiu

Log Message

Increased checkbox size in preferences menu.

Cambiar Resumen

Diferencia incremental

diff -r e7b120b3dd27 -r 14a7c47a320b core/src/com/headwayent/spacerocket/OptionsMenuActivity.java
--- a/core/src/com/headwayent/spacerocket/OptionsMenuActivity.java Wed Jan 26 18:37:18 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/OptionsMenuActivity.java Sun Jan 30 09:33:48 2022 +0200
@@ -14,6 +14,7 @@
1414 import com.badlogic.gdx.scenes.scene2d.ui.TextButton;
1515 import com.badlogic.gdx.scenes.scene2d.utils.ChangeListener;
1616 import com.badlogic.gdx.utils.Align;
17+import com.badlogic.gdx.utils.Scaling;
1718 import com.badlogic.gdx.utils.ScreenUtils;
1819 import com.badlogic.gdx.utils.viewport.ScreenViewport;
1920
@@ -45,12 +46,15 @@
4546 Skin skin = SpaceRocket.getGame().getSkin();
4647
4748 titleLabel = new Label("Options", skin);
48- soundLabel = new Label("Sound enabled", skin);
49- vibrationLabel = new Label("Vibration enabled", skin);
49+ soundLabel = new Label("Sound", skin);
50+ vibrationLabel = new Label("Vibration", skin);
5051 accelerometerLabel = new Label("Accelerometer for orientation", skin);
5152 shipMovementLabel = new Label("Ship movement type", skin);
5253
5354 final CheckBox soundCheckbox = new CheckBox(null, skin);
55+ soundCheckbox.getImage().setScaling(Scaling.fill);
56+// soundCheckbox.setSize(50, 50);
57+ soundCheckbox.getImageCell().size(25);
5458 soundCheckbox.setChecked(Preferences.getInstance().isSoundEnabled());
5559 soundCheckbox.addListener(new EventListener() {
5660 @Override
@@ -61,6 +65,8 @@
6165 });
6266
6367 final CheckBox vibrationCheckbox = new CheckBox(null, skin);
68+ vibrationCheckbox.getImage().setScaling(Scaling.fill);
69+ vibrationCheckbox.getImageCell().size(25);
6470 vibrationCheckbox.setChecked(Preferences.getInstance().isVibrationEnabled());
6571 vibrationCheckbox.addListener(new EventListener() {
6672 @Override
@@ -98,10 +104,10 @@
98104
99105 table.add(titleLabel).colspan(2);
100106 table.row().pad(10, 0, 10, 0);
101- table.add(soundLabel).left();
107+ table.add(soundLabel).left().pad(0, 0, 0, 50);
102108 table.add(soundCheckbox);
103109 table.row().pad(10, 0, 10, 0);
104- table.add(vibrationLabel).left();
110+ table.add(vibrationLabel).left().pad(0, 0, 0, 50);
105111 table.add(vibrationCheckbox);
106112 // table.row().pad(10, 0, 10, 0);
107113 // table.add(shipMovementLabel).left();
diff -r e7b120b3dd27 -r 14a7c47a320b core/src/com/headwayent/spacerocket/old/ExplosionSprite.java
--- a/core/src/com/headwayent/spacerocket/old/ExplosionSprite.java Wed Jan 26 18:37:18 2022 +0200
+++ b/core/src/com/headwayent/spacerocket/old/ExplosionSprite.java Sun Jan 30 09:33:48 2022 +0200
@@ -3,6 +3,7 @@
33 import com.badlogic.gdx.audio.Sound;
44 import com.badlogic.gdx.graphics.g2d.TextureAtlas;
55 import com.badlogic.gdx.graphics.g2d.TextureRegion;
6+import com.headwayent.spacerocket.Preferences;
67
78 public class ExplosionSprite extends ExtendedSprite {
89 private static final int NUM_FRAMES = 8;
@@ -18,6 +19,8 @@
1819 @Override
1920 public void launch(float x, float y) {
2021 super.launch(x, y);
21- explosionSnd.play();
22+ if (Preferences.getInstance().isSoundEnabled()) {
23+ explosionSnd.play();
24+ }
2225 }
2326 }
diff -r e7b120b3dd27 -r 14a7c47a320b ios/robovm.properties
--- a/ios/robovm.properties Wed Jan 26 18:37:18 2022 +0200
+++ b/ios/robovm.properties Sun Jan 30 09:33:48 2022 +0200
@@ -2,5 +2,5 @@
22 app.id=com.headwayent.spacerocket
33 app.mainclass=com.headwayent.spacerocket.IOSLauncher
44 app.executable=IOSLauncher
5-app.build=17
5+app.build=18
66 app.name=Hotshot 2D