From: Laszlo T. <ave...@us...> - 2006-01-03 22:04:00
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12465/GUIScripts/iwd2 Modified Files: GUIWORLD.py MessageWindow.py Log Message: speaker PC's portrait will appear on the interface Index: MessageWindow.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd2/MessageWindow.py,v retrieving revision 1.19 retrieving revision 1.20 diff -C2 -d -r1.19 -r1.20 *** MessageWindow.py 29 Dec 2005 17:46:45 -0000 1.19 --- MessageWindow.py 3 Jan 2006 22:03:44 -0000 1.20 *************** *** 107,110 **** --- 107,124 ---- GemRB.SetVar ("MessageTextArea", TMessageTA) + if Override: + #gets PC currently talking + pc = GemRB.GameGetSelectedPCSingle (1) + if pc: + Portrait = GemRB.GetPlayerPortrait(PC-1,1) + else: + Portrait = None + Button = GemRB.GetControl(TMessageWindow, 11) + GemRB.SetButtonState (TMessageWindow, Button, IE_GUI_BUTTON_LOCKED) + if not Portrait: + GemRB.SetButtonFlags(TMessageWindow, Button, IE_GUI_BUTTON_NO_IMAGE, OP_SET) + else: + GemRB.SetButtonPicture(TMessageWindow, Button, Portrait, "NOPORTSM") + if hideflag: GemRB.UnhideGUI() Index: GUIWORLD.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/iwd2/GUIWORLD.py,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** GUIWORLD.py 2 Jan 2006 09:40:09 -0000 1.6 --- GUIWORLD.py 3 Jan 2006 22:03:44 -0000 1.7 *************** *** 21,25 **** # GUIW.py - scripts to control some windows from GUIWORLD winpack ! # except of Portrait, Portrait, Options and Dialog windows ################################################### --- 21,25 ---- # GUIW.py - scripts to control some windows from GUIWORLD winpack ! # except of Portrait, Options and Dialog windows ################################################### |