public override bool CreateConfigurationMenu(ExtensionParameter extensionParameter, ref Dictionary <String, Object> Parameters) { ImGui.TextDisabled("Condition Info"); ImGuiExtension.ToolTip("This condition is used to determine if we can use a specific flask.\nIt will ensure that health/hybrid/mana potions are not used when we are at full health/mana.\nThis will also ensure that we do not use up reserved uses."); base.CreateConfigurationMenu(extensionParameter, ref Parameters); FlaskIndex = ImGuiExtension.IntSlider("Flask Index", FlaskIndex, 1, 5); Parameters[flaskIndexString] = FlaskIndex.ToString(); ReservedUses = ImGuiExtension.IntSlider("Reserved Uses", ReservedUses, 0, 5); Parameters[flaskIndexString] = ReservedUses.ToString(); return(true); }
public override string GetDisplayName(bool isAddingNew) { string displayName = "Can Use Flask"; if (!isAddingNew) { displayName += " ["; displayName += ("FlaskIndex=" + FlaskIndex.ToString()); displayName += (",Reserved=" + ReservedUses.ToString()); displayName += "]"; } return(displayName); }