예제 #1
0
 def race_state(self,insim, rsp):
     InsimClient.race_state(self, insim, rsp)
     try:
         p=self.config.get("cam_changer","props")
         p=[int(x) for x in p.split(",")]
         self.del_button(45, 0)
         if(self.current_driver_id>0):
             drv=self.get_driver(self.current_driver_id)
             self.send_button(45, p[1],p[0], p[2], p[3], "^7"+str(drv.position)+". "+(drv.playername.encode("latin-1")), 0, pyinsim.ISB_DARK|pyinsim.ISB_LEFT)
     except:
         print "Error sending button"
예제 #2
0
 def race_state(self, insim, rsp):
     InsimClient.race_state(self, insim, rsp)
     try:
         p = self.config.get("cam_changer", "props")
         p = [int(x) for x in p.split(",")]
         self.del_button(45, 0)
         if (self.current_driver_id > 0):
             drv = self.get_driver(self.current_driver_id)
             self.send_button(
                 45, p[1], p[0], p[2], p[3], "^7" + str(drv.position) +
                 ". " + (drv.playername.encode("latin-1")), 0,
                 pyinsim.ISB_DARK | pyinsim.ISB_LEFT)
     except:
         print "Error sending button"
예제 #3
0
 def race_state(self,insim, rsp):
     InsimClient.race_state(self, insim, rsp)
     self.track=rsp.Track