From 58ed59720b88cd13c02b5103e8240ea3baa3eb43 Mon Sep 17 00:00:00 2001 From: Starla Insigna Date: Sun, 8 Feb 2009 21:11:06 -0500 Subject: Added Decision2 sound This sound should be played when the player selects something from the TitleScreen, opens the Menu and other choice sounding places. --- .../fourpuzzle/gamestate/TitleScreenGameState.java | 2 ++ .../fourisland/fourpuzzle/resources/sound/Decision2.wav | Bin 0 -> 21548 bytes src/com/fourisland/fourpuzzle/window/ChoiceWindow.java | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100755 src/com/fourisland/fourpuzzle/resources/sound/Decision2.wav (limited to 'src') diff --git a/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java b/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java index 998d33a..cf8b908 100755 --- a/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java +++ b/src/com/fourisland/fourpuzzle/gamestate/TitleScreenGameState.java @@ -46,6 +46,8 @@ public class TitleScreenGameState implements GameState { { if (Game.getKey().getKeyCode() == KeyEvent.VK_ENTER) { + Audio.playSound("Decision2"); + if (choices.getSelected().equals(Database.getVocab("NewGame"))) { Game.setSaveFile(new SaveFile()); diff --git a/src/com/fourisland/fourpuzzle/resources/sound/Decision2.wav b/src/com/fourisland/fourpuzzle/resources/sound/Decision2.wav new file mode 100755 index 0000000..eed3449 Binary files /dev/null and b/src/com/fourisland/fourpuzzle/resources/sound/Decision2.wav differ diff --git a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java index e466e63..9da5d60 100755 --- a/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java +++ b/src/com/fourisland/fourpuzzle/window/ChoiceWindow.java @@ -81,7 +81,7 @@ public class ChoiceWindow { g2.drawImage(SystemGraphic.getSelectionBackground(), tx-1, ty-fh+3, fw+SPACER-2, fh+SPACER-2, null); g2.drawImage(Window.Selector.getImage(fw-Window.Selector.getLeftX(), fh-Window.Selector.getTopY()), tx-SPACER, ty-fh, null); } - + g2.setPaint(new TexturePaint(SystemGraphic.getTextColor(), new Rectangle(tx, ty, fw, fh))); g2.drawString(choice, tx, ty); -- cgit 1.4.1