Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix runtime error #99

Closed
wants to merge 1 commit into from
Closed

Conversation

fuzzyTew
Copy link
Contributor

@fuzzyTew fuzzyTew commented Jan 2, 2019

This just resolves some errors that are output on stdout when the game runs.

@@ -171,7 +171,7 @@ func reload_labels():


func reload_button(button, translation, label_node_name="Label"):
if button:
if button and button.has_node(label_node_name):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Interesting, this error would indicate we still have old style button+label code somewhere - new buttons have integrated labels. It probably should apply reload_label() directly to button on else.

@fuzzyTew
Copy link
Contributor Author

fuzzyTew commented Jan 8, 2019

I haven't found the time to add czlowiekimadlo's suggestion. Anybody else who stumbles across this is welcome to finish it.

czlowiekimadlo pushed a commit that referenced this pull request Jan 10, 2019
@czlowiekimadlo
Copy link
Collaborator

Since the change was small I have ported it manually with suggested change. Thank you very much for help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants