From: Laszlo T. <ave...@us...> - 2004-10-02 09:55:35
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv25797/GUIScripts/bg2 Modified Files: GUICommonWindows.py Log Message: Fixed progressbar and portrait text for iwd/how improved guiscripts for tob/bg2 Index: GUICommonWindows.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/bg2/GUICommonWindows.py,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** GUICommonWindows.py 19 Sep 2004 20:04:51 -0000 1.7 --- GUICommonWindows.py 2 Oct 2004 09:55:03 -0000 1.8 *************** *** 1,5 **** # -*-python-*- # GemRB - Infinity Engine Emulator ! # Copyright (C) 2003 The GemRB Project # # This program is free software; you can redistribute it and/or --- 1,5 ---- # -*-python-*- # GemRB - Infinity Engine Emulator ! # Copyright (C) 2003-2004 The GemRB Project # # This program is free software; you can redistribute it and/or *************** *** 207,210 **** --- 207,217 ---- GemRB.SetButtonBorder (Window, Button, FRAME_PC_TARGET, 3, 3, 4, 4, 255, 255, 0, 255) GemRB.SetVarAssoc (Window, Button, "PressedPortrait", i) + GemRB.SetButtonFont (Window, Button, 'FLOATTXT') + hp = GemRB.GetPlayerStat (i+1, IE_HITPOINTS) + hp_max = GemRB.GetPlayerStat (i+1, IE_MAXHITPOINTS) + + GemRB.SetText (Window, Button, "%d/%d" %(hp, hp_max)) + GemRB.SetTooltip (Window, Button, GemRB.GetPlayerName (i+1, 1) + "\n%d/%d" %(hp, hp_max)) + return |