Update of /cvsroot/gcblue/gcb_wx/src/scriptinterface
In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv11768/src/scriptinterface
Modified Files:
tcSimPythonInterface.cpp
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: tcSimPythonInterface.cpp
===================================================================
RCS file: /cvsroot/gcblue/gcb_wx/src/scriptinterface/tcSimPythonInterface.cpp,v
retrieving revision 1.43
retrieving revision 1.44
diff -C2 -d -r1.43 -r1.44
*** tcSimPythonInterface.cpp 23 Mar 2006 01:11:02 -0000 1.43
--- tcSimPythonInterface.cpp 24 Sep 2006 19:50:20 -0000 1.44
***************
*** 959,962 ****
--- 959,979 ----
/**
+ * @param flags : bitfield describing keys pressed during double click:
+ * 1 - shift pressed, 2 - ctrl pressed, 4 - alt pressed
+ */
+ void tcSimPythonInterface::ProcessDoubleClickHook(unsigned int flags)
+ {
+ char zBuff[128];
+ if (mpHookedObj == 0) return;
+ if (!mpSimState->mpUserInfo->IsOwnAlliance(mpHookedObj->GetAlliance())) return;
+
+ sprintf(zBuff, "Menu.ProcessDoubleClickHook(HookedUnitInfo, %d)\n", flags);
+
+
+ CallPython(zBuff, "Exception occurred in ProcessHotKey\n");
+ }
+
+
+ /**
* Calls the ProcessHotKey script in Menu.py with an argument based
* on whether or not a unit is hooked and, if so, the type of unit
***************
*** 976,980 ****
CallPython(zBuff, "Exception occurred in ProcessHotKey\n");
-
}
--- 993,996 ----
|