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

Inherit parent robot display #1670

Merged
merged 1 commit into from
Dec 3, 2023
Merged

Inherit parent robot display #1670

merged 1 commit into from
Dec 3, 2023

Conversation

kostmo
Copy link
Member

@kostmo kostmo commented Dec 2, 2023

Closes #1663.

The status quo is that built-children of system robots are visible, even if the system robot is invisible. So we preserve that behavior for now, with the potential to override it at some future point. We don't yet have a definite need to make children of system robots invisible, but this PR does at least provide a mechanism to set the foreground and background of child robots (as a stopgap until #1230).

Tested with:

scripts/play.sh -i scenarios/Challenges/Ranching/beekeeping.yaml --autoplay
Before After
Screenshot from 2023-12-01 17-31-00 Screenshot from 2023-12-01 17-35-19

@kostmo kostmo added the T-UI Involves the user interface. label Dec 2, 2023
@kostmo kostmo marked this pull request as ready for review December 2, 2023 01:39
@kostmo kostmo requested a review from byorgey December 2, 2023 01:39
@kostmo kostmo added the merge me Trigger the merge process of the Pull request. label Dec 3, 2023
@mergify mergify bot merged commit 536f1dc into main Dec 3, 2023
9 checks passed
@mergify mergify bot deleted the feature/inherit-display branch December 3, 2023 22:04
byorgey added a commit that referenced this pull request Jan 9, 2024
Fixes #1693.  It's not necessarily appropriate to copy the entire
`Display` record.  So instead, we explicitly list the fields that
should be inherited.  For now, it is only `displayAttr`, but we could
add `invisible` in the future (see #1670, #1663).
mergify bot pushed a commit that referenced this pull request Jan 14, 2024
Fixes #1693.  It's not necessarily appropriate to copy the entire `Display` record.  So instead, we explicitly list the fields that should be inherited.  For now, it is only `displayAttr`, but we could add `invisible` in the future (see #1670, #1663).

Tested to make sure behavior is preserved with:
```
scripts/play.sh -i scenarios/Challenges/Ranching/beekeeping.yaml --autoplay
```
@kostmo kostmo mentioned this pull request May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge me Trigger the merge process of the Pull request. T-UI Involves the user interface.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Built robots should inherit display properties from parent
2 participants