mirror of
https://github.com/edubart/otclient.git
synced 2025-10-13 19:14:56 +02:00
add onGameStart/onGameEnd/onLogin/onLogout events
This commit is contained in:
@@ -57,7 +57,7 @@ function VipList.onAddVip(id, name, online)
|
||||
|
||||
label:setPhantom(false)
|
||||
connect(label, { onDoubleClick = function () Game.openPrivateChannel(label:getText()) return true end } )
|
||||
|
||||
|
||||
local nameLower = name:lower()
|
||||
local childrenCount = vipList:getChildCount()
|
||||
|
||||
@@ -123,7 +123,7 @@ function VipList.onVipListLabelMousePress(widget, mousePos, mouseButton)
|
||||
end
|
||||
|
||||
|
||||
connect(Game, { onLogin = VipList.create,
|
||||
onLogout = VipList.destroy,
|
||||
connect(Game, { onGameStart = VipList.create,
|
||||
onGameEnd = VipList.destroy,
|
||||
onAddVip = VipList.onAddVip,
|
||||
onVipStateChange = VipList.onVipStateChange })
|
||||
|
Reference in New Issue
Block a user