Added clear button to game console (in commit I didn't add icon).

This commit is contained in:
Kamil 2012-07-08 11:50:24 +02:00
parent beb843a971
commit f533e739c9
2 changed files with 12 additions and 1 deletions

View File

@ -1,7 +1,7 @@
Module Module
name: game_console name: game_console
description: Manage chat window description: Manage chat window
author: edubart, andrefaramir, baxnie author: edubart, andrefaramir, baxnie, sn4ake
website: www.otclient.info website: www.otclient.info
dependencies: dependencies:

View File

@ -73,6 +73,17 @@ Panel
margin-top: 6 margin-top: 6
@onClick: Console.removeCurrentTab() @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 TabButton
id: channelsButton id: channelsButton
!tooltip: tr('Open new channel') .. ' (Ctrl+O)' !tooltip: tr('Open new channel') .. ' (Ctrl+O)'