Jump to content
  • entries
    4
  • comments
    2
  • views
    4,079

Default Script Fixes


GorzenDev

1,237 views

 Share

There is a problem with the default TextArea.lua widget script.
Your game will crash when you click on an empty TextArea.

Fix:
look for the Function "Script:GetCaretCoord(caret)"
after:

local text = self.lines[self.currentline]--self.widget:GetText()

add:

if text == nil then return 0 end

 

 

More will be added when/if discovered...

 Share

0 Comments


Recommended Comments

There are no comments to display.

Guest
Add a comment...

×   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.

×
×
  • Create New...