tibia-client/modules/game_console/console.otui

175 lines
3.9 KiB
Plaintext
Raw Normal View History

ConsoleLabel < UITextEdit
2011-11-04 00:34:32 +01:00
font: verdana-11px-antialised
height: 14
color: yellow
margin-left: 2
text-wrap: true
text-auto-resize: true
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
draggable: true
selectable: false
ConsolePhantomLabel < UILabel
font: verdana-11px-antialised
height: 14
color: yellow
text-wrap: true
text-auto-resize: true
selection-color: #111416
selection-background-color: #999999
ConsoleTabBar < MoveableTabBar
2013-02-27 20:24:32 +01:00
height: 28
ConsoleTabBarPanel < MoveableTabBarPanel
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
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
ConsoleTabBarButton < MoveableTabBarButton
height: 28
padding: 15
Panel
id: consolePanel
anchors.fill: parent
CheckBox
id: toggleChat
!tooltip: tr('Disable chat mode, allow to walk using ASDW')
anchors.left: parent.left
anchors.top: parent.top
margin-left: 13
margin-top: 8
@onCheckChange: toggleChat()
TabButton
id: prevChannelButton
icon: /images/game/console/leftarrow
anchors.left: toggleChat.right
anchors.top: parent.top
margin-left: 3
margin-top: 6
ConsoleTabBar
id: consoleTabBar
anchors.left: prev.right
anchors.top: parent.top
anchors.right: next.left
margin-left: 5
margin-top: 3
margin-right: 5
2015-04-20 03:32:18 +02:00
tab-spacing: 2
movable: true
TabButton
id: nextChannelButton
icon: /images/game/console/rightarrow
2012-01-14 02:37:15 +01:00
anchors.right: next.left
anchors.top: parent.top
margin-right: 5
margin-top: 6
TabButton
2012-01-14 02:37:15 +01:00
id: closeChannelButton
!tooltip: tr('Close this channel') .. ' (Ctrl+E)'
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
@onClick: removeCurrentTab()
2012-01-14 02:37:15 +01:00
TabButton
id: clearChannelButton
!tooltip: tr('Clear current message window')
icon: /images/game/console/clearchannel
anchors.right: next.left
anchors.top: parent.top
margin-right: 5
margin-top: 6
@onClick: |
local consoleTabBar = self:getParent():getChildById('consoleTabBar')
clearChannel(consoleTabBar)
TabButton
2012-01-14 02:37:15 +01:00
id: channelsButton
!tooltip: tr('Open new channel') .. ' (Ctrl+O)'
icon: /images/game/console/channels
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
TabButton
id: ignoreButton
!tooltip: tr('Ignore players')
icon: /images/game/console/ignore
anchors.right: parent.right
anchors.top: parent.top
margin-right: 5
margin-top: 6
@onClick: onClickIgnoreButton()
Panel
id: consoleContentPanel
anchors.top: prev.bottom
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: consoleTextEdit.top
2011-11-17 22:41:02 +01:00
margin-left: 6
margin-right: 6
margin-bottom: 4
margin-top: 4
padding: 1
focusable: false
TabButton
id: sayModeButton
icon: /images/game/console/say
!tooltip: tr('Adjust volume')
&sayMode: 2
size: 20 20
anchors.left: parent.left
anchors.bottom: parent.bottom
margin-left: 6
margin-bottom: 6
@onClick: sayModeChange()
TextEdit
id: consoleTextEdit
anchors.left: sayModeButton.right
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
shift-navigation: true
max-length: 255