This commit is contained in:
Eduardo Bart 2012-10-23 17:15:59 -02:00
parent 5f72488eba
commit 7114946278
2 changed files with 15 additions and 6 deletions

View File

@ -544,6 +544,11 @@ function applyMessagePrefixies(name, level, message)
end
function onTalk(name, level, mode, message, channelId, creaturePos)
if mode == MessageModes.GamemasterBroadcast then
modules.game_textmessage.displayBroadcastMessage(name .. ': ' .. message)
return
end
if ignoreNpcMessages and mode == MessageModes.NpcFrom then return end
if (mode == MessageModes.Say or mode == MessageModes.Whisper or mode == MessageModes.Yell or

View File

@ -107,6 +107,10 @@ function displayGameMessage(text)
displayMessage(MessageModes.Game, text)
end
function displayBroadcastMessage(text)
displayMessage(MessageModes.Warning, text)
end
function clearMessages()
for _i,child in pairs(messagesPanel:recursiveGetChildren()) do
if child:getId():match('Label') then