From c2bbff51133a8cde4a7071b11878018778f4b539 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Wed, 5 Sep 2012 16:53:48 -0300 Subject: [PATCH] Fix issue #87 --- modules/game_interface/gameinterface.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/modules/game_interface/gameinterface.lua b/modules/game_interface/gameinterface.lua index 083d5e12..cf5247e0 100644 --- a/modules/game_interface/gameinterface.lua +++ b/modules/game_interface/gameinterface.lua @@ -15,7 +15,8 @@ function init() g_ui.importStyle('styles/countwindow.otui') connect(g_game, { onGameStart = show, - onGameEnd = hide }, true) + onGameEnd = hide, + onLoginAdvice = onLoginAdvice }, true) gameRootPanel = g_ui.displayUI('gameinterface.otui') gameRootPanel:hide() @@ -73,7 +74,8 @@ end function terminate() disconnect(g_game, { onGameStart = show, - onGameEnd = hide }) + onGameEnd = hide, + onLoginAdvice = onLoginAdvice }) disconnect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange }) logoutButton:destroy() @@ -108,6 +110,10 @@ function hide() Background.show() end +function onLoginAdvice(message) + displayInfoBox("For Your Information", message) +end + function forceExit() scheduleEvent(exit, 10) return true @@ -538,4 +544,3 @@ function onLeftPanelVisibilityChange(leftPanel, visible) end end end -