setting change
This commit is contained in:
@@ -15,6 +15,7 @@ namespace NBF
|
||||
{
|
||||
BtnPrev.onClick.Set(OnPrev);
|
||||
BtnNext.onClick.Set(OnNext);
|
||||
BtnControl.onClick.Set(OnControl);
|
||||
Slider.onChanged.Set(OnSliderChanged);
|
||||
ComboBox.onChanged.Set(OnComboBoxChanged);
|
||||
}
|
||||
@@ -163,7 +164,12 @@ namespace NBF
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateValueText()
|
||||
public void OnControl()
|
||||
{
|
||||
SettingWaitInputPanel.Show(this);
|
||||
}
|
||||
|
||||
public void UpdateValueText()
|
||||
{
|
||||
Pages.visible = false;
|
||||
if (Option is RangeOption range)
|
||||
@@ -183,6 +189,17 @@ namespace NBF
|
||||
|
||||
Pages.SetCurrent(multiOption.GetValue());
|
||||
}
|
||||
else if (Option is KeyBoardOption keyBoardOption)
|
||||
{
|
||||
UpdateControlInfo();
|
||||
}
|
||||
}
|
||||
|
||||
private void UpdateControlInfo()
|
||||
{
|
||||
// BtnControl
|
||||
if (Option is not KeyBoardOption keyBoardOption) return;
|
||||
BtnControl.SetData(keyBoardOption.InputAction.name, keyBoardOption.Name, InputManager.InputMapPlayer);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user