mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 14:30:48 +00:00
menu: Use M_Popup for the sound system restart message
This commit is contained in:
parent
5daee97e2a
commit
1d86145f7f
1 changed files with 11 additions and 4 deletions
|
@ -1264,10 +1264,11 @@ UpdateSoundQualityFunc(void *unused)
|
||||||
Cvar_SetValue("s_loadas8bit", false);
|
Cvar_SetValue("s_loadas8bit", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
M_DrawTextBox(8, 120 - 48, 36, 3);
|
m_popup_string = "Restarting the sound system. This\n"
|
||||||
M_Print(16 + 16, 120 - 48 + 8, "Restarting the sound system. This");
|
"could take up to a minute, so\n"
|
||||||
M_Print(16 + 16, 120 - 48 + 16, "could take up to a minute, so");
|
"please be patient.";
|
||||||
M_Print(16 + 16, 120 - 48 + 24, "please be patient.");
|
m_popup_endtime = cls.realtime + 2000;
|
||||||
|
M_Popup();
|
||||||
|
|
||||||
/* the text box won't show up unless we do a buffer swap */
|
/* the text box won't show up unless we do a buffer swap */
|
||||||
re.EndFrame();
|
re.EndFrame();
|
||||||
|
@ -1471,11 +1472,17 @@ Options_MenuDraw(void)
|
||||||
M_Banner("m_banner_options");
|
M_Banner("m_banner_options");
|
||||||
Menu_AdjustCursor(&s_options_menu, 1);
|
Menu_AdjustCursor(&s_options_menu, 1);
|
||||||
Menu_Draw(&s_options_menu);
|
Menu_Draw(&s_options_menu);
|
||||||
|
M_Popup();
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *
|
static const char *
|
||||||
Options_MenuKey(int key)
|
Options_MenuKey(int key)
|
||||||
{
|
{
|
||||||
|
if (m_popup_string)
|
||||||
|
{
|
||||||
|
m_popup_string = NULL;
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
return Default_MenuKey(&s_options_menu, key);
|
return Default_MenuKey(&s_options_menu, key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue