mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-30 03:09:20 +02:00
139 lines
2.7 KiB
Plaintext
139 lines
2.7 KiB
Plaintext
BotButton < Button
|
|
margin-top: 2
|
|
|
|
BotSwitch < Button
|
|
margin-top: 2
|
|
height: 20
|
|
image-color: green
|
|
$!on:
|
|
image-color: red
|
|
|
|
BotLabel < Label
|
|
margin-top: 2
|
|
height: 20
|
|
text-auto-resize: true
|
|
text-align: center
|
|
text-wrap: true
|
|
|
|
BotItem < Item
|
|
virtual: true
|
|
&selectable: true
|
|
|
|
BotTextEdit < TextEdit
|
|
@onClick: modules.game_textedit.show(self)
|
|
text-align: center
|
|
multiline: false
|
|
focusable: false
|
|
|
|
BotSeparator < HorizontalSeparator
|
|
margin-top: 5
|
|
margin-bottom: 3
|
|
|
|
BotPanel < Panel
|
|
layout:
|
|
type: verticalBox
|
|
|
|
CaveBotLabel < Label
|
|
background-color: alpha
|
|
text-offset: 2 0
|
|
focusable: true
|
|
|
|
$focus:
|
|
background-color: #00000055
|
|
|
|
MiniWindow
|
|
id: botWindow
|
|
!text: tr('Bot')
|
|
height: 200
|
|
icon: /images/topbuttons/bot
|
|
@onClose: modules.game_bot.onMiniWindowClose()
|
|
&save: true
|
|
|
|
MiniWindowContents
|
|
margin-left: 5
|
|
margin-right: 3
|
|
|
|
ComboBox
|
|
id: config
|
|
anchors.top: parent.top
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
margin-top: 5
|
|
margin-right: 90
|
|
text-offset: 3 0
|
|
|
|
Button
|
|
id: editConfig
|
|
anchors.top: prev.top
|
|
anchors.left: prev.right
|
|
anchors.right: parent.right
|
|
!text: tr('Edit')
|
|
@onClick: modules.game_bot.editConfig()
|
|
margin-left: 5
|
|
margin-right: 45
|
|
|
|
Button
|
|
id: enableButton
|
|
anchors.top: prev.top
|
|
anchors.left: prev.right
|
|
anchors.right: parent.right
|
|
@onClick: modules.game_bot.toggleBot()
|
|
margin-left: 5
|
|
|
|
Label
|
|
id: statusLabel
|
|
anchors.top: prev.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
margin-top: 5
|
|
text-auto-resize: true
|
|
!text: tr('Status: waiting')
|
|
text-align: center
|
|
text-wrap: true
|
|
|
|
HorizontalSeparator
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.top: prev.bottom
|
|
margin-top: 5
|
|
|
|
Panel
|
|
anchors.top: prev.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
id: messages
|
|
layout:
|
|
type: verticalBox
|
|
fit-children: true
|
|
|
|
HorizontalSeparator
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
anchors.top: prev.bottom
|
|
margin-top: 5
|
|
|
|
MoveableTabBar
|
|
id: botTabs
|
|
anchors.top: prev.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
tab-spacing: 2
|
|
height: 20
|
|
movable: false
|
|
|
|
$on:
|
|
visible: true
|
|
margin-top: 2
|
|
|
|
$!on:
|
|
visible: false
|
|
margin-top: -20
|
|
|
|
Panel
|
|
id: botPanel
|
|
margin-top: 2
|
|
anchors.top: prev.bottom
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|