public override bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <String, Object> Parameters) { ImGui.TextDisabled("Condition Info"); ImGuiExtension.ToolTip("This condition will return true if the player has any of the selected ailments or a minimum of the specified corrupted blood stacks."); base.CreateConfigurationMenu(extensionParameter, ref Parameters); var buffList = GetEnumList <BuffEnums>().ToList(); var buffListSearch = buffList.Where(x => x.Contains(SearchString)).ToList(); HasBuffReady = ImGuiExtension.ComboBox("Buff List", HasBuffReady, buffListSearch); Parameters[SearchingBuff] = HasBuffReady.ToString(); SearchString = ImGuiExtension.InputText("Filter Buffs", SearchString, 32, InputTextFlags.AllowTabInput); Parameters[SearchStringString] = SearchString.ToString(); return(true); }
public override bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <String, Object> Parameters) { ImGui.TextDisabled("Condition Info"); ImGuiExtension.ToolTip("This condition will return true if the player has any of the selected ailments or a minimum of the specified corrupted blood stacks."); base.CreateConfigurationMenu(extensionParameter, ref Parameters); var kappa = GetEnumList <BuffEnums>().ToList(); var test = kappa.Where(x => x.Contains(SearchString)).ToList(); HasBuffReady = ImGuiExtension.ComboBox("Buff List", HasBuffReady, test); Parameters[SearchingBuff] = HasBuffReady.ToString(); SearchString = ImGuiExtension.InputText("Filter Buffs", SearchString, 32, InputTextFlags.AllowTabInput); Parameters[SearchStringString] = SearchString.ToString(); //HasBuff = ExtensionComponent.InitialiseParameterBoolean(HasBuffString, HasBuff, ref Parameters); // CorruptCount = ImGuiExtension.IntSlider("Corruption Count", CorruptCount, 0, 20); // Parameters[CorruptCountString] = CorruptCount.ToString(); return(true); }
public override bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <String, Object> Parameters) { ImGui.TextDisabled("Condition Info"); ImGuiExtension.ToolTipWithText("(?)", "This condition will return true if the player has any of the selected ailments or a minimum of the specified corrupted blood stacks."); base.CreateConfigurationMenu(extensionParameter, ref Parameters); var buffList = GetEnumList <BuffEnums>().ToList(); var buffListSearch = buffList.Where(x => x.Contains(SearchString)).ToList(); HasBuffReady = ImGuiExtension.ComboBox("Buff List", HasBuffReady, buffListSearch); Parameters[SearchingBuff] = HasBuffReady.ToString(); SearchString = ImGuiExtension.InputText("Filter Buffs", SearchString, 32, ImGuiInputTextFlags.AllowTabInput); Parameters[SearchStringString] = SearchString.ToString(); RemainingDuration = ImGuiExtension.IntSlider("Remaining Duration", RemainingDuration, 0, 4000); ImGuiExtension.ToolTipWithText("(?)", "Includes buffs with duration longer than specified. Set to 0 to ignore duration."); Parameters[RemainingDurationString] = RemainingDuration.ToString(); MinimumCharges = ImGuiExtension.IntSlider("Minimum Charges", MinimumCharges, 0, 20); ImGuiExtension.ToolTipWithText("(?)", "Includes buffs with charges greater or equal to specified value. Set to 0 to ignore charges."); Parameters[MinimumChargesString] = MinimumCharges.ToString(); return(true); }