Fix to minimap navigating
Navigating now uses left mouse button (right mouse button for map mark menu)
This commit is contained in:
parent
ec8d50497b
commit
a86449dea9
|
@ -36,9 +36,8 @@ function init()
|
|||
minimapWindow:setContentMaximumHeight(256)
|
||||
|
||||
minimapWidget = minimapWindow:recursiveGetChildById('minimap')
|
||||
g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseRightButton)
|
||||
--g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseLeftButton)
|
||||
minimapWidget.onMousePress = createThingMenu
|
||||
--g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseRightButton)
|
||||
g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseLeftButton)
|
||||
|
||||
minimapWidget:setAutoViewMode(false)
|
||||
minimapWidget:setViewMode(1) -- mid view
|
||||
|
@ -360,6 +359,9 @@ function onButtonClick(id)
|
|||
end
|
||||
|
||||
function onMinimapMouseRelease(self, mousePosition, mouseButton)
|
||||
-- Mapmark menu
|
||||
createThingMenu(self, mousePosition, mouseButton)
|
||||
|
||||
if navigating then
|
||||
navigating = false
|
||||
return
|
||||
|
|
|
@ -40,7 +40,7 @@ MiniWindow
|
|||
text: ?
|
||||
text-align: center
|
||||
phantom: false
|
||||
!tooltip: tr('Hold right mouse button to navigate\nScroll mouse middle button to zoom')
|
||||
!tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks')
|
||||
anchors.top: minimizeButton.top
|
||||
anchors.right: minimizeButton.left
|
||||
margin-right: 3
|
||||
|
|
Loading…
Reference in New Issue