コード例 #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()
コード例 #2
0
ファイル: TimeOfDayPanel.py プロジェクト: TTGhost/POTCOR-src
 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()
コード例 #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
コード例 #4
0
ファイル: TimeOfDayPanel.py プロジェクト: TTGhost/POTCOR-src
 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()
コード例 #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)
コード例 #6
0
ファイル: TimeOfDayPanel.py プロジェクト: TTGhost/POTCOR-src
 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)