def commandChangeTodSpeed(self):
     tod = self.todVar.get()
     todStartHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     cycleDuration = self.cycleDurationVar.get()
     self.changeTod(cycleDuration)
     self.setEnableDisable()
     self.checkButtonsForChange()
Beispiel #2
0
 def commandChangeTodSpeed(self):
     tod = self.todVar.get()
     todStartHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     cycleDuration = self.cycleDurationVar.get()
     self.changeTod(cycleDuration)
     self.setEnableDisable()
     self.checkButtonsForChange()
 def commandChangeTod(self):
     tod = self.todVar.get()
     startHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     if startHour == None:
         startHour = 0.0
     todStartHour = (startHour + TODGlobals.getStateTransitionTime(self.todMgr.cycleType, tod)) * PiratesGlobals.TOD_GAMEHOURS_IN_GAMEDAY
     cycleDuration = self.cycleDurationVar.get()
     self.changeTod(cycleDuration, todStartHour)
     self.setEnableDisable()
     self.checkButtonsForChange()
     return
Beispiel #4
0
 def commandChangeTod(self):
     tod = self.todVar.get()
     startHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     if startHour == None:
         startHour = 0.0
     
     todStartHour = (startHour + TODGlobals.getStateTransitionTime(self.todMgr.cycleType, tod)) * PiratesGlobals.TOD_GAMEHOURS_IN_GAMEDAY
     cycleDuration = self.cycleDurationVar.get()
     self.changeTod(cycleDuration, todStartHour)
     self.setEnableDisable()
     self.checkButtonsForChange()
 def commandChangeTodOff(self):
     tod = self.todVar.get()
     todStartHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     cycleDuration = self.cycleDurationVar.get()
     self.selectedCycleDuration = -1
     self.changeTod(self.todMgr.cycleSpeed, todStartHour)
Beispiel #6
0
 def commandChangeTodOff(self):
     tod = self.todVar.get()
     todStartHour = TODGlobals.getStateBeginTime(self.todMgr.cycleType, tod)
     cycleDuration = self.cycleDurationVar.get()
     self.selectedCycleDuration = -1
     self.changeTod(self.todMgr.cycleSpeed, todStartHour)