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)
|
minimapWindow:setContentMaximumHeight(256)
|
||||||
|
|
||||||
minimapWidget = minimapWindow:recursiveGetChildById('minimap')
|
minimapWidget = minimapWindow:recursiveGetChildById('minimap')
|
||||||
g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseRightButton)
|
--g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseRightButton)
|
||||||
--g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseLeftButton)
|
g_mouse.bindAutoPress(minimapWidget, compassClick, nil, MouseLeftButton)
|
||||||
minimapWidget.onMousePress = createThingMenu
|
|
||||||
|
|
||||||
minimapWidget:setAutoViewMode(false)
|
minimapWidget:setAutoViewMode(false)
|
||||||
minimapWidget:setViewMode(1) -- mid view
|
minimapWidget:setViewMode(1) -- mid view
|
||||||
|
@ -360,6 +359,9 @@ function onButtonClick(id)
|
||||||
end
|
end
|
||||||
|
|
||||||
function onMinimapMouseRelease(self, mousePosition, mouseButton)
|
function onMinimapMouseRelease(self, mousePosition, mouseButton)
|
||||||
|
-- Mapmark menu
|
||||||
|
createThingMenu(self, mousePosition, mouseButton)
|
||||||
|
|
||||||
if navigating then
|
if navigating then
|
||||||
navigating = false
|
navigating = false
|
||||||
return
|
return
|
||||||
|
|
|
@ -40,7 +40,7 @@ MiniWindow
|
||||||
text: ?
|
text: ?
|
||||||
text-align: center
|
text-align: center
|
||||||
phantom: false
|
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.top: minimizeButton.top
|
||||||
anchors.right: minimizeButton.left
|
anchors.right: minimizeButton.left
|
||||||
margin-right: 3
|
margin-right: 3
|
||||||
|
|
Loading…
Reference in New Issue