Beispiel #1
0
 def detachCursor(self, isDetached, enableAiming):
     if not self.__isStarted:
         return 
     self.__detachCount += -1 if isDetached else 1
     assert self.__detachCount <= 0
     if self.__detachCount == -1 and isDetached:
         self.__targeting.enable(False)
         g_cursorDelegator.activateCursor()
         if enableAiming:
             self.setAimingMode(False, AIMING_MODE.USER_DISABLED)
     elif not self.__detachCount:
         self.__targeting.enable(True)
         g_cursorDelegator.detachCursor()
Beispiel #2
0
 def detachCursor(self, isDetached, enableAiming):
     if not self.__isStarted:
         return
     self.__detachCount += -1 if isDetached else 1
     assert self.__detachCount <= 0
     if self.__detachCount == -1 and isDetached:
         self.__targeting.enable(False)
         g_cursorDelegator.activateCursor()
         if enableAiming:
             self.setAimingMode(False, AIMING_MODE.USER_DISABLED)
     elif not self.__detachCount:
         self.__targeting.enable(True)
         g_cursorDelegator.detachCursor()
Beispiel #3
0
 def attachCursor(self, flags=0):
     return g_cursorDelegator.activateCursor()
Beispiel #4
0
 def attachCursor(self):
     return g_cursorDelegator.activateCursor()