Esempio n. 1
0
 def __showWarningMessage(self, actionMessage):
     formatter = getMessageFormatter(actionMessage)
     formatted = formatter.getFormattedMessage()
     fillColor = formatter.getFillColor()
     self.__sharedHistory.addMessage(formatted, fillColor=fillColor)
     self.__flashCall(BTMS_COMMANDS.ShowActionFailureMessage(),
                      [formatted, fillColor])
Esempio n. 2
0
 def __showErrorMessage(self, message):
     formatted = g_settings.htmlTemplates.format('battleErrorMessage',
                                                 ctx={'error': message})
     self.__sharedHistory.addMessage(formatted)
     self.__flashCall(BTMS_COMMANDS.ShowActionFailureMessage(),
                      [formatted, FILL_COLORS.BLACK])
Esempio n. 3
0
 def __showErrorMessage(self, message):
     self.__flashCall(BTMS_COMMANDS.ShowActionFailureMessage(), [g_settings.htmlTemplates.format('battleErrorMessage', ctx={'error': message})])