Exemplo n.º 1
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()
Exemplo n.º 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()
Exemplo n.º 3
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()
     return
Exemplo n.º 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()
Exemplo n.º 5
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)
Exemplo n.º 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)