Ejemplo n.º 1
0
 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)
Ejemplo n.º 2
0
 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)
Ejemplo n.º 3
0
 def onStatusMessage(self, msg):
     self.appendChat(ColorTheme.statusHtml(msg))
Ejemplo n.º 4
0
 def onChallengeDeclined(self, name):
     self.appendChat(ColorTheme.statusHtml(name + " declined your challenge"))
     self.updateStatusBar()
Ejemplo n.º 5
0
 def onChallengeCancelled(self, name):
     self.appendChat(ColorTheme.statusHtml(name + " cancelled challenge"))
     self.updateStatusBar()
Ejemplo n.º 6
0
 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)))
Ejemplo n.º 7
0
 def onActionFailed(self, txt):
     self.appendChat(ColorTheme.statusHtml(txt))
Ejemplo n.º 8
0
 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))
Ejemplo n.º 9
0
 def ignoreRemoved(self, name):
     self.appendChat(ColorTheme.statusHtml("* Removing " + name + " from ignore list."))
Ejemplo n.º 10
0
 def ignoreAdded(self, name):
     self.appendChat(ColorTheme.statusHtml("* Adding " + name + " to ignore list."))