• 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!

How to remove right and left panel?

Ou need to adjust view size/range in interface.lua.
 
Thanks man :) its worked.
And new problem i go down in stairs (-1) and client stop (crashed)
Look screen:
 
Last edited:
Probably you have somewhere declared background-color: red.
 
I changed the color to better discern the situation.

Code:
GameBottomPanel < Panel
  image-source: /images/ui/panel_bottom
  image-border: 4

That this.
I want to remove the washer which is chat.

this its my files on interface.
Code:
GameSidePanel < UIMiniWindowContainer
  image-source: /images/ui/panel_side
  image-border: 4
  padding: 4
  width: 198
  layout:
    type: verticalBox
    spacing: 1

GameBottomPanel < Panel
  image-source: /images/ui/panel_bottom
  image-border: 4

GameMapPanel < UIGameMap
  padding: 4
  image-source: /images/ui/panel_map
  image-border: 4

  $on:
    padding: 0

UIWidget
  id: gameRootPanel
  anchors.fill: parent
  anchors.top: topMenu.bottom

  GameMapPanel
    id: gameMapPanel
    anchors.left: gameLeftPanel.right
    anchors.right: gameRightPanel.left
    anchors.top: parent.top
    anchors.bottom: gameBottomPanel.top
    focusable: false

  GameBottomPanel
    id: gameBottomPanel
    anchors.left: gameLeftPanel.right
    anchors.right: gameRightPanel.left
    anchors.top: bottomSplitter.top
    anchors.bottom: parent.bottom

  GameSidePanel
    id: gameLeftPanel
    anchors.left: parent.left
    anchors.top: parent.top
    anchors.bottom: parent.bottom
    focusable: false
    visible: true
    on: true
    $!on:
      width: 0
      visible: false

  GameSidePanel
    id: gameRightPanel
    anchors.right: parent.right
    anchors.top: parent.top
    anchors.bottom: parent.bottom
    focusable: false
    on: true

  Splitter
    id: bottomSplitter
    anchors.left: gameLeftPanel.right
    anchors.right: gameRightPanel.left
    anchors.bottom: parent.bottom
    relative-margin: bottom
    margin-bottom: 172
    @canUpdateMargin: function(self, newMargin) if modules.client_options.getOption('dontStretchShrink') then return self:getMarginBottom() end return math.max(math.min(newMargin, self:getParent():getHeight() - 300), 100) end
    @onGeometryChange: function(self) self:setMarginBottom(math.min(math.max(self:getParent():getHeight() - 300, 1000), self:getMarginBottom())) end

  UIWidget
    id: mouseGrabber
    focusable: false
    visible: false

I checked in different ways by removing the individual elements of the code but nothing is passed.
 
Last edited:
If you want to remove area under the chat you need to delete this:
Code:
GameBottomPanel   
    id: gameBottomPanel
    anchors.left: gameLeftPanel.right
    anchors.right: gameRightPanel.left
    anchors.top: bottomSplitter.top
    anchors.bottom: parent.bottom
And all callbacks from interface.lua

But if you remove it, the chat wont be loading, so you will need to edit console.lua and console.otui. Also you can change it from being a panel to be a window.
 
Removed. But he disappeared chat how to restore it? And immobilize it not be possible to manipulate him?
A short tutorial?
 
If you want it to be unmoveable you can restore thing you have removed and set size that you want it to have, and to make it unresizeable, then remove bottomSplitter from otui file and all callbacks from lua.


Example:
Code:
GameBottomPanel  
    id: gameBottomPanel
    anchors.left: gameLeftPanel.right
    anchors.bottom: parent.bottom
    size: 450 150
 
Still the same only so much that disappeared option parting.
I changed the opacity but it is still there.
Lua:
gameBottomPanel:setImageColor('#ffffff00')

Maybe you have some ideas? I quite removed?
 
But what you want to achieve? Can't rlly understand you.
 
Nevermind. I still have a question. How to change the positions of the chat?
 
TopLeft:
Code:
anchors.top: parent.top
anchors.left: gameLeftPanel.right

TopRight:
Code:
anchors.top: parent.top
anchors.right: gameRightPanel.left

BottomLeft:
Code:
anchors.bottom: parent.bottom
anchors.left: gameLeftPanel.right

BottomRight:
Code:
anchors.bottom: parent.bottom
anchors.right: gameRightPanel.left
 
If you want it to be unmoveable you can restore thing you have removed and set size that you want it to have, and to make it unresizeable, then remove bottomSplitter from otui file and all callbacks from lua.


Example:
Code:
GameBottomPanel 
    id: gameBottomPanel
    anchors.left: gameLeftPanel.right
    anchors.bottom: parent.bottom
    size: 450 150
Read carfully and look on Example, it is what yoy want to achieve.
 
How repair this errors?
Code:
ERROR: visible dimension must be odd
stack traceback:
    [C]: in function 'setVisibleDimension'
    /game_interface/gameinterface.lua:843: in function 'setupViewMode'
    /game_interface/gameinterface.lua:153: in function 'show'
    /game_interface/gameinterface.lua:132: in function </game_interface/gameinterface.lua:131>
at:
    [C++]: ?setVisibleDimension@MapView@@QAEXABV?$TSize@H@@@Z

Code:
ERROR: reach max zoom in
stack traceback:
    [C]: in function 'setLimitVisibleRange'
    /game_interface/gameinterface.lua:160: in function </game_interface/gameinterface.lua:157>
at:
    [C++]: ?setVisibleDimension@MapView@@QAEXABV?$TSize@H@@@Z

Im change this in line 843 where delete left and right panel
Code:
gameMapPanel:setVisibleDimension({ width = 0, height = 11 })
 
Back
Top