mirror of
https://github.com/edubart/otclient.git
synced 2025-10-15 03:54:54 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user