WeaselGames / godot_luaAPI

Godot LuaAPI
https://luaapi.weaselgames.info
Other
371 stars 28 forks source link

Why does this not display the captured bug? #86

Closed Oolks closed 1 year ago

Oolks commented 1 year ago
onready var OutputText = get_node("PlayUI/Output/Outputdit/output").text
onready var lua = Lua.new()
func luaCallBack(err):
    print(err)
    OutputText += err + "\n"

Why does it not display the error but instead prints it?

Oolks commented 1 year ago

Just saw. Was doing it wrong.

Oolks commented 1 year ago

Wait, is it possible to also display information from such as:

print("hi")
Trey2k commented 1 year ago

Wait, is it possible to also display information from such as:

print("hi")

You can expose your own print function of the same name and it will override the default one.

Oolks commented 1 year ago

Wait, is it possible to also display information from such as:

print("hi")

You can expose your own print function of the same name and it will override the default one.

Damn thats amazing! Thanks for letting me know. Do you have discord? Where I could ask some more questions.

Trey2k commented 1 year ago

Damn thats amazing! Thanks for letting me know. Do you have discord? Where I could ask some more questions.

I do have a discord, https://discord.gg/vGazqdQZ7p