Jump to content

<RIGHT> in RichText


Narrnika

Recommended Posts

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);

 

Link to comment
Share on other sites

  • 1 month later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...