Added new features to the options.

* Added 'enable smart walk' and 'show connection ping' options.
* Minor tidy ups.
This commit is contained in:
BeniS
2012-08-26 16:27:30 +12:00
parent 4bac36d3bc
commit b58f4aa465
7 changed files with 43 additions and 23 deletions

View File

@@ -36,7 +36,7 @@ PingLabel < Label
font: verdana-11px-rounded
@onSetup: |
self.updateEvent = cycleEvent(function()
if g_game.isOnline() then
if g_game.isOnline() and Options.getOption('showPing') then
local ping = -1
if g_game.getFeature(GameClientPing) then
ping = g_game.getPing()