public virtual void Index() { if (DynamicActions.ContainsKey("index")) { DynamicActions["index"].Execute(Context, this, ControllerContext); } }
public static void Postfix(DynamicActions __result) { try { var adapter = new DynamicActionsAdapter(__result); SoundOnFocusAction = adapter.CreatePlayerAction("Toggle Focus Sound"); SoundOnFocusAction.AddDefaultBinding(Key.O); Logger.LogLine("Keybind added"); } catch (Exception e) { Logger.LogError(e); } }
public static void Postfix(DynamicActions __result) { if (ModSettings.NextColorKeyBinding.Active) { try { var adapter = new DynamicActionsAdapter(__result); SelectNextLineOfFireColor = adapter.CreatePlayerAction("Select Next Line of Fire Color"); SelectNextLineOfFireColor.AddDefaultBinding(ModSettings.NextColorKeyBinding.Keys); Logger.Debug("Keybind added"); } catch (Exception e) { Logger.Error(e); } } }