Merge pull request #5 from sn4ake/master

Added clear button to game console (in commit I didn't add icon).
master
Eduardo Bart 12 years ago
commit 86986542ba

@ -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:

@ -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)'

Loading…
Cancel
Save