Skip to content

Commit

Permalink
Update some comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
D8H committed Aug 3, 2023
1 parent 64c96ee commit 9dd27e9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion newIDE/app/src/EventsSheet/ParameterFields/ObjectField.js
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default React.forwardRef<ParameterFieldProps, ParameterFieldInterface>(
onRequestClose={props.onRequestClose}
onApply={props.onApply}
// Some instructions apply to all objects BUT not some objects
// lacking a specific capability usually offered by all objects.
// lacking a specific capability offered by a default behavior.
allowedObjectType={allowedObjectType}
behaviorConstraints={behaviorConstraints}
globalObjectsContainer={props.globalObjectsContainer}
Expand Down
4 changes: 4 additions & 0 deletions newIDE/app/src/ObjectsList/ObjectSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ type Props = {|

/** If specified, only this object type should be allowed to be selected. */
allowedObjectType?: ?string,
/**
* If specified, an object without these behaviors won't be selectable.
* Note that groups with at least 1 incompatible object won't be shown.
*/
behaviorConstraints?: Array<{ behaviorName: string, behaviorType: string }>,

noGroups?: boolean,
Expand Down

0 comments on commit 9dd27e9

Please sign in to comment.