Interface
Interface blocks enable creation of user interfaces and interactive elements in your simulation.
Overview
Interface blocks allow you to create interactive controls, display data, and manage user interactions in your StarLogo Nova simulations. These blocks are essential for building engaging, user-controlled simulations with buttons, sliders, graphs, and data displays.
Block Categories
Button Controls
- When Pushed - Executes code when a button is pushed
- While Toggled - Executes code repeatedly while a toggle button is on
- Toggle To For - Toggles a button state for a specified duration
Element Visibility
Data Display
- Set Data Box To - Sets the value displayed in a data box
- Data Box - Gets the value from a data box
- Set Label To - Sets the text displayed in a label
- Label - Gets the text from a label
Input Controls
- Slider Value - Gets the current value of a slider
Data Visualization
- Add Data To Line Graph - Adds a data point to a line graph
- Clear Line Graph - Clears all data from a line graph
Simulation Control
- Engine Tick Rate - Gets or sets the simulation engine tick rate