Minor fixes to some previous commits.

* Fixed a bug with storing the protocol version.
* Fixed an issue with text windows cancelling.
* Fixed a typo in the source.
This commit is contained in:
BeniS
2013-01-18 03:23:01 +13:00
parent cf77c2baf3
commit b68df8336a
9 changed files with 18 additions and 16 deletions

View File

@@ -91,8 +91,8 @@ function terminate()
g_settings.set('window-pos', g_window.getUnmaximizedPos())
g_settings.set('window-maximized', g_window.isMaximized())
local clientVersion = g_game.getProtocolVersion()
if clientVersion ~= 0 then
g_settings.set('client-version', clientVersion)
local protocolVersion = g_game.getProtocolVersion()
if protocolVersion ~= 0 then
g_settings.set('protocol-version', protocolVersion)
end
end

View File

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