多语言设置界面逻辑
This commit is contained in:
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user