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

List Control::has_point as a virtual method #8023

Merged
merged 1 commit into from Mar 18, 2017
Merged

List Control::has_point as a virtual method #8023

merged 1 commit into from Mar 18, 2017

Conversation

taylorhansen
Copy link
Contributor

According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h.

classes.xml was updated to also list this method in the Control class.

@@ -2514,6 +2514,8 @@ void Control::_bind_methods() {
ADD_SIGNAL(MethodInfo("size_flags_changed"));
ADD_SIGNAL(MethodInfo("minimum_size_changed"));
ADD_SIGNAL(MethodInfo("modal_closed"));

BIND_VMETHOD(MethodInfo("has_point"));
Copy link
Contributor

Choose a reason for hiding this comment

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

I think you forgot to add the argument here (might be wrong though)

According to Issue #8018, a BIND_VMETHOD macro wasn't present in scene/gui/control.cpp, while it was declared to be a virtual method in scene/gui/control.h.

classes.xml was updated to also list this method in Control.
@taylorhansen
Copy link
Contributor Author

I think I did this right. Had to do a bit of digging to find PropertyInfo until I realized it was right above MethodInfo.

Copy link
Contributor

@bojidar-bg bojidar-bg left a comment

Choose a reason for hiding this comment

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

Ok, I guess it is good now 😃

@akien-mga akien-mga added this to the 3.0 milestone Mar 18, 2017
@akien-mga akien-mga merged commit 3cf4103 into godotengine:master Mar 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants