Change "Num threads" UI element to a slider.

PiperOrigin-RevId: 923378753
Change-Id: Ie5f53faf6ad90e0e1a1148f004b1867a57e6fb5e
This commit is contained in:
Yuval Tassa
2026-05-29 06:30:03 -07:00
committed by Copybara-Service
parent c7d340be4f
commit 8eaf174a88
+1 -1
View File
@@ -328,7 +328,7 @@ class Simulate {
const mjuiDef def_simulation[15] = {
{mjITEM_SECTION, "Simulation", mjPRESERVE, nullptr, "AS"},
{mjITEM_RADIO, "", 5, &this->run, "Pause\nRun"},
{mjITEM_EDITINT, "Num threads", 5, &this->nthread, "1"},
{mjITEM_SLIDERINT, "Num threads", 5, &this->nthread, "0 10"},
{mjITEM_BUTTON, "Reset", 2, nullptr, " #259"},
{mjITEM_BUTTON, "Reload", 5, nullptr, "CL"},
{mjITEM_BUTTON, "Align", 2, nullptr, "CA"},