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