From 8eaf174a88341f2c8abb32e7fa3e2e383c407a85 Mon Sep 17 00:00:00 2001 From: Yuval Tassa Date: Fri, 29 May 2026 06:30:03 -0700 Subject: [PATCH] Change "Num threads" UI element to a slider. PiperOrigin-RevId: 923378753 Change-Id: Ie5f53faf6ad90e0e1a1148f004b1867a57e6fb5e --- simulate/simulate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simulate/simulate.h b/simulate/simulate.h index 367d95a3..acb218b5 100644 --- a/simulate/simulate.h +++ b/simulate/simulate.h @@ -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"},