Window findHitEdges typo/bug
by Nathan Bowhay - ESAL · in Torque Game Engine Advanced · 04/23/2009 (1:18 pm) · 1 replies
If a window is inside another control that doesn't have the same position and extent as the main torque window rather than calling (not usually an issue cause you call Canvas.pushDialog(...);) then the windows edges will be off cause in findHitEdges it gets a global position. So things like the mouse cursor being correct and you being able to resize the window on the true edge you see will be wrong.
Good news! It's a simple fix:
in the guiWindowCtrl.cpp in
S32 GuiWindowCtrl::findHitEdges( const Point2I &globalPoint )
on about line 215 change
Good news! It's a simple fix:
in the guiWindowCtrl.cpp in
S32 GuiWindowCtrl::findHitEdges( const Point2I &globalPoint )
on about line 215 change
RectI bounds( getBounds() );to
RectI bounds( getGlobalBounds() );
Associate Rene Damm
Thanks for the fix. Checked in.