Jump to content
Narrnika

<RIGHT> in RichText

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

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...