New version from Steve.

This commit is contained in:
curt
1998-06-17 21:32:42 +00:00
parent 7423077f95
commit 529ca14534
13 changed files with 706 additions and 76 deletions
+21 -3
View File
@@ -200,9 +200,26 @@ int puInterface::checkHit ( int button, int updown, int x, int y )
void puInterface::draw ( int dx, int dy )
{
if ( isVisible () )
for ( puObject *bo = dlist ; bo != NULL ; bo = bo->next )
bo -> draw ( dx + abox.min[0], dy + abox.min[1] ) ;
if ( ! isVisible () )
return ;
for ( puObject *bo = dlist ; bo != NULL ; bo = bo->next )
{
/* June 16th, 98, Shammi :
* The next if statement checks if the object is
* a menu bar and makes sure it is repositioned
* correctly.
*/
if ( bo->getType() & PUCLASS_MENUBAR )
{
int obWidth, obHeight ;
bo -> getSize ( &obWidth, &obHeight ) ;
bo -> setPosition ( 0, puGetWindowHeight() - obHeight ) ;
}
bo -> draw ( dx + abox.min[0], dy + abox.min[1] ) ;
}
}
@@ -243,3 +260,4 @@ puInterface::~puInterface ()
}