Improve the ordering logic for input handlers in input config.

This commit is contained in:
2023-05-09 19:02:43 +08:00
parent cc8e1f7ce4
commit f2aea2bd40

View File

@@ -143,6 +143,10 @@ namespace Cryville.Crtr.Config {
}
else flag = true;
btn.interactable = flag;
obj.transform.SetSiblingIndex(flag ? 1 : m_deviceList.childCount - 1);
}
else {
obj.transform.SetSiblingIndex(0);
}
btn.onClick.AddListener(() => {
CloseDialog(src);