11using MiraAPI . Hud ;
2+ using MiraAPI . Keybinds ;
23using MiraAPI . Utilities . Assets ;
34using NewMod . Roles . NeutralRoles ;
4- using Rewired ;
55using UnityEngine ;
66
77namespace NewMod . Buttons . Overload
@@ -47,7 +47,7 @@ public class OverloadButton : CustomActionButton
4747 /// Stores the default key assigned to the absorbed button's action.
4848 /// Mirrors the keybind of the original absorbed button.
4949 /// </summary>
50- public KeyboardKeyCode absorbedKeybind ;
50+ public MiraKeybind absorbedKeybind ;
5151
5252 /// <summary>
5353 /// The name displayed on the button.
@@ -67,7 +67,7 @@ public class OverloadButton : CustomActionButton
6767 /// <summary>
6868 /// Default keybind for Overload's Overload ability.
6969 /// </summary>
70- public override KeyboardKeyCode Defaultkeybind => absorbedKeybind ;
70+ public override MiraKeybind Keybind => absorbedKeybind ;
7171
7272 /// <summary>
7373 /// Determines how long the effect from clicking the button lasts. In this case, no duration is set.
@@ -96,7 +96,7 @@ public void Absorb(CustomActionButton target)
9696 absorbedCooldown = target . Cooldown ;
9797 absorbedMaxUses = target . MaxUses ;
9898 absorbedSprite = target . Sprite ;
99- absorbedKeybind = target . Defaultkeybind ;
99+ absorbedKeybind = target . Keybind ;
100100 absorbedOnClick = ( ) => target . GetType ( ) . GetMethod ( "OnClick" , System . Reflection . BindingFlags . NonPublic | System . Reflection . BindingFlags . Instance )
101101 ? . Invoke ( target , null ) ;
102102
0 commit comments