• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

OTClient Moving containers inside window

rafaeru

Active Member
Joined
Mar 6, 2013
Messages
134
Solutions
10
Reaction score
29
Location
Poland
GitHub
rafaeru97
I have problem with moving containers inside otclient window. I would they stay where they were.

nCqcHdS.gif


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
 
Solution
Code:
  BotOptionCheckBox
    id: AutoEat
    !text: tr('Eat Food')
    !tooltip: tr('Eat food automatically from open bags or inventory.')
    anchors.left: parent.left
    anchors.top: parent.top
    width: 180
    margin-top: 10
Code:
  BotOptionCheckBox
    id: AutoEat
    !text: tr('Eat Food')
    !tooltip: tr('Eat food automatically from open bags or inventory.')
    anchors.left: parent.left
    anchors.top: parent.top
    width: 180
    margin-top: 10
 
Solution
Back
Top