Skip to content

Simulator: add Instructions button to settings panel. - #356

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:simulator_instructions
Jun 9, 2026
Merged

Simulator: add Instructions button to settings panel.#356
dli7319 merged 1 commit into
google:mainfrom
dli7319:simulator_instructions

Conversation

@dli7319

@dli7319 dli7319 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator
  • Added ShowSimulatorInstructionsEvent class and exported it.
  • Enabled instructions by default and added showAutomatically option.
  • Added instructionsEnabled property to ISimulatorSettingsPanelElement.
  • Render 'View Simulator Instructions' button conditionally in settings panel.
  • Handled instructions event and showAutomatically option in SimulatorInterface.
  • Removed manual instructions.enabled overrides from samples/templates.
  • Ensured settings panel closes when showing instructions.
xrblocks_simulator_instructions_button_20260608.mp4

- Added ShowSimulatorInstructionsEvent class and exported it.
- Enabled instructions by default and added showAutomatically option.
- Added instructionsEnabled property to ISimulatorSettingsPanelElement.
- Render 'View Simulator Instructions' button conditionally in settings panel.
- Handled instructions event and showAutomatically option in SimulatorInterface.
- Removed manual instructions.enabled overrides from samples/templates.
- Ensured settings panel closes when showing instructions.
@dli7319
dli7319 requested a review from ruofeidu June 9, 2026 00:16
@ruofeidu

ruofeidu commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

LGTM.

nit: the verb "View" in not necessary :)

@dli7319

dli7319 commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator Author

I like having buttons start with a verb. Even github does it:
Screenshot 2026-06-08 at 5 19 09 PM

@dli7319
dli7319 merged commit 2282bd4 into google:main Jun 9, 2026
8 checks passed
@dli7319
dli7319 deleted the simulator_instructions branch June 9, 2026 00:19
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.

2 participants