victorlima
Member
I found this post but when i try to ask how he solve the problem he deleted my comment, so i crated this thread to get some help.
He told that the solution was to change the changeMapAwareRange inside the gameinterface.lua.
I want do to 1 level of zoomout and idk what i have to change. Here is my code:
I want that view with setzoom(14)
But im getting black border like this img:
View attachment 77743
Solved - Adding more tiles to game window - OTCv8
So, I followed a lot of tutorials about adding new tiles to the game window. I made the required changes on my source. Currently using: static constexpr int32_t maxViewportX = 11 + 4; //min value: maxClientViewportX + 1 static constexpr int32_t maxViewportY = 11 + 4...
otland.net
He told that the solution was to change the changeMapAwareRange inside the gameinterface.lua.
I want do to 1 level of zoomout and idk what i have to change. Here is my code:
Lua:
if classic then
g_game.changeMapAwareRange(19, 15)
gameMapPanel:addAnchor(AnchorLeft, 'gameLeftActionPanel', AnchorRight)
gameMapPanel:addAnchor(AnchorRight, 'gameRightActionPanel', AnchorLeft)
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomActionPanel', AnchorTop)
gameMapPanel:addAnchor(AnchorTop, 'gameTopBar', AnchorBottom)
gameMapPanel:setKeepAspectRatio(true)
gameMapPanel:setLimitVisibleRange(false)
gameMapPanel:setZoom(11)
gameMapPanel:setOn(false) -- frame
modules.client_topmenu.getTopMenu():setImageColor('white')
if modules.game_console then
modules.game_console.switchMode(false)
end
Post automatically merged:
I want that view with setzoom(14)
Lua:
if classic then
g_game.changeMapAwareRange(19, 15)
gameMapPanel:addAnchor(AnchorLeft, 'gameLeftActionPanel', AnchorRight)
gameMapPanel:addAnchor(AnchorRight, 'gameRightActionPanel', AnchorLeft)
gameMapPanel:addAnchor(AnchorBottom, 'gameBottomActionPanel', AnchorTop)
gameMapPanel:addAnchor(AnchorTop, 'gameTopBar', AnchorBottom)
gameMapPanel:setKeepAspectRatio(true)
gameMapPanel:setLimitVisibleRange(false)
gameMapPanel:setZoom(14)
gameMapPanel:setOn(false) -- frame
But im getting black border like this img:
View attachment 77743
Last edited: