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