多语言设置界面逻辑

This commit is contained in:
bob
2025-06-12 16:18:55 +08:00
parent 15eaa0e666
commit 07e7715be8
20 changed files with 212 additions and 111 deletions

View File

@@ -135,6 +135,7 @@ namespace NBF
private void UpdateValueText()
{
Pages.visible = false;
if (Option is RangeOption range)
{
Slider.value = range.GetValue();
@@ -143,6 +144,14 @@ namespace NBF
else if (Option is IMultiOption multiOption)
{
TextInfo.text = multiOption.GetDisplayString();
Pages.visible = true;
var count = multiOption.GetOptionNames().Count;
if (Pages.TotalPages != count)
{
Pages.SetTotal(count);
}
Pages.SetCurrent(multiOption.GetValue());
}
}
}