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

Remove small laterals otclient

eyez

Member
Joined
Oct 11, 2016
Messages
129
Reaction score
19
How to remove only this smalls laterals
WpMYJd6.png


To make my game screen more higher, like on medivia is:
XmrXQaG.png


(i'm don't want to remove all laterals, and make everything transparent like have a lot tutorials here on forum, i just want to remove smalls ones)
 
In two easy steps on OTC 0.6.6:
1. Use 'CTRL' + '.'
2. Options -> Game -> Select option: 'Show left panel'.

No bro! I do not want to make a zoom!! I want to remove red marks like on medivia.
And about this zoom... There is a way to be able to see more then black border limits?
 
What it's look like in my OTC:

1) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel'.
OTC_Mod_1_13.03.2017.png


2) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel' -> 3. 'CTRL' + '-' ('-' in '-'/'_' key)
OTC_Mod_2_13.03.2017.png


3) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel' -> 3. [5x] 'CTRL' + '-' ('-' in '-'/'_' key)
OTC_Mod_3_13.03.2017.png
 
What it's look like in my OTC:

1) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel'.
OTC_Mod_1_13.03.2017.png


2) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel' -> 3. 'CTRL' + '-' ('-' in '-'/'_' key)
OTC_Mod_2_13.03.2017.png


3) 1. Use 'CTRL' + '.' -> 2. Options - Game - Select option: 'Show left panel' -> 3. [5x] 'CTRL' + '-' ('-' in '-'/'_' key)
OTC_Mod_3_13.03.2017.png

My fall i did not read right...
This ctrl+.
Work thanks!!!

You know where change on code to it come default ('ctrl'+'.' and 1 'ctrl'+'-')?
Because i want make a new OTClient package and share to the community...
So starters did not need to use this...
 
In file: modules\game_interface\gameinterface.lua
In lines ~830 <-> ~840

Change this code:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })

to:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(10) --normal is 11
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 }) --maybe you need to change this
    gameLeftPanel:setOn(true)
    gameLeftPanel:setVisible(true)
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
 
In file: modules\game_interface\gameinterface.lua
In lines ~830 <-> ~840

Change this code:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })

to:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(10) --normal is 11
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 }) --maybe you need to change this
    gameLeftPanel:setOn(true)
    gameLeftPanel:setVisible(true)
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })


I did change this, but still login with no small panels removed and -1 zoom
 
Ok, next try:

Change to this:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(10)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })


And this line ~58:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And this line ~144:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And this line ~154:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And you must remember to check: Game -> Select option: 'Show left panel'.
 
Ok, next try:

Change to this:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(10)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })


And this line ~58:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And this line ~144:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And this line ~154:
from:
LUA:
setupViewMode(0)
to:
LUA:
setupViewMode(1)

And you must remember to check: Game -> Select option: 'Show left panel'.


Thank you so much!
 
Did you know how to always open client with left pannel (even in first time)?
And disable option to remove left pannel?
 
interface.lua remove:
LUA:
function init()
    connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
end
function terminate()
    disconnect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
end
function onLeftPanelVisibilityChange(leftPanel, visible)
  if not visible and g_game.isOnline() then
    local children = leftPanel:getChildren()
    for i=1,#children do
      children[i]:toggle()
    end
  end
end
function setupViewMode(mode)
    gameLeftPanel:setOn(modules.client_options.getOption('showLeftPanel'))
end
interface.otui remove:
Code:
    visible: true
    $!on:
      width: 0
      visible: false
options.lua remove:
LUA:
local defaultOptions = {
      showLeftPanel = false,
}
function setOption()
    elseif key == 'showLeftPanel' then
        modules.game_interface.getLeftPanel():setOn(value)
end

game.otui remove:
Code:
  OptionCheckBox
    id: showLeftPanel
    !text: tr('Show left panel')
 
In file: modules\game_interface\gameinterface.lua
In lines ~830 <-> ~840

Change this code:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })

to:
LUA:
if mode == 0 then
    gameMapPanel:setKeepAspectRatio(false)
    gameMapPanel:setLimitVisibleRange(true)
    gameMapPanel:setZoom(10) --normal is 11
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 }) --maybe you need to change this
    gameLeftPanel:setOn(true)
    gameLeftPanel:setVisible(true)
  elseif mode == 1 then
    gameMapPanel:setKeepAspectRatio(true)
    gameMapPanel:setLimitVisibleRange(false)
    gameMapPanel:setZoom(11)
    gameMapPanel:setVisibleDimension({ width = 15, height = 11 })



thanks for the tutorial men :)

do you know how remove top panel?
 
interface.lua remove:
LUA:
function init()
    connect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
end
function terminate()
    disconnect(gameLeftPanel, { onVisibilityChange = onLeftPanelVisibilityChange })
end
function onLeftPanelVisibilityChange(leftPanel, visible)
  if not visible and g_game.isOnline() then
    local children = leftPanel:getChildren()
    for i=1,#children do
      children[i]:toggle()
    end
  end
end
function setupViewMode(mode)
    gameLeftPanel:setOn(modules.client_options.getOption('showLeftPanel'))
end
interface.otui remove:
Code:
    visible: true
    $!on:
      width: 0
      visible: false
options.lua remove:
LUA:
local defaultOptions = {
      showLeftPanel = false,
}
function setOption()
    elseif key == 'showLeftPanel' then
        modules.game_interface.getLeftPanel():setOn(value)
end

game.otui remove:
Code:
  OptionCheckBox
    id: showLeftPanel
    !text: tr('Show left panel')


Thank you!
 
Back
Top