slotUI/SlotCli.py

changeset 113
b2d91fd5d926
parent 112
fee43a74bed6
equal deleted inserted replaced
112:fee43a74bed6 113:b2d91fd5d926
393 elif key == ord('y'): 393 elif key == ord('y'):
394 if self.slot[5]["drive"] > 0: self.slot[5]["drive"] -= 1 394 if self.slot[5]["drive"] > 0: self.slot[5]["drive"] -= 1
395 cli.box.speedminimum(5, self.slot[5]["drive"]) 395 cli.box.speedminimum(5, self.slot[5]["drive"])
396 elif key == ord('x'): 396 elif key == ord('x'):
397 if self.slot[5]["drive"] < 16: self.slot[5]["drive"] += 1 397 if self.slot[5]["drive"] < 16: self.slot[5]["drive"] += 1
398 cli.box.speedminimum(5, self.slot[4]["drive"]) 398 cli.box.speedminimum(5, self.slot[5]["drive"])
399 elif key == ord('t'): 399 elif key == ord('t'):
400 tmp = self.readInt("Set new Race TIME limit", self.timelimit) 400 tmp = self.readInt("Set new Race TIME limit", self.timelimit)
401 if tmp: self.timelimit = tmp 401 if tmp: self.timelimit = tmp
402 elif key == ord('l'): 402 elif key == ord('l'):
403 tmp = self.readInt("Set new Race LAP limit", self.laplimit) 403 tmp = self.readInt("Set new Race LAP limit", self.laplimit)

mercurial