[Gcblue-commits] gcb_wx/scripts UnitCommands.py,1.23,1.24
Status: Alpha
Brought to you by:
ddcforge
|
From: Dewitt C. <ddc...@us...> - 2005-12-08 23:28:06
|
Update of /cvsroot/gcblue/gcb_wx/scripts In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29232/scripts Modified Files: UnitCommands.py Log Message: Index: UnitCommands.py =================================================================== RCS file: /cvsroot/gcblue/gcb_wx/scripts/UnitCommands.py,v retrieving revision 1.23 retrieving revision 1.24 diff -C2 -d -r1.23 -r1.24 *** UnitCommands.py 27 Nov 2005 22:21:29 -0000 1.23 --- UnitCommands.py 8 Dec 2005 23:27:55 -0000 1.24 *************** *** 81,87 **** --- 81,93 ---- UI.AddNavWaypoint(deg_to_rad*lon_deg, deg_to_rad*lat_deg) + def EditWaypoint(UI, idx, lon, lat): UI.EditNavWaypoint(idx, lon, lat) + # version with idx starting from current waypoint + def EditActiveWaypoint(UI, idx, lon, lat): + EditWaypoint(UI, idx + UI.GetCurrentWaypoint(), lon, lat) + + def AddPatrolOrderGroup(GI): unit_count = GI.GetUnitCount() |