Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:16:46 +09:30
commit 78abcd79dd
20 changed files with 1000 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
public class XUiC_OptionsControlsCLS : XUiC_OptionsControls
{
public override bool GetBindingValue(ref string _value, string _bindingName)
{
if (base.GetBindingValue(ref _value, _bindingName))
{
return true;
}
if (!string.IsNullOrEmpty(_bindingName) && _bindingName.StartsWith("keybindingEntryCount"))
{
if (CustomPlayerActionManager.arr_row_counts_control == null)
{
ReversePatches.InitPlayerActionList(this);
}
int index = int.Parse(_bindingName.Substring(_bindingName.Length - 1));
_value = CustomPlayerActionManager.arr_row_counts_control[index].ToString();
return true;
}
return false;
}
}