bot traceback, moveup function, chat setting default ongamestart

This commit is contained in:
Henrique Santiago
2012-04-25 21:15:48 -03:00
parent c89665848d
commit 60495174a4
5 changed files with 21 additions and 3 deletions

View File

@@ -176,6 +176,12 @@ local function onChannelList(channelList)
end
end
local function onGameStart()
local tab = Console.getTab('Default')
if tab then
addEvent(function() consoleTabBar:selectTab(tab) end, false)
end
end
-- public functions
function Console.init()
@@ -185,6 +191,7 @@ function Console.init()
onOpenPrivateChannel = onOpenPrivateChannel,
onOpenOwnPrivateChannel = onOpenOwnPrivateChannel,
onCloseChannel = onCloseChannel,
onGameStart = onGameStart,
onGameEnd = Console.clear })
consolePanel = displayUI('console.otui', GameInterface.getBottomPanel())
@@ -221,6 +228,7 @@ function Console.terminate()
onOpenPrivateChannel = onOpenPrivateChannel,
onOpenOwnPrivateChannel = onOpenPrivateChannel,
onCloseChannel = onCloseChannel,
onGameStart = onGameStart,
onGameEnd = Console.clear })
for channelid, channelname in pairs(channels) do