def __addIGRFactor(self, baseXP): factor = baseXP.getFactor('igrXPFactor10') if factor > 1: icon = style.makeIGRIcon(self.igrType) value = style.makeIGRBonusValue(factor) self.addNextComponent( style.StatRow(style.makeIGRBonusLabel(''), style.makeIGRBonusLabel(icon), style.WIDE_STAT_ROW, column1=value, column2=value, column3=value, column4=value))
def _addRecord(self, res, value): self.addNextComponent( style.StatRow(res, res, style.SMALL_STAT_LINE, column1=style.makeCrystalLabel(value)))