From: Laszlo T. <ave...@us...> - 2007-01-17 21:24:02
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2 In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv21953/bg2 Modified Files: GUIREC.py Log Message: print the active state descriptions (from portrait icons) in the record screen Index: GUIREC.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2/GUIREC.py,v retrieving revision 1.30 retrieving revision 1.31 diff -C2 -d -r1.30 -r1.31 *** GUIREC.py 7 Jan 2007 16:19:16 -0000 1.30 --- GUIREC.py 17 Jan 2007 21:23:58 -0000 1.31 *************** *** 245,248 **** --- 245,249 ---- won = "" woff = "" + StateTable = GemRB.LoadTable ("statdesc") str_None = GemRB.GetString (61560) *************** *** 257,260 **** --- 258,268 ---- stats.append (None) + effects = GemRB.GetPlayerStates (pc) + for chr in effects: + tmp = GemRB.GetTableValue (StateTable, ord(chr)-65, 0) + print chr, GemRB.GetString(tmp) + stats.append (tmp) + + stats.append (None) stats.append (8442) stats.append ( (61932, GS (IE_THAC0), '') ) |