[Gcblue-commits] gcb_wx/scripts HotKey.py,1.9,1.10
Status: Alpha
Brought to you by:
ddcforge
From: Dewitt C. <ddc...@us...> - 2006-09-24 19:50:25
|
Update of /cvsroot/gcblue/gcb_wx/scripts In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv11768/scripts Modified Files: HotKey.py Log Message: Upgraded to OSG 1.2. Tried Demeter 4.0 but had to go back. It's not backwards compatible. Added border to 3D view, alt-f to toggle frame counter Fix for passive torpedo bug Index: HotKey.py =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/scripts/HotKey.py,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** HotKey.py 5 Sep 2006 01:04:24 -0000 1.9 --- HotKey.py 24 Sep 2006 19:50:20 -0000 1.10 *************** *** 64,65 **** --- 64,82 ---- # This needs to be reworked #def ProcessHotKeyOther(key): + + # flags : bitfield 1 - shift pressed, 2 - ctrl pressed, 4 - alt pressed + # e.g. flags == 6 indicates ctrl and alt were pressed during dclick + def ProcessDoubleClickHook(UnitInfo, flags): + # for units with aircraft show the flight panel unless shift is pressed + # otherwise show the platform panel + if (UnitInfo.HasFlightPort()): + if ((flags & 1) != 1): + UnitInfo.SendCommand('ShowFlightPanel') + else: + UnitInfo.SendCommand('ShowPlatformPanel') + else: + UnitInfo.SendCommand('ShowPlatformPanel') + + + + |