Added clear button to game console (in commit I didn't add icon).
This commit is contained in:
parent
beb843a971
commit
f533e739c9
|
@ -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…
Reference in New Issue