From 8b8ca59542c9bd3d7a5fd6659347b1ab660f4d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=9F=A5=E4=B8=80=E4=B8=80?= <1204244136@qq.com> Date: Sun, 1 Jun 2025 22:28:45 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BC=98=E5=8C=96=E4=BA=86=E5=AE=BD?= =?UTF-8?q?=E5=AE=B9=E5=BA=A6=E7=9A=84=E8=B0=83=E6=95=B4=E8=8C=83=E5=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- DoroHelper.ahk | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/DoroHelper.ahk b/DoroHelper.ahk index bcb1d2e..40407de 100644 --- a/DoroHelper.ahk +++ b/DoroHelper.ahk @@ -390,10 +390,11 @@ LoadSettings() { ;tag 改变滑条数据 ChangeSlider(settingName, CtrlObj) { global g_numeric_settings, toleranceDisplayEditControl - local actualValue := CtrlObj.Value / 10.0 + ; 将滑动条的整数值除以100,以获得1.00到2.00之间的浮点数 + local actualValue := CtrlObj.Value / 100.0 g_numeric_settings[settingName] := actualValue - ; 使用 Format 函数将浮点数格式化为小数点后一位 - local formattedValue := Format("{:.1f}", actualValue) + ; 使用 Format 函数将浮点数格式化为小数点后两位 + local formattedValue := Format("{:.2f}", actualValue) toleranceDisplayEditControl.Value := formattedValue } ;tag 保存数据