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

It is responsible for displaying game window.
 
And how to get rid of it? The default value is 15 but can be seen side panels.
As I set to 0, then this is what he wants.
Do you have any suggestions on how to get rid of these errors??

Edit
Maybe you want a piece of code?
 
Last edited:
You cant remove it, it is needed to define visible range of game. You can increase width/height to adjust it to the screen. Or you can try with
Code:
gameMapPanel:setKeepAspectRatio(true/false)
This should do the trick to set visible dimension on full screen without those stripes on the sides.
 
How to set the scaling to the screen resolution?
I have set 1920x1080. Does someone has less it will all work?
 
You cant remove it, it is needed to define visible range of game. You can increase width/height to adjust it to the screen. Or you can try with
Code:
gameMapPanel:setKeepAspectRatio(true/false)
This should do the trick to set visible dimension on full screen without those stripes on the sides.
Hi margoh, today im trying to make the chat panel a window instead, because i wanna put more sqm in the screen of the game window.
how i can set the chat console to be a window instead of a panel that takes space of the game window, and how i can make the chat console with transparency, so the players can see the map under the chat console. thank you
 
I have done it that way:
Code:
  UIWindow
    id: gameBottomPanel
    anchors.left: gameLeftPanel.right
    anchors.bottom: parent.bottom
    width: 430
    height: 200

    ResizeBorder
      id: bottomResizeBorder
      anchors.bottom: parent.bottom
      anchors.left: parent.left
      anchors.right: parent.right
      enabled: true

    ResizeBorder
      id: rightResizeBorder
      anchors.right: parent.right
      anchors.top: parent.top
      anchors.bottom: parent.bottom
      enabled: true

It's code from client_terminal and it is working. The only thing you will have to do is to set minimum width and height, because resize borders can go to negative values making it invisible.
And I don't remember if I have changed anything inside console.lua.
 
Inside interface.otui, change whole GameBottomPanel to this code.
 
Check otclient.txt, there should be information about that error.
Also it can be because of tabs.
 
Last edited:
Check otclient.txt, there should be information about that error.
Also it can be because of tabs.
i checked all the error is in "ERROR: failed to apply style to widget 'consolePanel': OTML error in '/game_console/console.otui:79': cannot create anchor, there is no parent widget!
 
Console.otui "original"
Code:
ConsoleLabel < UITextEdit
  font: verdana-11px-antialised
  height: 14
  color: yellow
  margin-left: 2
  text-wrap: true
  text-auto-resize: true
  selection-color: #111416
  selection-background-color: #999999
  change-cursor-image: false
  cursor-visible: false
  editable: false
  draggable: true
  selectable: false
  focusable: false

ConsolePhantomLabel < UILabel
  font: verdana-11px-antialised
  height: 14
  color: yellow
  text-wrap: true
  text-auto-resize: true
  selection-color: #111416
  selection-background-color: #999999

ConsoleTabBar < MoveableTabBar
  height: 28

ConsoleTabBarPanel < MoveableTabBarPanel
  id: consoleTab

  ScrollablePanel
    id: consoleBuffer
    anchors.fill: parent
    margin-right: 12
    vertical-scrollbar: consoleScrollBar
    layout:
      type: verticalBox
      align-bottom: true
    border-width: 1
    border-color: #202327
    background: #00000066
    inverted-scroll: true
    padding: 1

  VerticalScrollBar
    id: consoleScrollBar
    anchors.top: parent.top
    anchors.bottom: parent.bottom
    anchors.right: parent.right
    step: 14
    pixels-scroll: true

ConsoleTabBarButton < MoveableTabBarButton
  height: 28
  padding: 15

Panel
  id: consolePanel
  anchors.fill: parent

  CheckBox
    id: toggleChat
    !tooltip: tr('Disable chat mode, allow to walk using ASDW')
    anchors.left: parent.left
    anchors.top: parent.top
    margin-left: 13
    margin-top: 8
    @onCheckChange: toggleChat()

  TabButton
    id: prevChannelButton
    icon: /images/game/console/leftarrow
    anchors.left: toggleChat.right
    anchors.top: parent.top
    margin-left: 3
    margin-top: 6

  ConsoleTabBar
    id: consoleTabBar
    anchors.left: prev.right
    anchors.top: parent.top
    anchors.right: next.left
    margin-left: 5
    margin-top: 3
    margin-right: 5
    tab-spacing: 2
    movable: true

  TabButton
    id: nextChannelButton
    icon: /images/game/console/rightarrow
    anchors.right: next.left
    anchors.top: parent.top
    margin-right: 5
    margin-top: 6

  TabButton
    id: closeChannelButton
    !tooltip: tr('Close this channel') .. ' (Ctrl+E)'
    icon: /images/game/console/closechannel
    anchors.right: next.left
    anchors.top: parent.top
    enabled: false
    margin-right: 5
    margin-top: 6
    @onClick: removeCurrentTab()

  TabButton
    id: clearChannelButton
    !tooltip: tr('Clear current message window')
    icon: /images/game/console/clearchannel
    anchors.right: next.left
    anchors.top: parent.top
    margin-right: 5
    margin-top: 6
    @onClick: |
      local consoleTabBar = self:getParent():getChildById('consoleTabBar')
      clearChannel(consoleTabBar)

  TabButton
    id: channelsButton
    !tooltip: tr('Open new channel') .. ' (Ctrl+O)'
    icon: /images/game/console/channels
    anchors.right: next.left
    anchors.top: parent.top
    margin-right: 5
    margin-top: 6
    @onClick: g_game.requestChannels()

  TabButton
    id: ignoreButton
    !tooltip: tr('Ignore players')
    icon: /images/game/console/ignore
    anchors.right: parent.right
    anchors.top: parent.top
    margin-right: 5
    margin-top: 6
    @onClick: onClickIgnoreButton()

  Panel
    id: consoleContentPanel
    anchors.top: prev.bottom
    anchors.left: parent.left
    anchors.right: parent.right
    anchors.bottom: consoleTextEdit.top
    margin-left: 6
    margin-right: 6
    margin-bottom: 4
    margin-top: 4
    padding: 1
    focusable: false

  TabButton
    id: sayModeButton
    icon: /images/game/console/say
    !tooltip: tr('Adjust volume')
    &sayMode: 2
    size: 20 20
    anchors.left: parent.left
    anchors.bottom: parent.bottom
    margin-left: 6
    margin-bottom: 6
    @onClick: sayModeChange()

  TextEdit
    id: consoleTextEdit
    anchors.left: sayModeButton.right
    anchors.right: parent.right
    anchors.bottom: parent.bottom
    margin-right: 6
    margin-left: 6
    margin-bottom: 6
    shift-navigation: true
    max-length: 255

then if i add the code taht you give to me, its give some errors, like anchors, or bottom errors, if i remove from console.lua the callbacks of the bottom, its give me no console chat on the game. thanks for repply
 
i only want to make the Chat Panel a Window, to make it Small, and Unmoveable, Unrezisable and transparent to see under the chat window the map of the game
 
Back
Top