mirror of
https://github.com/edubart/otclient.git
synced 2025-10-14 03:24:55 +02:00
add onGameStart/onGameEnd/onLogin/onLogout events
This commit is contained in:
@@ -42,8 +42,8 @@ function Inventory.onSoulChange(soul)
|
||||
widget:setText("Soul:\n" .. soul)
|
||||
end
|
||||
|
||||
connect(Game, { onLogin = Inventory.create,
|
||||
onLogout = Inventory.destroy,
|
||||
connect(Game, { onGameStart = Inventory.create,
|
||||
onGameEnd = Inventory.destroy,
|
||||
onInventoryChange = Inventory.onInventoryChange,
|
||||
onFreeCapacityChange = Inventory.onFreeCapacityChange,
|
||||
onSoulChange = Inventory.onSoulChange })
|
||||
|
Reference in New Issue
Block a user