I creating a simple dialog box and to close it i have to click on OK button lower of its rectangle by 10-15 pixels. The same thing with moving of the window -- i can move it by clicking on the bottom edge +10 pixels down.
All GUI elements shows OK, but respond on mouse with shifted coordinates.
IrrLicht's "UserInterface" example works just OK.
Besides to select node i have to use "+15" pixels; here is my select-node code:
Code: Select all
ISceneNode* selnode = Game.SceneCollision->getSceneNodeFromScreenCoordinatesBB(
position2d<s32>(
Game.Device->getCursorControl()->getPosition().X,
Game.Device->getCursorControl()->getPosition().Y+15
)
);
Does anybody know what it could be ?