Update of /cvsroot/freevo/freevo/src/skins/main
In directory sc8-pr-cvs1:/tmp/cvs-serv18807
Modified Files:
main.py
Log Message:
make the progressbar look nicer and add some text
Index: main.py
===================================================================
RCS file: /cvsroot/freevo/freevo/src/skins/main/main.py,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** main.py 31 Aug 2003 14:17:16 -0000 1.5
--- main.py 3 Sep 2003 19:50:36 -0000 1.6
***************
*** 10,13 ****
--- 10,16 ----
# -----------------------------------------------------------------------
# $Log$
+ # Revision 1.6 2003/09/03 19:50:36 dischi
+ # make the progressbar look nicer and add some text
+ #
# Revision 1.5 2003/08/31 14:17:16 dischi
# added Splashscreen support
***************
*** 229,233 ****
self.x0 = config.OVERSCAN_X + 20
self.x1 = osd.width - 2 * (config.OVERSCAN_X + 20)
! self.y0 = osd.height - 100 - config.OVERSCAN_Y
self.y1 = self.y0 + 30
--- 232,236 ----
self.x0 = config.OVERSCAN_X + 20
self.x1 = osd.width - 2 * (config.OVERSCAN_X + 20)
! self.y0 = osd.height - 130 - config.OVERSCAN_Y
self.y1 = self.y0 + 30
***************
*** 236,239 ****
--- 239,247 ----
image = pygame.transform.scale(image, (osd.width, osd.height))
osd.drawbitmap(image, 0, 0)
+ osd.drawstringframed('Starting Freevo, please wait ...',
+ self.x0, self.y0-50, self.x1-self.x0, 40,
+ osd.getfont(config.OSD_DEFAULT_FONTNAME, 20),
+ fgcolor=0xffffff, align_h='center',
+ align_v='bottom')
osd.update()
self.bg = pygame.Surface((self.x1 - self.x0, self.y1 - self.y0))
***************
*** 241,250 ****
self.y1 - self.y0))
def progress(self, pos):
pos = round(float((self.x1 - self.x0 - 2)) / (float(100) / pos))
osd.screen.blit(self.bg, (self.x0, self.y0))
! osd.drawbox(self.x0, self.y0, self.x1, self.y1, 1)
! osd.drawbox(self.x0+1, self.y0+1, self.x0 + 1 + pos, self.y1-1,
color=0xa0000000, fill=TRUE)
osd.update()
--- 249,259 ----
self.y1 - self.y0))
+
def progress(self, pos):
pos = round(float((self.x1 - self.x0 - 2)) / (float(100) / pos))
osd.screen.blit(self.bg, (self.x0, self.y0))
! osd.drawbox(self.x0, self.y0, self.x0 + pos, self.y1,
color=0xa0000000, fill=TRUE)
+ osd.drawbox(self.x0, self.y0, self.x1, self.y1, 2)
osd.update()
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Freevo-cvslog mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/freevo-cvslog