@@ -25,11 +25,12 @@ public class KeybindSetting : SettingBase, IWrapper<SSKeybindSetting>
2525 /// <param name="label"><inheritdoc cref="SettingBase.Label"/></param>
2626 /// <param name="suggested"><inheritdoc cref="KeyCode"/></param>
2727 /// <param name="preventInteractionOnGUI"><inheritdoc cref="PreventInteractionOnGUI"/></param>
28+ /// <param name="allowSpectatorTrigger"><inheritdoc cref="AllowSpectatorTrigger"/></param>
2829 /// <param name="hintDescription"><inheritdoc cref="SettingBase.HintDescription"/></param>
2930 /// <param name="header"><inheritdoc cref="SettingBase.Header"/></param>
3031 /// <param name="onChanged"><inheritdoc cref="SettingBase.OnChanged"/></param>
31- public KeybindSetting ( int id , string label , KeyCode suggested , bool preventInteractionOnGUI = false , string hintDescription = "" , HeaderSetting header = null , Action < Player , SettingBase > onChanged = null )
32- : base ( new SSKeybindSetting ( id , label , suggested , preventInteractionOnGUI , hintDescription ) , header , onChanged )
32+ public KeybindSetting ( int id , string label , KeyCode suggested , bool preventInteractionOnGUI = false , bool allowSpectatorTrigger = false , string hintDescription = "" , HeaderSetting header = null , Action < Player , SettingBase > onChanged = null )
33+ : base ( new SSKeybindSetting ( id , label , suggested , preventInteractionOnGUI , allowSpectatorTrigger , hintDescription ) , header , onChanged )
3334 {
3435 Base = ( SSKeybindSetting ) base . Base ;
3536 }
@@ -61,6 +62,15 @@ public bool PreventInteractionOnGUI
6162 set => Base . PreventInteractionOnGUI = value ;
6263 }
6364
65+ /// <summary>
66+ /// Gets or sets a value indicating whether the interaction is prevented in spectator roles.
67+ /// </summary>
68+ public bool AllowSpectatorTrigger
69+ {
70+ get => Base . AllowSpectatorTrigger ;
71+ set => Base . AllowSpectatorTrigger = value ;
72+ }
73+
6474 /// <summary>
6575 /// Gets or sets the assigned key.
6676 /// </summary>
0 commit comments