mirror of
https://github.com/edubart/otclient.git
synced 2025-10-20 06:23:26 +02:00
Minimap, hotkeys and lot of other changes
* Begin working on a new layout system for UIMinimap and later UIMap, this new layout system allows to add widgets to the minimap * Add option to disable motd * Rework hotkey binding * Lots of fixes in hotkeys manager * Add fullmap view using Ctrl+Shift+M * Prevent some crashs in ThingType draw * Add function to load minimap from PNG files * Fixes in minimap saving * Fixes in Tile::isClickable * Add UIMapAnchorLayout, new layout for maps * Fix freezes in win32 when pressing alt key
This commit is contained in:
@@ -618,9 +618,12 @@ LRESULT WIN32Window::windowProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
|
||||
case WM_SYSKEYUP:
|
||||
case WM_SYSKEYDOWN: {
|
||||
// F10 is the shortcut key to enter a windows menu, this is a workaround to get F10 working
|
||||
if(wParam != VK_F10)
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
else {
|
||||
if(wParam != VK_F10) {
|
||||
if(wParam != VK_MENU && wParam != VK_LMENU && wParam != VK_RMENU)
|
||||
return DefWindowProc(hWnd, uMsg, wParam, lParam);
|
||||
else
|
||||
return 0;
|
||||
} else {
|
||||
if(uMsg == WM_SYSKEYUP)
|
||||
processKeyUp(retranslateVirtualKey(wParam, lParam));
|
||||
else
|
||||
|
Reference in New Issue
Block a user