mirror of
https://github.com/fabiangreffrath/woof.git
synced 2025-09-22 11:22:18 -04:00
menu fixes
* Esc key doesn't change input mode * Fix warning and help messages in mouse mode
This commit is contained in:
parent
44045866fa
commit
8f0ba6e119
@ -2581,6 +2581,10 @@ boolean M_Responder(event_t *ev)
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
case ev_keydown:
|
case ev_keydown:
|
||||||
|
if (menu_input == mouse_mode && M_InputActivated(input_menu_escape))
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
menu_input = key_mode;
|
menu_input = key_mode;
|
||||||
ch = ev->data1;
|
ch = ev->data1;
|
||||||
break;
|
break;
|
||||||
|
@ -922,18 +922,14 @@ void MN_DrawDelVerify(void)
|
|||||||
|
|
||||||
static void DrawInstructions()
|
static void DrawInstructions()
|
||||||
{
|
{
|
||||||
int flags = current_menu[set_item_on].m_flags;
|
int index = (menu_input == mouse_mode ? highlight_item : set_item_on);
|
||||||
|
int flags = current_menu[index].m_flags;
|
||||||
|
|
||||||
if (ItemDisabled(flags) || print_warning_about_changes > 0)
|
if (ItemDisabled(flags) || print_warning_about_changes > 0)
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (menu_input == mouse_mode && !(flags & S_HILITE))
|
|
||||||
{
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// There are different instruction messages depending on whether you
|
// There are different instruction messages depending on whether you
|
||||||
// are changing an item or just sitting on it.
|
// are changing an item or just sitting on it.
|
||||||
|
|
||||||
@ -2926,6 +2922,7 @@ boolean MN_SetupCursorPostion(int x, int y)
|
|||||||
|
|
||||||
if (highlight_item != i)
|
if (highlight_item != i)
|
||||||
{
|
{
|
||||||
|
print_warning_about_changes = false;
|
||||||
highlight_item = i;
|
highlight_item = i;
|
||||||
M_StartSound(sfx_itemup);
|
M_StartSound(sfx_itemup);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user