perf: 优化了宽容度的调整范围
This commit is contained in:
parent
a131c552be
commit
8b8ca59542
|
@ -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 保存数据
|
||||
|
|
Loading…
Reference in New Issue