[ocemp-devel] how to use a partial screen in renderer
Status: Beta
Brought to you by:
marcusva
From: stas z. <sta...@gm...> - 2006-11-09 19:20:42
|
Hi, another day, another question :-) I'm using the renderer in combination with a 'normal' pygame game in which ocempgui widgets are used in the bottom part of the screen. I don't want to assign the whole wcreen to the renderer so I tried passing it a pygame.Surface. I passed the surface to the renderer and then added a table with a few buttons and call renderer.update(). Then I call renderer.distribute_events(*events) from the eventloop to check for mouse clicks. This works very well only that I can't show the bottons :-( I assumed I could blit renderer.screen to my mainscreen and call display.update but that fails as the buttons are not blitted on the surface. I could get the sprite objects from renderer.active_layer and blit them on the mainscreen but I don't think that's the right way. Any help would be appreciated. Regards, Stas -- We are not rich because of the things that we possess, but for what we can do without possessing them. -- Immanuel Kant |