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:
BeniS
2012-12-30 06:41:14 +13:00
parent 8961f4dfd4
commit 1782de7336
22 changed files with 205 additions and 61 deletions

View File

@@ -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