From: Laszlo T. <ave...@us...> - 2006-07-04 14:49:49
|
Update of /cvsroot/gemrb/gemrb/gemrb/GUIScripts/how In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv15785/how Modified Files: GUICommonWindows.py Log Message: iwd/how: added the yellow frame when transferring items Index: GUICommonWindows.py =================================================================== RCS file: /cvsroot/gemrb/gemrb/gemrb/GUIScripts/how/GUICommonWindows.py,v retrieving revision 1.17 retrieving revision 1.18 diff -C2 -d -r1.17 -r1.18 *** GUICommonWindows.py 29 Jun 2006 06:56:44 -0000 1.17 --- GUICommonWindows.py 4 Jul 2006 14:49:45 -0000 1.18 *************** *** 324,331 **** GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_PRESS, "PortraitButtonOnPress") GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_SHIFT_PRESS, "PortraitButtonOnShiftPress") - #GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_DRAG_DROP, "PortraitButtonOnDragDrop") GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_DRAG_DROP, "OnDropItemToPC") ! #GemRB.SetEvent (Window, Button, IE_GUI_MOUSE_ENTER_BUTTON, "PortraitButtonOnMouseOver") ! #GemRB.SetEvent (Window, Button, IE_GUI_MOUSE_LEAVE_BUTTON, "PortraitButtonOnMouseLeave") GemRB.SetButtonBorder (Window, Button, FRAME_PC_SELECTED, 1, 1, 2, 2, 0, 255, 0, 255) --- 324,330 ---- GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_PRESS, "PortraitButtonOnPress") GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_SHIFT_PRESS, "PortraitButtonOnShiftPress") GemRB.SetEvent (Window, Button, IE_GUI_BUTTON_ON_DRAG_DROP, "OnDropItemToPC") ! GemRB.SetEvent (Window, Button, IE_GUI_MOUSE_ENTER_BUTTON, "PortraitButtonOnMouseOver") ! GemRB.SetEvent (Window, Button, IE_GUI_MOUSE_LEAVE_BUTTON, "PortraitButtonOnMouseLeave") GemRB.SetButtonBorder (Window, Button, FRAME_PC_SELECTED, 1, 1, 2, 2, 0, 255, 0, 255) *************** *** 424,431 **** def PortraitButtonOnMouseLeave (): i = GemRB.GetVar ('PressedPortrait') ! if GemRB.IsDraggingItem (): ! Button = GemRB.GetControl (PortraitWindow, i) ! GemRB.EnableButtonBorder (PortraitWindow, Button, FRAME_PC_TARGET, 0) ! def GetSavingThrow (SaveName, row, level): --- 423,428 ---- def PortraitButtonOnMouseLeave (): i = GemRB.GetVar ('PressedPortrait') ! Button = GemRB.GetControl (PortraitWindow, i) ! GemRB.EnableButtonBorder (PortraitWindow, Button, FRAME_PC_TARGET, 0) def GetSavingThrow (SaveName, row, level): |