MCPcopy Create free account
hub / github.com/Syncplay/syncplay / __init__

Method __init__

syncplay/client.py:1189–1212  ·  view source on GitHub ↗
(self, player, userlist, ui, client)

Source from the content-addressed store, hash-verified

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():

Callers

nothing calls this directly

Calls 4

checkReadyStatesMethod · 0.95
startMethod · 0.80

Tested by

no test coverage detected