Upload from upload_mods.ps1

This commit is contained in:
Nathaniel Cosford
2025-06-04 16:13:32 +09:30
commit 7345f42201
470 changed files with 51966 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
using InControl;
public class PlayerActionToggleFireMode : CustomPlayerActionVersionBase
{
public static PlayerActionToggleFireMode Instance { get; private set; }
public override ControllerActionType ControllerActionDisplay => ControllerActionType.OnFoot;
public PlayerAction Toggle;
public PlayerActionToggleFireMode()
{
Name = "ToggleFireMode";
Version = 1;
Instance = this;
Enabled = true;
var localActions = Platform.PlatformManager.NativePlatform.Input.PrimaryPlayer;
var permaActions = localActions.PermanentActions;
UserData = new PlayerActionData.ActionSetUserData(new PlayerActionsBase[] { localActions, permaActions });
localActions.AddUniConflict(this);
permaActions.AddUniConflict(this);
}
public override void CreateActions()
{
Toggle = CreatePlayerAction("ToggleFireMode");
Toggle.UserData = new PlayerActionData.ActionUserData("inpActToggleFireModeName", "inpActToggleFireModeDesc", PlayerActionData.GroupPlayerControl);
}
public override void CreateDefaultJoystickBindings()
{
}
public override void CreateDefaultKeyboardBindings()
{
Toggle.AddDefaultBinding(new Key[] { Key.Z });
}
}