2013-01-20 16:40:40 +01:00
|
|
|
ConsoleLabel < UITextEdit
|
2011-11-04 00:34:32 +01:00
|
|
|
font: verdana-11px-antialised
|
|
|
|
height: 14
|
|
|
|
color: yellow
|
2012-03-26 00:14:00 +02:00
|
|
|
margin-left: 2
|
|
|
|
text-wrap: true
|
|
|
|
text-auto-resize: true
|
2013-01-20 16:40:40 +01:00
|
|
|
selection-color: #111416
|
|
|
|
selection-background-color: #999999
|
2013-01-25 12:44:15 +01:00
|
|
|
change-cursor-image: false
|
2013-01-27 10:44:15 +01:00
|
|
|
cursor-visible: false
|
|
|
|
editable: false
|
2015-06-03 15:51:26 +02:00
|
|
|
draggable: true
|
|
|
|
selectable: false
|
2015-06-04 15:31:15 +02:00
|
|
|
focusable: false
|
2013-01-20 16:40:40 +01:00
|
|
|
|
|
|
|
ConsolePhantomLabel < UILabel
|
|
|
|
font: verdana-11px-antialised
|
|
|
|
height: 14
|
|
|
|
color: yellow
|
|
|
|
text-wrap: true
|
|
|
|
text-auto-resize: true
|
|
|
|
selection-color: #111416
|
|
|
|
selection-background-color: #999999
|
2011-11-03 21:54:53 +01:00
|
|
|
|
2013-01-21 22:36:53 +01:00
|
|
|
ConsoleTabBar < MoveableTabBar
|
2013-02-27 20:24:32 +01:00
|
|
|
height: 28
|
|
|
|
|
2013-01-21 22:36:53 +01:00
|
|
|
ConsoleTabBarPanel < MoveableTabBarPanel
|
2012-03-25 19:10:19 +02:00
|
|
|
id: consoleTab
|
|
|
|
|
|
|
|
ScrollablePanel
|
|
|
|
id: consoleBuffer
|
|
|
|
anchors.fill: parent
|
|
|
|
margin-right: 12
|
|
|
|
vertical-scrollbar: consoleScrollBar
|
|
|
|
layout:
|
|
|
|
type: verticalBox
|
|
|
|
align-bottom: true
|
|
|
|
border-width: 1
|
2012-06-03 16:10:34 +02:00
|
|
|
border-color: #202327
|
2013-01-25 20:26:51 +01:00
|
|
|
background: #00000066
|
2012-03-25 19:10:19 +02:00
|
|
|
inverted-scroll: true
|
|
|
|
padding: 1
|
|
|
|
|
|
|
|
VerticalScrollBar
|
|
|
|
id: consoleScrollBar
|
|
|
|
anchors.top: parent.top
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
anchors.right: parent.right
|
|
|
|
step: 14
|
2012-03-28 02:33:35 +02:00
|
|
|
pixels-scroll: true
|
2012-03-25 19:10:19 +02:00
|
|
|
|
2013-01-21 22:36:53 +01:00
|
|
|
ConsoleTabBarButton < MoveableTabBarButton
|
2013-01-03 09:24:07 +01:00
|
|
|
height: 28
|
|
|
|
padding: 15
|
2012-01-10 23:13:40 +01:00
|
|
|
|
2011-11-03 21:54:53 +01:00
|
|
|
Panel
|
2012-01-08 23:32:55 +01:00
|
|
|
id: consolePanel
|
2011-11-03 21:54:53 +01:00
|
|
|
anchors.fill: parent
|
|
|
|
|
2013-07-29 00:41:44 +02:00
|
|
|
CheckBox
|
|
|
|
id: toggleChat
|
2013-08-04 00:21:08 +02:00
|
|
|
!tooltip: tr('Disable chat mode, allow to walk using ASDW')
|
2013-07-29 00:41:44 +02:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-left: 13
|
|
|
|
margin-top: 8
|
|
|
|
@onCheckChange: toggleChat()
|
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
TabButton
|
2012-01-13 00:47:31 +01:00
|
|
|
id: prevChannelButton
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/leftarrow
|
2013-07-29 00:41:44 +02:00
|
|
|
anchors.left: toggleChat.right
|
2012-01-13 00:47:31 +01:00
|
|
|
anchors.top: parent.top
|
2013-07-29 00:41:44 +02:00
|
|
|
margin-left: 3
|
2012-01-13 00:47:31 +01:00
|
|
|
margin-top: 6
|
|
|
|
|
|
|
|
ConsoleTabBar
|
|
|
|
id: consoleTabBar
|
|
|
|
anchors.left: prev.right
|
2013-01-03 09:24:07 +01:00
|
|
|
anchors.top: parent.top
|
2012-01-13 00:47:31 +01:00
|
|
|
anchors.right: next.left
|
|
|
|
margin-left: 5
|
2013-01-03 09:24:07 +01:00
|
|
|
margin-top: 3
|
2013-12-03 20:25:13 +01:00
|
|
|
margin-right: 5
|
2015-04-20 03:32:18 +02:00
|
|
|
tab-spacing: 2
|
|
|
|
movable: true
|
2012-01-13 00:47:31 +01:00
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
TabButton
|
2012-01-13 00:47:31 +01:00
|
|
|
id: nextChannelButton
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/rightarrow
|
2012-01-14 02:37:15 +01:00
|
|
|
anchors.right: next.left
|
2012-01-13 00:47:31 +01:00
|
|
|
anchors.top: parent.top
|
|
|
|
margin-right: 5
|
|
|
|
margin-top: 6
|
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
TabButton
|
2012-01-14 02:37:15 +01:00
|
|
|
id: closeChannelButton
|
2012-04-26 21:54:16 +02:00
|
|
|
!tooltip: tr('Close this channel') .. ' (Ctrl+E)'
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/closechannel
|
2012-01-14 02:37:15 +01:00
|
|
|
anchors.right: next.left
|
|
|
|
anchors.top: parent.top
|
2012-02-03 05:32:39 +01:00
|
|
|
enabled: false
|
2012-01-14 02:37:15 +01:00
|
|
|
margin-right: 5
|
|
|
|
margin-top: 6
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: removeCurrentTab()
|
2012-01-14 02:37:15 +01:00
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
TabButton
|
2012-07-08 11:50:24 +02:00
|
|
|
id: clearChannelButton
|
2012-07-10 14:15:31 +02:00
|
|
|
!tooltip: tr('Clear current message window')
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/clearchannel
|
2012-07-08 11:50:24 +02:00
|
|
|
anchors.right: next.left
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-right: 5
|
|
|
|
margin-top: 6
|
|
|
|
@onClick: |
|
|
|
|
local consoleTabBar = self:getParent():getChildById('consoleTabBar')
|
2013-01-03 09:24:07 +01:00
|
|
|
clearChannel(consoleTabBar)
|
2012-07-08 11:50:24 +02:00
|
|
|
|
|
|
|
TabButton
|
2012-01-14 02:37:15 +01:00
|
|
|
id: channelsButton
|
2012-04-26 21:54:16 +02:00
|
|
|
!tooltip: tr('Open new channel') .. ' (Ctrl+O)'
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/channels
|
2013-01-09 23:03:04 +01:00
|
|
|
anchors.right: next.left
|
2012-01-14 02:37:15 +01:00
|
|
|
anchors.top: parent.top
|
|
|
|
margin-right: 5
|
|
|
|
margin-top: 6
|
2012-02-08 22:23:15 +01:00
|
|
|
@onClick: g_game.requestChannels()
|
2012-01-14 02:37:15 +01:00
|
|
|
|
2013-01-09 23:03:04 +01:00
|
|
|
TabButton
|
|
|
|
id: ignoreButton
|
|
|
|
!tooltip: tr('Ignore players')
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/ignore
|
2013-01-09 23:03:04 +01:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.top: parent.top
|
|
|
|
margin-right: 5
|
|
|
|
margin-top: 6
|
|
|
|
@onClick: onClickIgnoreButton()
|
2014-01-18 15:09:26 +01:00
|
|
|
|
2011-11-03 21:54:53 +01:00
|
|
|
Panel
|
2012-03-25 19:10:19 +02:00
|
|
|
id: consoleContentPanel
|
2012-01-13 00:47:31 +01:00
|
|
|
anchors.top: prev.bottom
|
2011-11-03 21:54:53 +01:00
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.right: parent.right
|
2012-03-31 15:43:01 +02:00
|
|
|
anchors.bottom: consoleTextEdit.top
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-left: 6
|
2012-03-25 19:10:19 +02:00
|
|
|
margin-right: 6
|
2012-01-13 00:47:31 +01:00
|
|
|
margin-bottom: 4
|
|
|
|
margin-top: 4
|
2012-03-25 19:10:19 +02:00
|
|
|
padding: 1
|
2011-11-03 21:54:53 +01:00
|
|
|
focusable: false
|
|
|
|
|
2012-03-18 14:34:39 +01:00
|
|
|
TabButton
|
2012-01-10 23:13:40 +01:00
|
|
|
id: sayModeButton
|
2013-01-18 23:39:11 +01:00
|
|
|
icon: /images/game/console/say
|
2012-04-26 21:54:16 +02:00
|
|
|
!tooltip: tr('Adjust volume')
|
2012-02-03 10:59:04 +01:00
|
|
|
&sayMode: 2
|
2012-01-10 23:13:40 +01:00
|
|
|
size: 20 20
|
|
|
|
anchors.left: parent.left
|
|
|
|
anchors.bottom: parent.bottom
|
|
|
|
margin-left: 6
|
|
|
|
margin-bottom: 6
|
2012-07-24 07:30:08 +02:00
|
|
|
@onClick: sayModeChange()
|
2012-01-10 23:13:40 +01:00
|
|
|
|
2012-03-31 15:43:01 +02:00
|
|
|
TextEdit
|
|
|
|
id: consoleTextEdit
|
2012-01-10 23:13:40 +01:00
|
|
|
anchors.left: sayModeButton.right
|
2011-11-03 21:54:53 +01:00
|
|
|
anchors.right: parent.right
|
|
|
|
anchors.bottom: parent.bottom
|
2011-11-17 22:41:02 +01:00
|
|
|
margin-right: 6
|
|
|
|
margin-left: 6
|
|
|
|
margin-bottom: 6
|
2012-03-18 14:34:39 +01:00
|
|
|
shift-navigation: true
|
2013-01-20 16:40:40 +01:00
|
|
|
max-length: 255
|