rafaeru
Active Member
I have problem with moving containers inside otclient window. I would they stay where they were.
I'm already learning OTClient and OTUI.
anchors are responsible for that?
I'm already learning OTClient and OTUI.
anchors are responsible for that?
Code:
Panel
id: afkPanel
anchors.left: parent.left
anchors.right: parent.right
anchors.top: parent.top
padding-right: 8
height: 300
BotOptionCheckBox
id: AutoEat
!text: tr('Eat Food')
!tooltip: tr('Eat food automatically from open bags or inventory.')
anchors.left: CreatureAlert.left
anchors.top: prev.bottom
width: 180
margin-top: 10
BotOptionComboBox
id: AutoEatSelect
anchors.right: parent.right
anchors.top: AutoEat.top
width: 140
mouse-scroll: false
menu-scroll: true
menu-height: 145
menu-scroll-step: 25
options:
- Any
HorizontalSeparator
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 8
BotOptionCheckBox
id: MagicTrain
!text: tr('Reiatsu Training')
!tooltip: tr('Trains reiatsu level (use a spell whenever possible).')
anchors.left: parent.left
anchors.top: prev.top
width: 120
margin-top: 10
BotOptionLineEdit
id: MagicTrainSpellText
anchors.left: MagicTrain.left
anchors.right: MagicTrain.right
anchors.top: MagicTrain.bottom
margin-top: 4
Label
id: MagicTrainSpell
width: 130
!text: tr('Reiatsu Required:')
anchors.right: parent.right
anchors.top: MagicTrain.top
BotOptionHorizontalScrollBar
id: MagicTrainManaRequired
width: 120
anchors.left: MagicTrainSpell.left
anchors.top: MagicTrainSpell.bottom
margin-top: 6
mouse-scroll: false
show-value: true
symbol: %
minimum: 1
maximum: 100
HorizontalSeparator
anchors.left: parent.left
anchors.right: parent.right
anchors.top: prev.bottom
margin-top: 14
BotOptionCheckBox
id: AntiKick
!text: tr('Anti-kick')
!tooltip: tr('Character "dances" to avoid being kicked for being idle for too long.')
anchors.left: prev.left
anchors.top: prev.bottom
width: 180
margin-top: 10