hide npctrade on game end

This commit is contained in:
AndreFaramir 2012-04-10 22:45:20 -03:00
parent 0fe5491635
commit 057727f5af
1 changed files with 2 additions and 1 deletions

View File

@ -55,7 +55,8 @@ function NPCTrade.init()
radioTabs:selectWidget(buyTab)
radioTabs.onSelectionChange = NPCTrade.setList
connect(g_game, { onOpenNpcTrade = NPCTrade.onOpenNpcTrade,
connect(g_game, { onGameEnd = NPCTrade.hide,
onOpenNpcTrade = NPCTrade.onOpenNpcTrade,
onPlayerGoods = NPCTrade.onPlayerGoods,
onCloseNpcTrade = NPCTrade.onCloseNpcTrade } )
end