コード例 #1
0
 def disableAvatarJump(self):
     """
     prevent 
     """
     assert self.forceAvJumpToken is None
     self.forceAvJumpToken=inputState.force(
         "jump", 0, 'ControlManager.disableAvatarJump')
コード例 #2
0
 def disableAvatarJump(self):
     """
     prevent
     """
     assert self.forceAvJumpToken is None
     self.forceAvJumpToken=inputState.force(
         "jump", 0, 'ControlManager.disableAvatarJump')
 def disableControls(self):
     self.forceTokens = [inputState.force('jump', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('forward', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('turnLeft', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('slideLeft', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('reverse', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('turnRight', 0, 'ToontownControlManager.disableWASD'),
      inputState.force('slideRight', 0, 'ToontownControlManager.disableWASD')]
コード例 #4
0
 def disableWASD(self):
     if self.wantWASD:
         self.forceTokens = [
             inputState.force("jump", 0, 'ControlManager.disableWASD'),
             inputState.force("forward", 0, 'ControlManager.disableWASD'),
             inputState.force("turnLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("slideLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("reverse", 0, 'ControlManager.disableWASD'),
             inputState.force("turnRight", 0, 'ControlManager.disableWASD'),
             inputState.force("slideRight", 0, 'ControlManager.disableWASD')
         ]
         print 'disableWASD()'
コード例 #5
0
 def disableWASD(self):
     if self.wantWASD:
         # Forces all keys to return 0. This won't affect chat input.
         self.forceTokens = [
             inputState.force("jump", 0, "ControlManager.disableWASD"),
             inputState.force("forward", 0, "ControlManager.disableWASD"),
             inputState.force("turnLeft", 0, "ControlManager.disableWASD"),
             inputState.force("slideLeft", 0, "ControlManager.disableWASD"),
             inputState.force("reverse", 0, "ControlManager.disableWASD"),
             inputState.force("turnRight", 0, "ControlManager.disableWASD"),
             inputState.force("slideRight", 0, "ControlManager.disableWASD"),
         ]
コード例 #6
0
 def disableWASD(self):
     if self.wantWASD:
         # Forces all keys to return 0. This won't affect chat input.
         self.forceTokens = [
             inputState.force("jump", 0, 'ControlManager.disableWASD'),
             inputState.force("forward", 0, 'ControlManager.disableWASD'),
             inputState.force("turnLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("slideLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("reverse", 0, 'ControlManager.disableWASD'),
             inputState.force("turnRight", 0, 'ControlManager.disableWASD'),
             inputState.force("slideRight", 0, 'ControlManager.disableWASD')
         ]
コード例 #7
0
 def disableWASD(self):  #Disables WASD for when chat is open.
     if self.wantWASD:
         self.forceTokens = [  #Forces all keys to return 0. This won't affect chat input.
             inputState.force("jump", 0, 'ControlManager.disableWASD'),
             inputState.force("forward", 0, 'ControlManager.disableWASD'),
             inputState.force("turnLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("slideLeft", 0, 'ControlManager.disableWASD'),
             inputState.force("reverse", 0, 'ControlManager.disableWASD'),
             inputState.force("turnRight", 0, 'ControlManager.disableWASD'),
             inputState.force("slideRight", 0, 'ControlManager.disableWASD')
         ]
         print 'disableWASD()'
 def disableWASD(self):
     # Disables WASD for when chat is open.
     # Forces all keys to return 0. This won't affect chat input.
     if self.wantWASD:
         self.forceTokens = [
             inputState.force('jump', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('forward', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('turnLeft', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('slideLeft', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('reverse', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('turnRight', 0, 'ToontownControlManager.disableWASD'),
             inputState.force('slideRight', 0, 'ToontownControlManager.disableWASD')
         ]
 def disableWASD(self):
     if self.wantWASD:
         self.forceTokens=[
             inputState.force(
               "jump", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "forward", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "turnLeft", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "slideLeft", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "reverse", 0, 'ControlManager.disableWASD'),         
             inputState.force(
               "turnRight", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "slideRight", 0, 'ControlManager.disableWASD')                  
         ]
         print 'disableWASD()'
コード例 #10
0
 def disableWASD(self):#Disables WASD for when chat is open.
     if self.wantWASD:
         self.forceTokens=[#Forces all keys to return 0. This won't affect chat input.
             inputState.force(
               "jump", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "forward", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "turnLeft", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "slideLeft", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "reverse", 0, 'ControlManager.disableWASD'),         
             inputState.force(
               "turnRight", 0, 'ControlManager.disableWASD'),
             inputState.force(
               "slideRight", 0, 'ControlManager.disableWASD')                  
         ]
         print 'disableWASD()'
コード例 #11
0
 def disableAvatarJump(self):
     self.forceAvJumpToken = inputState.force(
         'jump', 0, 'ControlManager.disableAvatarJump')