Commit 5c1af676 authored by nanahira's avatar nanahira

Merge branch 'master' into another

parents a1d39ec1 00d2c2e1
No preview for this file type
...@@ -116,7 +116,7 @@ bool Game::Initialize() { ...@@ -116,7 +116,7 @@ bool Game::Initialize() {
SetWindowsIcon(); SetWindowsIcon();
//main menu //main menu
wchar_t strbuf[256]; wchar_t strbuf[256];
myswprintf(strbuf, L"KoishiPro Another %X.0%X.%X Rosarium", PRO_VERSION >> 12, (PRO_VERSION >> 4) & 0xff, PRO_VERSION & 0xf); myswprintf(strbuf, L"KoishiPro Another %X.0%X.%X Charin", PRO_VERSION >> 12, (PRO_VERSION >> 4) & 0xff, PRO_VERSION & 0xf);
wMainMenu = env->addWindow(rect<s32>(370, 200, 650, 415), false, strbuf); wMainMenu = env->addWindow(rect<s32>(370, 200, 650, 415), false, strbuf);
wMainMenu->getCloseButton()->setVisible(false); wMainMenu->getCloseButton()->setVisible(false);
btnLanMode = env->addButton(rect<s32>(10, 30, 270, 60), wMainMenu, BUTTON_LAN_MODE, dataManager.GetSysString(1200)); btnLanMode = env->addButton(rect<s32>(10, 30, 270, 60), wMainMenu, BUTTON_LAN_MODE, dataManager.GetSysString(1200));
......
...@@ -52,6 +52,7 @@ void SoundManager::PlaySoundEffect(int sound) { ...@@ -52,6 +52,7 @@ void SoundManager::PlaySoundEffect(int sound) {
#ifdef YGOPRO_USE_IRRKLANG #ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableSound->isChecked()) if(!mainGame->chkEnableSound->isChecked())
return; return;
engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
switch(sound) { switch(sound) {
case SOUND_SUMMON: { case SOUND_SUMMON: {
engineSound->play2D("./sound/summon.wav"); engineSound->play2D("./sound/summon.wav");
...@@ -180,7 +181,6 @@ void SoundManager::PlaySoundEffect(int sound) { ...@@ -180,7 +181,6 @@ void SoundManager::PlaySoundEffect(int sound) {
default: default:
break; break;
} }
engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
#endif #endif
} }
void SoundManager::PlayDialogSound(irr::gui::IGUIElement * element) { void SoundManager::PlayDialogSound(irr::gui::IGUIElement * element) {
...@@ -212,8 +212,8 @@ void SoundManager::PlayMusic(char* song, bool loop) { ...@@ -212,8 +212,8 @@ void SoundManager::PlayMusic(char* song, bool loop) {
return; return;
if(!engineMusic->isCurrentlyPlaying(song)) { if(!engineMusic->isCurrentlyPlaying(song)) {
engineMusic->stopAllSounds(); engineMusic->stopAllSounds();
soundBGM = engineMusic->play2D(song, loop, false, true);
engineMusic->setSoundVolume(mainGame->gameConf.music_volume); engineMusic->setSoundVolume(mainGame->gameConf.music_volume);
soundBGM = engineMusic->play2D(song, loop, false, true);
} }
#endif #endif
} }
...@@ -257,8 +257,8 @@ void SoundManager::PlayCustomSound(char* SoundName) { ...@@ -257,8 +257,8 @@ void SoundManager::PlayCustomSound(char* SoundName) {
#ifdef YGOPRO_USE_IRRKLANG #ifdef YGOPRO_USE_IRRKLANG
if(!mainGame->chkEnableSound->isChecked()) if(!mainGame->chkEnableSound->isChecked())
return; return;
engineSound->play2D(SoundName);
engineSound->setSoundVolume(mainGame->gameConf.sound_volume); engineSound->setSoundVolume(mainGame->gameConf.sound_volume);
engineSound->play2D(SoundName);
#endif #endif
} }
void SoundManager::StopBGM() { void SoundManager::StopBGM() {
......
Subproject commit 0ba949b0cbeb78c619bb1179d3371ff1c108f808 Subproject commit a863a19d260bc343484ea0911c5f7a72fe9d6a87
...@@ -16,8 +16,8 @@ VALUE "InternalName", "KoishiPro Another" ...@@ -16,8 +16,8 @@ VALUE "InternalName", "KoishiPro Another"
VALUE "LegalCopyright", "Copyright (C) 2019 Nanahira" VALUE "LegalCopyright", "Copyright (C) 2019 Nanahira"
VALUE "OriginalFilename", "ygopro_another.exe" VALUE "OriginalFilename", "ygopro_another.exe"
VALUE "ProductName", "KoishiPro Another" VALUE "ProductName", "KoishiPro Another"
VALUE "FileVersion", "Rosarium" VALUE "FileVersion", "Charin"
VALUE "ProductVersion", "Rosarium" VALUE "ProductVersion", "Charin"
END END
END END
BLOCK "VarFileInfo" BLOCK "VarFileInfo"
......
Subproject commit 7e2e5d4d4eaf792efb65acd5c426ecb1eb4be6f8 Subproject commit 1d99403acb4527402a1cf53c6a70ce1af6bdb479
...@@ -1007,3 +1007,6 @@ ...@@ -1007,3 +1007,6 @@
!setname 0x130 破械 !setname 0x130 破械
!setname 0x1130 破械神 !setname 0x1130 破械神
!setname 0x131 梦镜 Dream Mirror !setname 0x131 梦镜 Dream Mirror
!setname 0x132 斩机
!setname 0x133 半龙女仆
!setname 0x134 王战
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment