Fix issue #112
This commit is contained in:
parent
5f72488eba
commit
7114946278
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue