(self, player, userlist, ui, client)
| 1187 | |
| 1188 | class _WarningManager(object): |
| 1189 | def __init__(self, player, userlist, ui, client): |
| 1190 | self._client = client |
| 1191 | self._player = player |
| 1192 | self._userlist = userlist |
| 1193 | self._ui = ui |
| 1194 | self._warnings = { |
| 1195 | "room-file-differences": { |
| 1196 | "timer": task.LoopingCall(self.__displayMessageOnOSD, "room-file-differences", |
| 1197 | lambda: self._checkRoomForSameFiles(OSDOnly=True),), |
| 1198 | "displayedFor": 0, |
| 1199 | }, |
| 1200 | "alone-in-the-room": { |
| 1201 | "timer": task.LoopingCall(self.__displayMessageOnOSD, "alone-in-the-room", |
| 1202 | lambda: self._checkIfYouReAloneInTheRoom(OSDOnly=True)), |
| 1203 | "displayedFor": 0, |
| 1204 | }, |
| 1205 | "not-all-ready": { |
| 1206 | "timer": task.LoopingCall(self.__displayMessageOnOSD, "not-all-ready", |
| 1207 | lambda: self.checkReadyStates(),), |
| 1208 | "displayedFor": 0, |
| 1209 | }, |
| 1210 | } |
| 1211 | self.pausedTimer = task.LoopingCall(self.__displayPausedMessagesOnOSD) |
| 1212 | self.pausedTimer.start(constants.WARNING_OSD_MESSAGES_LOOP_INTERVAL, True) |
| 1213 | |
| 1214 | def checkWarnings(self): |
| 1215 | if self._client.autoplayConditionsMet(): |
nothing calls this directly
no test coverage detected