addSounds
This commit is contained in:
parent
a4e877668b
commit
79d26896c7
9 changed files with 35 additions and 3 deletions
|
@ -56,6 +56,24 @@
|
||||||
#begin MapData/TileSets/TilesetNature.tsj
|
#begin MapData/TileSets/TilesetNature.tsj
|
||||||
/copy:MapData/TileSets/TilesetNature.tsj
|
/copy:MapData/TileSets/TilesetNature.tsj
|
||||||
|
|
||||||
|
#begin sounds/Background menu music.wav
|
||||||
|
/importer:WavImporter
|
||||||
|
/processor:SoundEffectProcessor
|
||||||
|
/processorParam:Quality=Best
|
||||||
|
/build:sounds/Background menu music.wav
|
||||||
|
|
||||||
|
#begin sounds/Button click.wav
|
||||||
|
/importer:WavImporter
|
||||||
|
/processor:SoundEffectProcessor
|
||||||
|
/processorParam:Quality=Best
|
||||||
|
/build:sounds/Button click.wav
|
||||||
|
|
||||||
|
#begin sounds/Craft sound.wav
|
||||||
|
/importer:WavImporter
|
||||||
|
/processor:SoundEffectProcessor
|
||||||
|
/processorParam:Quality=Best
|
||||||
|
/build:sounds/Craft sound.wav
|
||||||
|
|
||||||
#begin sounds/Loot.wav
|
#begin sounds/Loot.wav
|
||||||
/importer:WavImporter
|
/importer:WavImporter
|
||||||
/processor:SoundEffectProcessor
|
/processor:SoundEffectProcessor
|
||||||
|
|
BIN
ZoFo/Content/sounds/Background menu music.wav
Normal file
BIN
ZoFo/Content/sounds/Background menu music.wav
Normal file
Binary file not shown.
BIN
ZoFo/Content/sounds/Button click.wav
Normal file
BIN
ZoFo/Content/sounds/Button click.wav
Normal file
Binary file not shown.
BIN
ZoFo/Content/sounds/Craft sound.wav
Normal file
BIN
ZoFo/Content/sounds/Craft sound.wav
Normal file
Binary file not shown.
|
@ -142,6 +142,7 @@ public class BaseGUI : AbstractGUI
|
||||||
ItemDisplayButtonsList.Add(temp);
|
ItemDisplayButtonsList.Add(temp);
|
||||||
temp.LeftButtonPressed += () =>
|
temp.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Craft sound");
|
||||||
AppManager.Instance.playerData.CraftItem(item.Key);
|
AppManager.Instance.playerData.CraftItem(item.Key);
|
||||||
AppManager.Instance.SetGUI(new BaseGUI());
|
AppManager.Instance.SetGUI(new BaseGUI());
|
||||||
};
|
};
|
||||||
|
@ -163,7 +164,9 @@ public class BaseGUI : AbstractGUI
|
||||||
textureName = "Textures\\GUI\\checkboxs_off"
|
textureName = "Textures\\GUI\\checkboxs_off"
|
||||||
};
|
};
|
||||||
Elements.Add(bTExit);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI()); };
|
bTExit.LeftButtonPressed += () => { AppManager.Instance.SetGUI(new MainMenuGUI());
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void Update(GameTime gameTime)
|
public override void Update(GameTime gameTime)
|
||||||
|
|
|
@ -40,7 +40,7 @@ public class MainMenuGUI : AbstractGUI
|
||||||
};
|
};
|
||||||
playButton.LeftButtonPressed += () =>
|
playButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
AppManager.Instance.SoundManager.StartAmbientSound("Loot");
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new SelectModeMenu());
|
AppManager.Instance.SetGUI(new SelectModeMenu());
|
||||||
};
|
};
|
||||||
Elements.Add(playButton);
|
Elements.Add(playButton);
|
||||||
|
@ -55,6 +55,7 @@ public class MainMenuGUI : AbstractGUI
|
||||||
};
|
};
|
||||||
baseButton.LeftButtonPressed += () =>
|
baseButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new BaseGUI());
|
AppManager.Instance.SetGUI(new BaseGUI());
|
||||||
};
|
};
|
||||||
Elements.Add(baseButton);
|
Elements.Add(baseButton);
|
||||||
|
@ -69,7 +70,7 @@ public class MainMenuGUI : AbstractGUI
|
||||||
};
|
};
|
||||||
optionButton.LeftButtonPressed += () =>
|
optionButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
AppManager.Instance.SoundManager.StartAmbientSound("Loot");
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new OptionsGUI());
|
AppManager.Instance.SetGUI(new OptionsGUI());
|
||||||
};
|
};
|
||||||
Elements.Add(optionButton);
|
Elements.Add(optionButton);
|
||||||
|
|
|
@ -43,6 +43,7 @@ public class OptionsGUI : AbstractGUI
|
||||||
label_OverallVolume_Percent.text = Math.Round(slider_OverallVolume.GetSliderValue * 100) + "%";
|
label_OverallVolume_Percent.text = Math.Round(slider_OverallVolume.GetSliderValue * 100) + "%";
|
||||||
slider_OverallVolume.SliderChanged += (newVal) =>
|
slider_OverallVolume.SliderChanged += (newVal) =>
|
||||||
{
|
{
|
||||||
|
|
||||||
label_OverallVolume_Percent.text = Math.Round(slider_OverallVolume.GetSliderValue * 100) + "%";
|
label_OverallVolume_Percent.text = Math.Round(slider_OverallVolume.GetSliderValue * 100) + "%";
|
||||||
AppManager.Instance.SettingsManager.SetMainVolume(newVal);
|
AppManager.Instance.SettingsManager.SetMainVolume(newVal);
|
||||||
};
|
};
|
||||||
|
@ -64,6 +65,7 @@ public class OptionsGUI : AbstractGUI
|
||||||
label_MusicVolume_Percent.text = Math.Round(slider_MusicVolume.GetSliderValue * 100) + "%";
|
label_MusicVolume_Percent.text = Math.Round(slider_MusicVolume.GetSliderValue * 100) + "%";
|
||||||
slider_MusicVolume.SliderChanged += (newVal) =>
|
slider_MusicVolume.SliderChanged += (newVal) =>
|
||||||
{
|
{
|
||||||
|
|
||||||
label_MusicVolume_Percent.text = Math.Round(slider_MusicVolume.GetSliderValue * 100) + "%";
|
label_MusicVolume_Percent.text = Math.Round(slider_MusicVolume.GetSliderValue * 100) + "%";
|
||||||
AppManager.Instance.SettingsManager.SetMusicVolume(newVal);
|
AppManager.Instance.SettingsManager.SetMusicVolume(newVal);
|
||||||
};
|
};
|
||||||
|
@ -85,6 +87,7 @@ public class OptionsGUI : AbstractGUI
|
||||||
label_EffectsVolume_Percent.text = Math.Round(slider_EffectsVolume.GetSliderValue * 100) + "%";
|
label_EffectsVolume_Percent.text = Math.Round(slider_EffectsVolume.GetSliderValue * 100) + "%";
|
||||||
slider_EffectsVolume.SliderChanged += (newVal) =>
|
slider_EffectsVolume.SliderChanged += (newVal) =>
|
||||||
{
|
{
|
||||||
|
|
||||||
label_EffectsVolume_Percent.text = Math.Round(slider_EffectsVolume.GetSliderValue * 100) + "%";
|
label_EffectsVolume_Percent.text = Math.Round(slider_EffectsVolume.GetSliderValue * 100) + "%";
|
||||||
AppManager.Instance.SettingsManager.SetSoundEffectsVolume(newVal);
|
AppManager.Instance.SettingsManager.SetSoundEffectsVolume(newVal);
|
||||||
};
|
};
|
||||||
|
@ -109,6 +112,7 @@ public class OptionsGUI : AbstractGUI
|
||||||
button_FullScreen.SetIsChecked(AppManager.Instance.SettingsManager.IsFullScreen);
|
button_FullScreen.SetIsChecked(AppManager.Instance.SettingsManager.IsFullScreen);
|
||||||
button_FullScreen.Checked += (newCheckState) =>
|
button_FullScreen.Checked += (newCheckState) =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SettingsManager.SetIsFullScreen(newCheckState);
|
AppManager.Instance.SettingsManager.SetIsFullScreen(newCheckState);
|
||||||
};
|
};
|
||||||
Elements.Add(button_FullScreen);
|
Elements.Add(button_FullScreen);
|
||||||
|
@ -120,6 +124,7 @@ public class OptionsGUI : AbstractGUI
|
||||||
Elements.Add(bTExit);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new MainMenuGUI());
|
AppManager.Instance.SetGUI(new MainMenuGUI());
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -31,6 +31,7 @@ public class PauseGUI : AbstractGUI
|
||||||
};
|
};
|
||||||
continueButton.LeftButtonPressed += () =>
|
continueButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new HUD());
|
AppManager.Instance.SetGUI(new HUD());
|
||||||
};
|
};
|
||||||
Elements.Add(continueButton);
|
Elements.Add(continueButton);
|
||||||
|
@ -45,6 +46,7 @@ public class PauseGUI : AbstractGUI
|
||||||
};
|
};
|
||||||
exitButton.LeftButtonPressed += () =>
|
exitButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new MainMenuGUI());
|
AppManager.Instance.SetGUI(new MainMenuGUI());
|
||||||
};
|
};
|
||||||
Elements.Add(exitButton);
|
Elements.Add(exitButton);
|
||||||
|
|
|
@ -38,6 +38,7 @@ public class SelectModeMenu : AbstractGUI
|
||||||
};
|
};
|
||||||
singleButton.LeftButtonPressed += () =>
|
singleButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
// single
|
// single
|
||||||
Server server = new Server();
|
Server server = new Server();
|
||||||
Client client = new Client();
|
Client client = new Client();
|
||||||
|
@ -68,6 +69,7 @@ public class SelectModeMenu : AbstractGUI
|
||||||
};
|
};
|
||||||
optionButton.LeftButtonPressed += () =>
|
optionButton.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new SelectingServerGUI());
|
AppManager.Instance.SetGUI(new SelectingServerGUI());
|
||||||
// multi
|
// multi
|
||||||
|
|
||||||
|
@ -80,6 +82,7 @@ public class SelectModeMenu : AbstractGUI
|
||||||
Elements.Add(bTExit);
|
Elements.Add(bTExit);
|
||||||
bTExit.LeftButtonPressed += () =>
|
bTExit.LeftButtonPressed += () =>
|
||||||
{
|
{
|
||||||
|
AppManager.Instance.SoundManager.StartAmbientSound("Button click");
|
||||||
AppManager.Instance.SetGUI(new MainMenuGUI());
|
AppManager.Instance.SetGUI(new MainMenuGUI());
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue