From: Laszlo T. <ave...@us...> - 2004-07-25 11:16:28
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/test1 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22630/test1 Modified Files: Start.py Added Files: .cvsignore Makefile.am Log Message: test1 update --- NEW FILE: .cvsignore --- *.pyc Makefile Makefile.in Index: Start.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/test1/Start.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** Start.py 25 Jul 2004 08:12:37 -0000 1.1 --- Start.py 25 Jul 2004 11:16:08 -0000 1.2 *************** *** 3,15 **** def OnLoad(): print "Testing basic guiscript functions" ! print "1. Testing SetToken" GemRB.SetToken("CHARname","Avenger") - print "2. Testing GetToken" print "Avenger == ",GemRB.GetToken("charNAME") ! print "3. Testing SetVariable & GetVariable" ! GemRB.SetVariable("Strref On",1) ! print "Strref On was turned to ",GemRB.GetVariable("Strref On") ! ! print "99. quit" GemRB.Quit() --- 3,24 ---- def OnLoad(): print "Testing basic guiscript functions" ! #case insensitive on token key, but case sensitive on value ! print "1. Testing Set/GetToken" GemRB.SetToken("CHARname","Avenger") print "Avenger == ",GemRB.GetToken("charNAME") ! #case insensitive on key ! print "2. Testing SetVar & GetVar" ! GemRB.SetVar("Strref On",1) ! print "Strref On was turned to ",GemRB.GetVar("STRREF ON") ! #actually this breaks the script atm ! #print "3. Testing PlaySound - non-existent resource" ! #GemRB.PlaySound("nothere") ! print "4. Testing PlaySound, uncompressed wav" ! GemRB.PlaySound("alivad12") ! print "5. Testing PlaySound, compressed wav" ! GemRB.PlaySound("compress") ! print "6. Enabling cheatkeys" ! GemRB.EnableCheatKeys(1) ! #should quit without error :) print "99. quit" GemRB.Quit() --- NEW FILE: Makefile.am --- test1script_DATA = *.py test1scriptdir = $(moddir)/GUIScripts/test1/ EXTRA_DIST = *.py MOSTLYCLEANFILES = *.pyc |