阶段性完成

This commit is contained in:
SoulliesOfficial
2026-07-25 13:27:53 -04:00
parent de70870682
commit a34461d31f
121 changed files with 7022 additions and 4111 deletions

View File

@@ -17,10 +17,22 @@ namespace Ichni.UI
public TMP_Text keyText;
public GameObject waitingForInputCover;
public void SetUp(string title, string subtitle, string actionName, int bindingIndex)
private bool _isClickListenerRegistered;
/// <summary>
/// 初始化重绑定行为。标题和说明由 Prefab 上的 LocalizedTMPText 配置;
/// <paramref name="actionName"/> 仅用于定位 Input System Action不是本地化 Key。
/// </summary>
public void SetUp(string actionName, int bindingIndex)
{
base.SetUp(title, subtitle);
base.SetUp();
if (_isClickListenerRegistered)
{
return;
}
button.onClick.AddListener(() => StartRebinding(actionName, bindingIndex));
_isClickListenerRegistered = true;
}
// 开始重绑定流程
@@ -82,4 +94,4 @@ namespace Ichni.UI
}
}
}
}
}