mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
More work towards autowalking (needs more work).
* Added tile minimap color override. * Changed zoom in and out of minimap from inverted control.
This commit is contained in:
@@ -539,7 +539,7 @@ function processMouseAction(menuPosition, mouseButton, autoWalkPos, lookThing, u
|
||||
end
|
||||
|
||||
local player = g_game.getLocalPlayer()
|
||||
player:stopAutoWalkUpdate()
|
||||
player:stopAutoWalk()
|
||||
|
||||
if autoWalkPos and keyboardModifiers == KeyboardNoModifier and mouseButton == MouseLeftButton then
|
||||
if not player:autoWalk(autoWalkPos) then
|
||||
|
@@ -398,9 +398,9 @@ function onMinimapMouseWheel(self, mousePos, direction)
|
||||
local keyboardModifiers = g_keyboard.getModifiers()
|
||||
|
||||
if direction == MouseWheelUp and keyboardModifiers == KeyboardNoModifier then
|
||||
miniMapZoomIn()
|
||||
elseif direction == MouseWheelDown and keyboardModifiers == KeyboardNoModifier then
|
||||
miniMapZoomOut()
|
||||
elseif direction == MouseWheelDown and keyboardModifiers == KeyboardNoModifier then
|
||||
miniMapZoomIn()
|
||||
elseif direction == MouseWheelDown and keyboardModifiers == KeyboardCtrlModifier then
|
||||
minimapFloorUp(1)
|
||||
elseif direction == MouseWheelUp and keyboardModifiers == KeyboardCtrlModifier then
|
||||
|
Reference in New Issue
Block a user