xD i mean get size in the lua files like viewScreen:getWidth() or something like thisMake print screen, go to paint and select this screen pixelperfect and on the bottom of a Paint window you have pixel's x/y or rectangle size in px.
yes, gameMapPanel:getHeight() is correct but gameMapPanel:getWidth() gives size from parent left to right panel, so it's always same value.Maybe
Code:screenWidth = gameMapPanel:getWidth() screenHeight = gameMapPanel:getHeight()
Maybeyes, gameMapPanel:getHeight() is correct but gameMapPanel:getWidth() gives size from parent left to right panel, so it's always same value.
screenWidth = gameMapPanel:getWidth() - (gameRightPanel:getWidth() + gameLeftPanel:getWidth())
Thanks for idea but this one doesn't work, the value is always same even if i stretch/shrink game window.Maybe
Code:screenWidth = gameMapPanel:getWidth() - (gameRightPanel:getWidth() + gameLeftPanel:getWidth())