Menu sounds cleanup (Bug #922), from Nic

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2567 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2006-12-01 03:23:05 +00:00
parent f85afdb480
commit 97cb208c78
3 changed files with 4 additions and 3 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.6: Changes towards version 0.6:
- Menu sounds in Setup track rest of game (#922), from Nic - Michael
- Shifted the Mouse Error to a Popup Window, moved the message to - Shifted the Mouse Error to a Popup Window, moved the message to
starcon.txt for translators - Michael starcon.txt for translators - Michael
- Generic DoPopupWindow() command for status messages - Michael - Generic DoPopupWindow() command for status messages - Michael
+1 -1
View File
@@ -2220,7 +2220,7 @@ DoConnectingDialog (PMELEE_STATE pMS)
if (GLOBAL (CurrentActivity) & CHECK_ABORT) if (GLOBAL (CurrentActivity) & CHECK_ABORT)
return (FALSE); return (FALSE);
SetMenuSounds (0, 0); SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_NONE);
if (!pMS->Initialized) if (!pMS->Initialized)
{ {
RECT r; RECT r;
+2 -2
View File
@@ -547,7 +547,7 @@ OnTextEntryEvent (WIDGET_TEXTENTRY *widget)
tes.ChangeCallback = OnTextEntryChange; tes.ChangeCallback = OnTextEntryChange;
tes.FrameCallback = OnTextEntryFrame; tes.FrameCallback = OnTextEntryFrame;
SetMenuSounds (0, MENU_SOUND_SELECT); SetMenuSounds (MENU_SOUND_NONE, MENU_SOUND_SELECT);
if (!DoTextEntry (&tes)) if (!DoTextEntry (&tes))
{ // editing failed (canceled) -- revert the changes { // editing failed (canceled) -- revert the changes
utf8StringCopy (widget->value, widget->maxlen, revert_buf); utf8StringCopy (widget->value, widget->maxlen, revert_buf);
@@ -1013,7 +1013,7 @@ SetupMenu (void)
s.InputFunc = DoSetupMenu; s.InputFunc = DoSetupMenu;
s.initialized = FALSE; s.initialized = FALSE;
SetMenuSounds (0, MENU_SOUND_SELECT); SetMenuSounds (MENU_SOUND_ARROWS, MENU_SOUND_SELECT);
SetupTab = CaptureStringTable (LoadStringTable (SETUP_MENU_STRTAB)); SetupTab = CaptureStringTable (LoadStringTable (SETUP_MENU_STRTAB));
if (SetupTab) if (SetupTab)
{ {