fix: shootArrowButton did not work
This commit is contained in:
parent
24e0f429c3
commit
0e63a82814
|
@ -72,7 +72,7 @@ public class SettingsScreen extends BaseScreen {
|
|||
});
|
||||
|
||||
// Control buttons
|
||||
VisTextButton shootArrow = new VisTextButton("mouse" + SagittariusGame.shootArrowButton);;
|
||||
VisTextButton shootArrow = new VisTextButton(String.valueOf(SagittariusGame.shootArrowButton));;
|
||||
VisTextButton moveLeft = new VisTextButton(Keys.toString(SagittariusGame.moveLeftKey));
|
||||
VisTextButton moveRight = new VisTextButton(Keys.toString(SagittariusGame.moveRightKey));
|
||||
VisTextButton zoomIn = new VisTextButton(Keys.toString(SagittariusGame.zoomInKey));
|
||||
|
@ -93,7 +93,7 @@ public class SettingsScreen extends BaseScreen {
|
|||
zoomOut.setDisabled(true);
|
||||
} else if (!shootArrow.isDisabled() && capturing) {
|
||||
capturing = false;
|
||||
shootArrow.setText("mouse" + button);
|
||||
shootArrow.setText(String.valueOf(button));
|
||||
moveLeft.setDisabled(false);
|
||||
moveRight.setDisabled(false);
|
||||
zoomIn.setDisabled(false);
|
||||
|
@ -127,9 +127,7 @@ public class SettingsScreen extends BaseScreen {
|
|||
SagittariusGame.moveRightKey = Keys.valueOf(moveRight.getText().toString());
|
||||
SagittariusGame.zoomInKey = Keys.valueOf(zoomIn.getText().toString());
|
||||
SagittariusGame.zoomOutKey = Keys.valueOf(zoomOut.getText().toString());
|
||||
SagittariusGame.shootArrowButton =
|
||||
Keys.valueOf(shootArrow.getText().toString().substring(5));
|
||||
|
||||
SagittariusGame.shootArrowButton = Integer.parseInt(shootArrow.getText().toString());
|
||||
// Deactivate music or not
|
||||
if (disableMusic.isChecked() && SagittariusGame.music.isPlaying()) {
|
||||
SagittariusGame.music.stop();
|
||||
|
|
Loading…
Reference in a new issue