mirror of
https://github.com/glest/glest-source.git
synced 2025-09-08 23:10:42 +02:00
playing a sound for quick highlight pointer(marker)
This commit is contained in:
@@ -1684,6 +1684,9 @@ void Game::addOrReplaceInHighlightedCells(MarkedCell mc){
|
||||
}
|
||||
mc.setAliveCount(200);
|
||||
highlightedCells.push_back(mc);
|
||||
CoreData &coreData= CoreData::getInstance();
|
||||
SoundRenderer &soundRenderer= SoundRenderer::getInstance();
|
||||
soundRenderer.playFx(coreData.getMarkerSound());
|
||||
}
|
||||
|
||||
void Game::ReplaceDisconnectedNetworkPlayersWithAI(bool isNetworkGame, NetworkRole role) {
|
||||
|
@@ -365,6 +365,7 @@ void CoreData::load() {
|
||||
clickSoundC.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/click_c.wav"));
|
||||
attentionSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/attention.wav"));
|
||||
highlightSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/highlight.wav"));
|
||||
markerSound.load(getGameCustomCoreDataPath(data_path, "data/core/menu/sound/sonar.wav"));
|
||||
|
||||
XmlTree xmlTree;
|
||||
//string data_path = getGameReadWritePath(GameConstants::path_data_CacheLookupKey);
|
||||
|
@@ -50,6 +50,7 @@ private:
|
||||
StaticSound clickSoundC;
|
||||
StaticSound attentionSound;
|
||||
StaticSound highlightSound;
|
||||
StaticSound markerSound;
|
||||
SoundContainer waterSounds;
|
||||
|
||||
Texture2D *logoTexture;
|
||||
@@ -163,6 +164,7 @@ public:
|
||||
StaticSound *getClickSoundC() {return &clickSoundC;}
|
||||
StaticSound *getAttentionSound() {return &attentionSound;}
|
||||
StaticSound *getHighlightSound() {return &highlightSound;}
|
||||
StaticSound *getMarkerSound() {return &markerSound;}
|
||||
StaticSound *getWaterSound() {return waterSounds.getRandSound();}
|
||||
|
||||
Font2D *getDisplayFont() const {return displayFont;}
|
||||
|
Reference in New Issue
Block a user