mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 12:04:55 +02:00
Minor fixes and improvements
This commit is contained in:
@@ -87,6 +87,7 @@ end
|
||||
|
||||
function online()
|
||||
loadMap(not preloaded)
|
||||
updateCameraPosition()
|
||||
end
|
||||
|
||||
function offline()
|
||||
@@ -128,6 +129,9 @@ end
|
||||
|
||||
function updateCameraPosition()
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player then return end
|
||||
local pos = player:getPosition()
|
||||
if not pos then return end
|
||||
if not minimapWidget:isDragging() then
|
||||
if not fullmapView then
|
||||
minimapWidget:setCameraPosition(player:getPosition())
|
||||
@@ -153,7 +157,6 @@ function toggleFullMap()
|
||||
|
||||
local zoom = oldZoom or 0
|
||||
local pos = oldPos or minimapWidget:getCameraPosition()
|
||||
pos.z = 7
|
||||
oldZoom = minimapWidget:getZoom()
|
||||
oldPos = minimapWidget:getCameraPosition()
|
||||
minimapWidget:setZoom(zoom)
|
||||
|
@@ -10,7 +10,7 @@ MiniWindow
|
||||
text: ?
|
||||
text-align: center
|
||||
phantom: false
|
||||
!tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks')
|
||||
!tooltip: tr('Hold left mouse button to navigate\nScroll mouse middle button to zoom\nRight mouse button to create map marks\nPress Ctrl+Shift+M to view the entire game map')')
|
||||
anchors.top: minimizeButton.top
|
||||
anchors.right: minimizeButton.left
|
||||
margin-right: 3
|
||||
|
Reference in New Issue
Block a user