Skip to content

Add commandline options to the testbed_* examples to choose the starting scene #22218

Description

@ickshonpe

What problem does this solve or what need does it fill?

The three testbed_* examples, testbed_2d, testbed_3d, and testbed_ui, each consist of a number of scenes you cycle through by pressing the space key. This is annoying if you are using just one specific scene to test the thing you are working on and you have to cycle through to find the scene you want. Particularly with testbed_ui, which has a large number of scenes.

What solution would you like?

A commandline option that lets you choose the starting scene, i.e.:

cargo run --example testbed_ui -- RadialGradients

which would start the testbed_ui example displaying Scene::RadialGradients.

This should be trivial to implement using argh.

What alternative(s) have you considered?

There could be a menu that allows you to choose the scene, but it seems less convenient for developers than a commandline option.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-ExamplesAn addition or correction to our examplesC-FeatureA new feature, making something new possibleC-TestingA change that impacts how we test Bevy or how users test their appsD-TrivialNice and easy! A great choice to get started with BevyS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions