Registers a new review remark.
Registers a new review remark.
1 table data
the remark to register.
projectReview:registerRemark({ id = "performance_remarks", remarksText = { bad = { _T("LOW_PERFORMANCE_TEXT_1", "the performance was very poor, and I find it difficult to enjoy a game that can't maintain a stable framerate.") }, good = { _T("HIGH_PERFORMANCE_TEXT_1", "the performance was great.") } }, attemptAdd = function(self, reviewObject, remarksTable) local project = reviewObject:getProject() local stats = project:getEngineRevisionStats() local goodPerformance = stats.performance > review.lowPerformanceRemark table.insert(remarksTable, goodPerformance) if goodPerformance then remarksTable.weight = 10 else remarksTable.weight = 20 end end, pickText = function(self, reviewObject, remarksTable) if remarksTable[1] == false then -- since there is only 1 bool in the table, if the first is false that means the performance was bad remarkList = self.remarksText.bad else remarkList = self.remarksText.good end return remarkList[math.random(1, #remarkList)] end })