From: <bal...@us...> - 2003-11-04 19:56:05
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts In directory sc8-pr-cvs1:/tmp/cvs-serv6430 Modified Files: GUICG4.py Log Message: Bug Fixed: Fixed errors displaying text on Abilities Labels and Refreshing the screen Index: GUICG4.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/GUICG4.py,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** GUICG4.py 4 Nov 2003 19:14:09 -0000 1.5 --- GUICG4.py 4 Nov 2003 19:56:01 -0000 1.6 *************** *** 23,26 **** --- 23,29 ---- Label = GemRB.GetControl(AbilityWindow, 0x10000003+i) GemRB.SetText(AbilityWindow, Label, str(v) ) + + GemRB.InvalidateWindow(AbilityWindow) + return *************** *** 46,49 **** --- 49,58 ---- GemRB.SetEvent(AbilityWindow, Button, IE_GUI_BUTTON_ON_PRESS, "RightPress") GemRB.SetVarAssoc(AbilityWindow, Button, "AbilityDecrease", i ) + + Label = GemRB.GetControl(AbilityWindow, 0x10000003+i) + GemRB.SetLabelUseRGB(AbilityWindow, Label, 1) + + Label = GemRB.GetControl(AbilityWindow, 0x10000002) + GemRB.SetLabelUseRGB(AbilityWindow, Label, 1) RerollButton = GemRB.GetControl(AbilityWindow,2) |