Closed tavurth closed 2 years ago
This is because the node is hidden before adding text. See https://github.com/AnidemDex/Godot-DialogPlugin/issues/52#issuecomment-997280411 and https://github.com/AnidemDex/Godot-DialogPlugin/issues/51
If you don't need the autoscroll feature, you can disable it, and that'll hide this error.
Hi @AnidemDex, currently I'm working around this by adding a node to my tree and it seems to be ok, nice scrolling feature 👍
The node is hidden? Do you mean the parent node? This script was taken from the documentation directly.
@tavurth if DialogManager or DialogNode is hidden, the autoscroll will fail because it'll not have a correct size to know when and from what size it should start scrolling (since hidding nodes set its size to 0).
If you managed to solve the issue, please, edit the issue to add your workaround
Ok I'm still playing around a little bit, when I find a solid solution I will edit the post
@tavurth I wasn't able to replicate the issue. Can you please add more information about your scene? Maybe you're adding it as child of a Node2D?
I made a little example with the code.
Yep that must be it, I was using as a child of Node2D
.
Finally I realised this plugin is a bit too complex for my use case, so I wrote a quick script to do the same thing with sound effects.
https://gist.github.com/tavurth/65234316a2f6c980507515de2eec67e9
Welp, glad that you managed to make a solution.
Hope that, in the future, you can give Textalog another chance, I know that it needs more docs/tutorials so I wish in the future I was able to make them
OS
Mac OSX
Godot Version
3.4.1
Plugin Version
1.0 (lastest)
Issue description
Black box displays but no text is present and the error is shown in the console.
Steps to reproduce
Workaround
Perhaps adding the dialog to the tree directly?
Finally I gave up as it's a bit confusing to use so far. I'll write a dialog system myself 😅