From: <ave...@us...> - 2003-11-04 22:16:39
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts In directory sc8-pr-cvs1:/tmp/cvs-serv3087 Modified Files: GUIMOVIE.py Log Message: Corrected movie screen Index: GUIMOVIE.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/GUIMOVIE.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** GUIMOVIE.py 4 Nov 2003 22:07:20 -0000 1.7 --- GUIMOVIE.py 4 Nov 2003 22:16:36 -0000 1.8 *************** *** 37,43 **** def PlayPress(): print "MovieIndex", GemRB.GetVar("MovieIndex") ! s = GemRB.GetTableRowName(MoviesTable, GemRB.GetVar("MovieIndex")) ! print "Play Movie: ",s ! GemRB.PlayMovie(s) return --- 37,49 ---- def PlayPress(): print "MovieIndex", GemRB.GetVar("MovieIndex") ! s = GemRB.GetVar("MovieIndex") ! for i in range(0, GemRB.GetTableRowCount(MoviesTable) ): ! t = GemRB.GetTableRowName(MoviesTable, i) ! if GemRB.GetVar(t)==1: ! if s==0: ! s = GemRB.GetTableRowName(MoviesTable, i) ! GemRB.PlayMovie(s) ! return ! s = s - 1 return |