def onRemoteHasUpdates(self, added, updated, nochange): totalchanged = added + updated if totalchanged: self.appendChat(ColorTheme.statusHtml( "Syncronizing {} savestate(s). Please wait...".format( totalchanged))) UnsupportedSavestates.sync(self.onStatusMessage)
def onRemoteHasUpdates(self, added, updated, nochange): totalchanged = added + updated if totalchanged: self.appendChat( ColorTheme.statusHtml( "Syncronizing {} savestate(s). Please wait...".format( totalchanged))) UnsupportedSavestates.sync(self.onStatusMessage)
def onStatusMessage(self, msg): self.appendChat(ColorTheme.statusHtml(msg))
def onChallengeDeclined(self, name): self.appendChat(ColorTheme.statusHtml(name + " declined your challenge")) self.updateStatusBar()
def onChallengeCancelled(self, name): self.appendChat(ColorTheme.statusHtml(name + " cancelled challenge")) self.updateStatusBar()
def onRemoteHasUpdates(self, added, updated, nochange): totalchanged = added + updated if totalchanged: self.appendChat(ColorTheme.statusHtml( "{} savestate(s) added/updated.\nGo to `Action > Sync Unsupported Savestates` for updates".format( totalchanged)))
def onActionFailed(self, txt): self.appendChat(ColorTheme.statusHtml(txt))
def notifyStateChange(self, name, msg): msg = name + msg if self.lastStateChangeMsg != msg: self.lastStateChangeMsg = msg flag = self.controller.getPlayerFlag(name) or '' self.appendChat(flag + ColorTheme.statusHtml(msg))
def ignoreRemoved(self, name): self.appendChat(ColorTheme.statusHtml("* Removing " + name + " from ignore list."))
def ignoreAdded(self, name): self.appendChat(ColorTheme.statusHtml("* Adding " + name + " to ignore list."))