From 120c2b4231b9a266d9a10441e913220199b8a5e9 Mon Sep 17 00:00:00 2001 From: Eduardo Bart Date: Thu, 28 Feb 2013 22:01:41 -0300 Subject: [PATCH] Fixes in rule violations and private chat --- modules/game_console/console.lua | 1 + modules/game_console/violationwindow.otui | 3 ++- modules/game_viplist/viplist.lua | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/game_console/console.lua b/modules/game_console/console.lua index 2dc31100..456e6f3a 100644 --- a/modules/game_console/console.lua +++ b/modules/game_console/console.lua @@ -887,6 +887,7 @@ end function onRuleViolationLock() if not violationReportTab then return end + violationReportTab.locked = false addTabText(tr('Your request has been closed') .. '.', SpeakTypesSettings.privateRed, violationReportTab) violationReportTab.locked = true end diff --git a/modules/game_console/violationwindow.otui b/modules/game_console/violationwindow.otui index ad2df92a..19c55ca2 100644 --- a/modules/game_console/violationwindow.otui +++ b/modules/game_console/violationwindow.otui @@ -10,16 +10,17 @@ MainWindow anchors.left: parent.left anchors.right: parent.right anchors.top: parent.top - max-length: 255 TextEdit id: text + text-wrap: true multiline: true anchors.top: prev.bottom anchors.bottom: next.top anchors.left: parent.left anchors.right: parent.right margin: 8 0 + max-length: 255 Button id: buttonOk diff --git a/modules/game_viplist/viplist.lua b/modules/game_viplist/viplist.lua index c82baeb8..8787d727 100644 --- a/modules/game_viplist/viplist.lua +++ b/modules/game_viplist/viplist.lua @@ -187,8 +187,8 @@ function onVipListLabelMousePress(widget, mousePos, mouseButton) if modules.game_console.getOwnPrivateTab() then menu:addSeparator() - menu:addOption(tr('Invite to private chat'), function() g_game.inviteToOwnChannel(creatureName) end) - menu:addOption(tr('Exclude from private chat'), function() g_game.excludeFromOwnChannel(creatureName) end) + menu:addOption(tr('Invite to private chat'), function() g_game.inviteToOwnChannel(widget:getText()) end) + menu:addOption(tr('Exclude from private chat'), function() g_game.excludeFromOwnChannel(widget:getText()) end) end if not isHiddingOffline() then