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])
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])
def __showErrorMessage(self, message): self.__flashCall(BTMS_COMMANDS.ShowActionFailureMessage(), [g_settings.htmlTemplates.format('battleErrorMessage', ctx={'error': message})])