1
0
Fork 0

BRIDGE: fix incorrect message being sent in some GuiMenuXXX functions

closes #2027
This commit is contained in:
Duncan Ogilvie 2018-09-13 12:54:08 +02:00
parent 7aab39f8e1
commit 09fe1e379d
1 changed files with 3 additions and 3 deletions

View File

@ -1493,17 +1493,17 @@ BRIDGE_IMPEXP void GuiMenuSetVisible(int hMenu, bool visible)
BRIDGE_IMPEXP void GuiMenuSetEntryVisible(int hEntry, bool visible)
{
_gui_sendmessage(GUI_MENU_SET_VISIBLE, (void*)hEntry, (void*)visible);
_gui_sendmessage(GUI_MENU_SET_ENTRY_VISIBLE, (void*)hEntry, (void*)visible);
}
BRIDGE_IMPEXP void GuiMenuSetName(int hMenu, const char* name)
{
_gui_sendmessage(GUI_MENU_SET_VISIBLE, (void*)hMenu, (void*)name);
_gui_sendmessage(GUI_MENU_SET_NAME, (void*)hMenu, (void*)name);
}
BRIDGE_IMPEXP void GuiMenuSetEntryName(int hEntry, const char* name)
{
_gui_sendmessage(GUI_MENU_SET_VISIBLE, (void*)hEntry, (void*)name);
_gui_sendmessage(GUI_MENU_SET_ENTRY_NAME, (void*)hEntry, (void*)name);
}
BRIDGE_IMPEXP void GuiMenuSetEntryHotkey(int hEntry, const char* hack)