Few minor fixes here and there:

* Fixed miniwindow cancelling (sorry Summ! :D)
* Fixed pathFind to check floor change tiles
* Fixed buying/selling stackable items in pv < 860
* Added force walk to the first step of auto walking for open tibia
This commit is contained in:
BeniS
2013-01-18 18:27:29 +13:00
parent 6ad7269e5a
commit 1500c1d2f2
7 changed files with 38 additions and 14 deletions

View File

@@ -29,8 +29,8 @@ function init()
g_ui.importStyle('styles/countwindow.otui')
connect(g_game, {
onGameStart = show,
onGameEnd = hide,
onGameStart = onGameStart,
onGameEnd = onGameEnd,
onLoginAdvice = onLoginAdvice
}, true)
@@ -98,8 +98,8 @@ end
function terminate()
disconnect(g_game, {
onGameStart = show,
onGameEnd = hide,
onGameStart = onGameStart,
onGameEnd = onGameEnd,
onLoginAdvice = onLoginAdvice
})
@@ -109,6 +109,19 @@ function terminate()
gameRootPanel:destroy()
end
function onGameStart()
show()
-- open tibia has delay in auto walking
if not g_game.isOfficialTibia() then
g_game.enableFeature(GameForceFirstAutoWalkStep)
end
end
function onGameEnd()
hide()
end
function show()
connect(g_app, { onClose = tryExit })
logoutButton:show()

View File

@@ -85,13 +85,13 @@ function onGameEditText(id, itemId, maxLength, text, writter, time)
end
okButton.onClick = doneFunc
cancelButton.onClick = destroyWindows
cancelButton.onClick = destroy
if not writeable then
textWindow.onEnter = doneFunc
end
textWindow.onEscape = destroyWindows
textWindow.onEscape = destroy
table.insert(windows, textWindow)
end
@@ -121,10 +121,10 @@ function onGameEditList(id, doorId, text)
end
okButton.onClick = doneFunc
cancelButton.onClick = destroyWindows
cancelButton.onClick = destroy
textWindow.onEnter = doneFunc
textWindow.onEscape = destroyWindows
textWindow.onEscape = destroy
table.insert(windows, textWindow)
end

View File

@@ -77,6 +77,7 @@ GameBlueNpcNameColor = 33
GameDiagonalAnimatedText = 34
GameLoginPending = 35
GameNewSpeedLaw = 36
GameForceFirstAutoWalkStep = 37
TextColors = {
red = '#f55e5e', --'#c83200'