Registers an impression formatter. This is used in the platform release impression popup display.
Registers an impression formatter. This is used in the platform release impression popup display.
1 table data
the data to register.
playerPlatform.registerImpressionFormat({ id = "incompletion", textMinor = _T("PLATFORM_INCOMPLETION_MINOR", "Minor hardware failure has slightly hurt the first impression of the platform."), textMajor = _T("PLATFORM_INCOMPLETION_MAJOR", "Hardware failure has hurt the first impression of the platform."), minorValue = 0.15, addToPopup = function(self, extra, wrapWidth, rawW, drop) extra:addTextLine(rawW, game.UI_COLORS.RED, nil, "weak_gradient_horizontal") local text = drop <= self.minorValue and self.textMinor or self.textMajor extra:addText(text, "bh18", nil, 0, wrapWidth, "exclamation_point_red", 22, 22) end })