1ConsoleLabel < UITextEdit
2 font: verdana-11px-antialised
3 height: 14
4 color: yellow
5 margin-left: 1
6 text-wrap: true
7 text-auto-resize: true
8 selection-color: #111416
9 selection-background-color: #808080
10 change-cursor-image: false
11 cursor-visible: false
12 editable: false
13 draggable: true
14 selectable: false
15 focusable: false
16
17ConsolePhantomLabel < UILabel
18 font: verdana-11px-antialised
19 height: 14
20 color: yellow
21 text-wrap: true
22 text-auto-resize: true
23 selection-color: #111416
24 selection-background-color: #999999
25
26ConsoleTabBar < MoveableTabBar
27 height: 16
28
29ConsoleTabBarPanel < MoveableTabBarPanel
30 id: consoleTab
31
32 ScrollablePanel
33 id: consoleBuffer
34 anchors.fill: parent
35 margin-right: 12
36 vertical-scrollbar: consoleScrollBar
37 layout:
38 type: verticalBox
39 align-bottom: true
40 border-width: 1
41 border-color: #202327
42 background: #00000066
43 inverted-scroll: true
44 padding: 1
45
46 VerticalScrollBar
47 id: consoleScrollBar
48 anchors.top: parent.top
49 anchors.bottom: parent.bottom
50 anchors.right: parent.right
51 step: 14
52 pixels-scroll: true
53
54ConsoleTabBarButton < MoveableTabBarButton
55 height: 16
56 padding: 15
57
58ConsolePanel < Panel
59 image-source: /images/ui/panel_bottom
60 image-border: 7
61 image-border-top: 29
62
63 $first:
64 anchors.fill: parent
65
66 $!first:
67 anchors.top: prev.bottom
68 anchors.bottom: parent.bottom
69 anchors.left: parent.left
70 anchors.right: parent.right
71
72 CheckBox
73 id: toggleChat
74 !tooltip: tr('Disable chat mode, allow to walk using ASDW')
75 anchors.left: parent.left
76 anchors.top: parent.top
77 margin-left: 6
78 margin-top: 3
79 @onCheckChange: toggleChat()
80
81 TabButton
82 id: prevChannelButton
83 icon: /images/game/console/leftarrow
84 anchors.left: toggleChat.right
85 anchors.top: parent.top
86 margin-top: 1
87 size: 16 16
88
89 ConsoleTabBar
90 id: consoleTabBar
91 anchors.left: prev.right
92 anchors.top: parent.top
93 anchors.right: next.left
94 margin-top: 0
95 tab-spacing: 2
96 movable: true
97
98 TabButton
99 id: nextChannelButton
100 icon: /images/game/console/rightarrow
101 anchors.right: next.left
102 anchors.top: parent.top
103 margin-top: 1
104 size: 16 16
105 margin-right: 5
106
107 TabButton
108 id: closeChannelButton
109 !tooltip: tr('Close this channel') .. ' (Ctrl+E)'
110 icon: /images/game/console/closechannel
111 anchors.right: next.left
112 anchors.top: parent.top
113 enabled: false
114 margin-right: 5
115 margin-top: 1
116 size: 16 16
117 icon-clip: 0 0 16 16
118
119 $pressed:
120 icon-clip: 0 16 16 16
121
122 @onClick: removeCurrentTab()
123
124 TabButton
125 id: clearChannelButton
126 !tooltip: tr('Clear current message window')
127 icon: /images/game/console/clearchannel
128 anchors.right: next.left
129 anchors.top: parent.top
130 margin-right: 5
131 margin-top: 1
132 size: 16 16
133 icon-clip: 0 0 16 16
134
135 $pressed:
136 icon-clip: 0 16 16 16
137
138 @onClick: |
139 local consoleTabBar = self:getParent():getChildById('consoleTabBar')
140 clearChannel(consoleTabBar)
141
142 TabButton
143 id: channelsButton
144 !tooltip: tr('Open new channel') .. ' (Ctrl+O)'
145 icon: /images/game/console/channels
146 anchors.right: next.left
147 anchors.top: parent.top
148 margin-right: 5
149 margin-top: 1
150 size: 16 16
151 icon-clip: 0 0 16 16
152
153 $pressed:
154 icon-clip: 0 16 16 16
155
156 @onClick: g_game.requestChannels()
157
158 TabButton
159 id: ignoreButton
160 !tooltip: tr('Ignore players')
161 icon: /images/game/console/ignore
162 anchors.right: parent.right
163 anchors.top: parent.top
164 margin-right: 5
165 margin-top: 1
166 size: 16 16
167 icon-clip: 0 0 16 16
168
169 $pressed:
170 icon-clip: 0 16 16 16
171
172 @onClick: onClickIgnoreButton()
173
174 Panel
175 id: consoleContentPanel
176 anchors.top: consoleTabBar.bottom
177 anchors.left: parent.left
178 anchors.right: parent.right
179 anchors.bottom: consoleTextEdit.top
180 margin-left: 6
181 margin-right: 6
182 margin-bottom: 2
183 margin-top: 6
184 padding: 1
185 focusable: false
186 phantom: true
187
188 TabButton
189 id: sayModeButton
190 icon: /images/game/console/say
191 !tooltip: tr('Adjust volume')
192 &sayMode: 2
193 size: 18 18
194 anchors.left: parent.left
195 anchors.bottom: parent.bottom
196 margin-left: 8
197 margin-bottom: 4
198 @onClick: sayModeChange()
199
200 HorizontalSeparator
201 id: separator
202 anchors.left: parent.left
203 anchors.right: parent.right
204 anchors.bottom: prev.top
205 margin-bottom: 3
206 margin-left: 7
207 margin-right: 7
208
209 TextEdit
210 id: consoleTextEdit
211 anchors.left: sayModeButton.right
212 anchors.right: parent.right
213 anchors.bottom: parent.bottom
214 margin-right: 7
215 margin-left: 2
216 margin-bottom: 2
217 shift-navigation: true
218 max-length: 255
219 text-auto-submit: true
220