enable skills and vip window on right panel

This commit is contained in:
Eduardo Bart
2011-11-03 10:17:10 -02:00
parent 101f608d40
commit 14ce1c8183
19 changed files with 115 additions and 30 deletions

View File

@@ -1,9 +1,19 @@
vipWindow = nil
VipList = {}
function createVipWindow()
vipWindow = loadUI("/game/ui/vipwindow.otui", Game.gameUi)
-- private variables
local vipWindow = nil
-- public functions
function VipList.create()
vipWindow = loadUI("/viplist/viplist.otui", Game.gameRightPanel)
end
function VipList.destroy()
vipWindow:destroy()
vipWindow = nil
end
-- hooked events
function Game.onAddVip(id, name, online)
local vipList = vipWindow:getChildById('vipList')