Narrnika Posted June 30, 2020 Share Posted June 30, 2020 Error trying to use <RIGHT>; from console.txt: function: render -- file: RichTextLayout.lua line # 407 ... LOG : General, 1593545810494> Object tried to call nil in render in RichTextLayout.lua: 404: if orient == "centre" then 405: ui:drawTextCentre(string.trim(v), x + self.width / 2 , y + self.marginTop + self.lineY[c], r, g, b,1, self.font) 406: elseif orient == "right" then 407: ui:drawTextLeft(string.trim(v), x + self.marginLeft + self.lineX[c], y + self.marginTop + self.lineY[c], r, g, b,1, self.font) 408: else 409: ui:drawText(string.trim(v), x + self.marginLeft + self.lineX[c], y + self.marginTop + self.lineY[c], r, g, b,1, self.font) 410: end but type(ui:drawTextLeft) == nil, likely need drawTextRight(). Probably analogous error will be in ISRichTextPanel.lua: 452: self:drawTextLeft( string.trim(v), self.lineX[c] + self.marginLeft, self.lineY[c] + self.marginTop, r, g, b,self.contentTransparency, self.font); Maris and Pandorea 1 1 Link to comment Share on other sites More sharing options...
Narrnika Posted August 6, 2020 Author Share Posted August 6, 2020 Ok, "ui:drawTextLeft" changed to "ui:drawTextRight". Left to correct the calculation of the X coordinate :-) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now