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

Run in viewport #344

Merged
merged 9 commits into from
Jan 20, 2022
Merged

Run in viewport #344

merged 9 commits into from
Jan 20, 2022

Conversation

bitwes
Copy link
Owner

@bitwes bitwes commented Jan 20, 2022

Add "Use Viewport" option which causes GUT to add GutTest instances to the viewport instead of itself. This means all calls to add_child in a test will be added in the viewport instead of on top of GUT. This fixes issue #121.

Adds additional options related to "Use Viewport"

  • resolution: The resolution and window size that the GUT window uses. This defaults to the project settings. This does not affect the viewport size. The viewport size will use the project settings unless it is set. When the viewport is smaller than the resolution it will be right justified.
  • viewport size: The size of the viewport. This defaults to the project settings. When this is smaller than the resolution it will be right justified.
  • Gut on Top: Toggles whether the GUT Runner will be above or behind the viewport.
  • Viewport Background Color: You can set a background color for the viewport. The default is transparent.

@bitwes bitwes merged commit d6dc866 into master Jan 20, 2022
@bitwes bitwes deleted the run_in_viewport branch January 20, 2022 19:48
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.

1 participant