mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 11:34:54 +02:00
Game control precision edits and many other fixes:
* Updated the walking(mouse/keys) control to be a lot more responsive/smooth! * Updated creature diagonal steps to animate faster (due to demand). * Added a warning popup for boost walker option in cipsoft servers. * Added KeyUp event controls in the g_keyboard class. * Fixed an issue with the minimap not reconfiguring. * Fixed a bug with creature lights drawing properly. * Fixed refreshContainer method. * Some layout edits. * Some minor typo fixes. TODO: * Add walk event stack. * Test new walking edits extensively. * Finish pending state feature.
This commit is contained in:
@@ -23,8 +23,7 @@ function init()
|
||||
onGameEnd = offline,
|
||||
onAutomapFlag = addMapFlag
|
||||
})
|
||||
connect(LocalPlayer, { onPositionChange = center,
|
||||
onPositionChange = updateMapFlags })
|
||||
connect(LocalPlayer, { onPositionChange = center })
|
||||
|
||||
g_keyboard.bindKeyDown('Ctrl+M', toggle)
|
||||
|
||||
@@ -63,8 +62,7 @@ function terminate()
|
||||
onGameEnd = offline,
|
||||
onAutomapFlag = addMapFlag
|
||||
})
|
||||
disconnect(LocalPlayer, { onPositionChange = center,
|
||||
onPositionChange = updateMapFlags })
|
||||
disconnect(LocalPlayer, { onPositionChange = center })
|
||||
|
||||
destroyFlagWindow()
|
||||
saveMapFlags()
|
||||
@@ -303,10 +301,7 @@ function reset()
|
||||
end
|
||||
|
||||
function center()
|
||||
local player = g_game.getLocalPlayer()
|
||||
if not player then return end
|
||||
minimapWidget:followCreature(player)
|
||||
|
||||
reset()
|
||||
updateMapFlags()
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user