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

Autocomplete behavior functions on object in expressions #5534

Merged
merged 6 commits into from
Aug 3, 2023

Conversation

D8H
Copy link
Collaborator

@D8H D8H commented Aug 2, 2023

For groups, it only gives expression autocompletion for behaviors that are attached on every objects.

Changes

  • Autocompletion on expressions with an object gives behavior functions.
    image
  • Expression autocompletion shows behavior icons.
    image

@D8H D8H marked this pull request as ready for review August 2, 2023 16:52
@D8H D8H requested a review from 4ian as a code owner August 2, 2023 16:52
const gd::ObjectsContainer &layout,
const gd::String &objectOrGroupName,
const gd::String &behaviorName,
bool searchInGroups = true);
/**
* \brief Get a type from a behavior name
* @return Type of the behavior.
Copy link
Owner

Choose a reason for hiding this comment

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

Do you think we should deprecate and remove usage of GetTypeOfBehavior (not necessarily in this PR)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, at some point, there is a TODO on one of the GetTypeOfBehavior call asking for something like GetTypeOfBehaviorInObjectOrGroup.

Core/GDCore/Project/Layout.cpp Outdated Show resolved Hide resolved
@D8H D8H merged commit 2d613e7 into master Aug 3, 2023
5 checks passed
@D8H D8H deleted the behavior-exp-autcompletion branch August 3, 2023 08:59
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