real-ezTheDev / GodotEzDialoguePlugin

MIT License
109 stars 10 forks source link

Choice options stay after being selected #6

Closed ZapPlays closed 5 months ago

ZapPlays commented 6 months ago

From what I can tell, my code is exactly the same as the one presented in the tutorial, yet the choice buttons persist after already being selected. I'm still new to Godot and coding in general, so I'm unsure how to go about solving this. Any and all help would be greatly appreciated.

Screenshot (65) Screenshot (66) Screenshot (67) Screenshot (68) Screenshot (69) Screenshot (70)

ZapPlays commented 6 months ago

Just to make sure, I started a new project with just the EzDialogue addon and was still recieving the same results.

real-ezTheDev commented 6 months ago

So sorry it's taking me long to look. I just am not around my computer throughput this trip, so it is taking me a while. I'll be able to take a look in next 2 days!

ZapPlays commented 6 months ago

All good. No rush 👍

On Fri, Dec 15, 2023, 6:13 PM ezTheDev @.***> wrote:

So sorry it's taking me long to look. I just am not around my computer throughput this trip, so it is taking me a while. I'll be able to take a look in next 2 days!

— Reply to this email directly, view it on GitHub https://github.com/real-ezTheDev/GodotEzDialoguePlugin/issues/6#issuecomment-1858682028, or unsubscribe https://github.com/notifications/unsubscribe-auth/BDXDOIAH24OIKUKZ4C5QHODYJT7V3AVCNFSM6AAAAABAPF6ZD2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQNJYGY4DEMBSHA . You are receiving this because you authored the thread.Message ID: @.***>

real-ezTheDev commented 6 months ago

hey! So in your DialogueBox.gd function called "clear_dialogue_box" you have a line that says: $VBoxContainer/Text.remove_child(choice)

  1. it should actully be $VBoxContainer.remove_child(choice) instead of "$VBoxContainer/Text"
  2. Actually there should be additional line which i forgot so in total you should have something like.
$VBoxContainer.remove_child(choice)
choice.queue_free()
ZapPlays commented 6 months ago

hey! So in your DialogueBox.gd function called "clear_dialogue_box" you have a line that says: $VBoxContainer/Text.remove_child(choice)

  1. it should actully be $VBoxContainer.remove_child(choice) instead of "$VBoxContainer/Text"
  2. Actually there should be additional line which i forgot so in total you should have something like.
$VBoxContainer.remove_child(choice)
choice.queue_free()

YEP! That worked! Simple coding mistake on my part. Thanks for the help, I really appreciate it.