AnidemDex / Godot-DialogPlugin

🗨️ A Dialog Node for Godot Engine
MIT License
213 stars 11 forks source link

Bad size when adding DialogNode #51

Closed CyberRedX closed 3 years ago

CyberRedX commented 3 years ago

OS

Windows 10 x64

Godot Version

3.3.3

Plugin Version

1.0 (lastest)

Issue description

image My code:

func _ready():
    # Creates a new DialogNode instance
    var dialog_node = DialogNode.instance()
    # Add the node as child
    add_child(dialog_node)
    # Shows the dialog node
    dialog_node.show()
    # Show an string. BBCode works too!
    dialog_node.show_text("Hello world")`

Steps to reproduce

1 create an empty project 2 add textalog as plugin 3 new scene 4 add code 5 run

Workaround

No response

Bug squad: Message edited to add a proper code format

AnidemDex commented 3 years ago

Hey @CyberRedX did you tried to add DialogNode as child of a Node2D?

If that was the case, you need to:

Control and Node2D nodes are not compatible types, and mixing them usually leads this kinds of problems

MMLich commented 3 years ago

I had the exact same issue. Your solution did work. I think this should be mentioned in the readme. Thank you!

CyberRedX commented 3 years ago

After adding this to canvas layer it's working correctly, thanks! The plug-in's awesome! And yeah, I too think this should be mentioned in the readme

AnidemDex commented 3 years ago

@CyberRedX Please close this issue if its solved. If you like, can open an issue proposal to add this information in the readme (or leave it as is, I'll add it later in the new release)