Repository: 4ian/GDevelop
File: newIDE/app/src/EventsBasedObjectEditor/index.js (JavaScript)

Code before:
          onChange();
        }}
      />
      <Checkbox
        label={<Trans>Expand inner area with parent</Trans>}
        checked={eventsBasedObject.isInnerAreaFollowingParentSize()}
        onCheck={(e, checked) => {
          eventsBasedObject.markAsInnerAreaFollowingParentSize(checked);
          onChange();
          onEventsBasedObjectChildrenEdited();
        }}
      />
      {isDev && (
        <Checkbox
          label={<Trans>Use legacy renderer</Trans>}
          checked={eventsBasedObject.isUsingLegacyInstancesRenderer()}
          onCheck={(e, checked) => {
            eventsBasedObject.makAsUsingLegacyInstancesRenderer(checked);
            onChange();
            onEventsBasedObjectChildrenEdited();
          }}
        />
      )}
      <Checkbox
        label={<Trans>Private</Trans>}
        checked={eventsBasedObject.isPrivate()}
        onCheck={(e, checked) => {
          eventsBasedObject.setPrivate(checked);
          onChange();
          onEventsBasedObjectChildrenEdited();
        }}
      />
      <Line noMargin justifyContent="center">
        <RaisedButton
          label={<Trans>Open visual editor for the object</Trans>}
          primary
          onClick={onOpenCustomObjectEditor}
        />
      </Line>
      <Line noMargin>
        <HelpButton
          key="help"
          helpPagePath="/objects/custom-objects-prefab-template"
        />
      </Line>
    </ColumnStackLayout>
  );
}


Review comment (suggestion):
```suggestion
        label={<Trans>Private (can only be used inside the extension)</Trans>}
```

Code after:
          eventsBasedObject.markAsTextContainer(checked);
          onChange();
        }}
      />
      <Checkbox
        label={<Trans>Expand inner area with parent</Trans>}
        checked={eventsBasedObject.isInnerAreaFollowingParentSize()}
        onCheck={(e, checked) => {
          eventsBasedObject.markAsInnerAreaFollowingParentSize(checked);
          onChange();
          onEventsBasedObjectChildrenEdited();
        }}
      />
      {isDev && (
        <Checkbox
          label={<Trans>Use legacy renderer</Trans>}
          checked={eventsBasedObject.isUsingLegacyInstancesRenderer()}
          onCheck={(e, checked) => {
            eventsBasedObject.makAsUsingLegacyInstancesRenderer(checked);
            onChange();
            onEventsBasedObjectChildrenEdited();
          }}
        />
      )}
      <Checkbox
        label={<Trans>Private</Trans>}
        checked={eventsBasedObject.isPrivate()}
        onCheck={(e, checked) => {
          eventsBasedObject.setPrivate(checked);
          onChange();
          onEventsBasedObjectChildrenEdited();
        }}
        tooltipOrHelperText={
          eventsBasedObject.isPrivate() ? (
            <Trans>
              This object won't be visible in the scene and events editors.
            </Trans>
          ) : (
            <Trans>
              This object will be visible in the scene and events editors.
            </Trans>
          )
        }
      />
      <Line noMargin justifyContent="center">
        <RaisedButton
          label={<Trans>Open visual editor for the object</Trans>}
          primary
          onClick={onOpenCustomObjectEditor}
        />
      </Line>