mirror of
https://github.com/edubart/otclient.git
synced 2025-10-16 20:43:26 +02:00
finally reloadable vip, skills, inventory, chat and minimap
This commit is contained in:
@@ -15,6 +15,8 @@ function VipList.init()
|
||||
vipWindow = displayUI('viplist.otui', GameInterface.getLeftPanel())
|
||||
vipButton = TopMenu.addGameToggleButton('vipListButton', tr('VIP list'), 'viplist.png', VipList.toggle)
|
||||
vipButton:setOn(true)
|
||||
|
||||
VipList.refresh()
|
||||
end
|
||||
|
||||
function VipList.terminate()
|
||||
@@ -30,6 +32,13 @@ function VipList.terminate()
|
||||
VipList = nil
|
||||
end
|
||||
|
||||
function VipList.refresh()
|
||||
VipList.clear()
|
||||
for id,vip in pairs(g_game.getVips()) do
|
||||
VipList.onAddVip(id, unpack(vip))
|
||||
end
|
||||
end
|
||||
|
||||
function VipList.clear()
|
||||
local vipList = vipWindow:getChildById('contentsPanel')
|
||||
vipList:destroyChildren()
|
||||
|
Reference in New Issue
Block a user