diff --git a/modules/game_console/console.otmod b/modules/game_console/console.otmod index 42605be9..0247fad1 100644 --- a/modules/game_console/console.otmod +++ b/modules/game_console/console.otmod @@ -1,7 +1,7 @@ Module name: game_console description: Manage chat window - author: edubart, andrefaramir, baxnie + author: edubart, andrefaramir, baxnie, sn4ake website: www.otclient.info dependencies: diff --git a/modules/game_console/console.otui b/modules/game_console/console.otui index fdc15796..4a47a721 100644 --- a/modules/game_console/console.otui +++ b/modules/game_console/console.otui @@ -73,6 +73,17 @@ Panel margin-top: 6 @onClick: Console.removeCurrentTab() + TabButton + id: clearChannelButton + icon: /core_styles/icons/clearchannel.png + anchors.right: next.left + anchors.top: parent.top + margin-right: 5 + margin-top: 6 + @onClick: | + local consoleTabBar = self:getParent():getChildById('consoleTabBar') + consoleTabBar:getCurrentTab().tabPanel:getChildById('consoleBuffer'):destroyChildren() + TabButton id: channelsButton !tooltip: tr('Open new channel') .. ' (Ctrl+O)'