Mercurial > rinkhals
diff gamelib/mainmenu.py @ 124:69fd96eafde8
Display splash screen and replace window title.
author | Jeremy Thurgood <firxen@gmail.com> |
---|---|
date | Wed, 02 Sep 2009 21:14:05 +0000 |
parents | 5d58a5b13731 |
children | 1d73de63bd71 |
line wrap: on
line diff
--- a/gamelib/mainmenu.py Wed Sep 02 21:00:15 2009 +0000 +++ b/gamelib/mainmenu.py Wed Sep 02 21:14:05 2009 +0000 @@ -4,6 +4,14 @@ import pygame import constants import engine +import imagecache + +class MenuContainer(gui.Container): + def paint(self, s): + pygame.display.set_caption(constants.NAME) + splash = imagecache.load_image("images/splash.png") + pygame.display.get_surface().blit(splash, (0, 0)) + gui.Container.paint(self, s) class MainMenu(gui.Table): def __init__(self, **params): @@ -36,9 +44,6 @@ } self.tr() - self.td(gui.Label(constants.NAME, color=constants.FG_COLOR), **td_kwargs) - - self.tr() self.td(start_button, **td_kwargs) self.tr()