From 5b724a9d6a19e35fd86c36f89403d1238a28eb67 Mon Sep 17 00:00:00 2001 From: ddakebono Date: Sun, 8 Sep 2024 01:12:39 -0500 Subject: [PATCH] Fixed incorrect or missing XML comments --- UIObjects/Category.cs | 4 ++-- UIUtils.cs | 5 +++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/UIObjects/Category.cs b/UIObjects/Category.cs index 1180c05..70f2ec2 100644 --- a/UIObjects/Category.cs +++ b/UIObjects/Category.cs @@ -367,7 +367,7 @@ public SliderFloat AddMelonSlider(MelonPreferences_Entry entry, float min /// /// MelonPreferences_Entry to use for creating this button /// Icon for the button - /// Tooltip to be displayed when hovering on the button + /// Sets the button style, this cannot be changed after creation! /// Preconfigured ToggleButton with action to open the Keyboard for this MelonPref public Button AddMelonStringInput(MelonPreferences_Entry entry, string buttonIcon = "", ButtonStyle buttonStyle = ButtonStyle.TextOnly) { @@ -381,7 +381,7 @@ public Button AddMelonStringInput(MelonPreferences_Entry entry, string b /// /// MelonPreferences_Entry to use for creating this button /// Icon for the button - /// Tooltip to be displayed when hovering on the button + /// Sets the button style, this cannot be changed after creation! /// Preconfigured Button with action to open NumberInput for this MelonPref public Button AddMelonNumberInput(MelonPreferences_Entry entry, string buttonIcon = "", ButtonStyle buttonStyle = ButtonStyle.TextOnly) { diff --git a/UIUtils.cs b/UIUtils.cs index 3bddc16..6891f04 100644 --- a/UIUtils.cs +++ b/UIUtils.cs @@ -42,6 +42,11 @@ public static string GetCleanString(string input) return input == null ? null : Regex.Replace(Regex.Replace(input, "<.*?>", string.Empty), @"[^0-9a-zA-Z_]+", string.Empty); } + /// + /// Get stream from an EmbeddedResource with a given name + /// + /// + /// public static Stream GetIconStream(string iconName) { Assembly assembly = Assembly.GetExecutingAssembly();