mirror of
https://github.com/OTCv8/otclientv8.git
synced 2025-04-29 18:59:20 +02:00
110 lines
2.2 KiB
Plaintext
110 lines
2.2 KiB
Plaintext
BotButton < Button
|
|
margin-top: 2
|
|
|
|
BotSwitch < Button
|
|
margin-top: 2
|
|
image-color: green
|
|
$!on:
|
|
image-color: red
|
|
|
|
BotLabel < Label
|
|
margin-top: 2
|
|
text-auto-resize: true
|
|
text-align: center
|
|
text-wrap: true
|
|
|
|
BotItem < UIItem
|
|
virtual: true
|
|
size: 32 32
|
|
border: 1 black
|
|
&selectable: true
|
|
|
|
BotSeparator < HorizontalSeparator
|
|
margin-top: 5
|
|
margin-bottom: 3
|
|
|
|
BotPanel < Panel
|
|
margin-top: 2
|
|
layout:
|
|
type: verticalBox
|
|
fit-children: true
|
|
|
|
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
|
|
|
|
Panel
|
|
anchors.top: prev.bottom
|
|
anchors.bottom: parent.bottom
|
|
anchors.left: parent.left
|
|
anchors.right: parent.right
|
|
id: botPanel
|
|
layout:
|
|
type: verticalBox |