Skip to content

Commit

Permalink
Fixed incorrect or missing XML comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ddakebono committed Sep 8, 2024
1 parent 0d804ee commit 5b724a9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions UIObjects/Category.cs
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ public SliderFloat AddMelonSlider(MelonPreferences_Entry<float> entry, float min
/// </summary>
/// <param name="entry">MelonPreferences_Entry to use for creating this button</param>
/// <param name="buttonIcon">Icon for the button</param>
/// <param name="buttonTooltip">Tooltip to be displayed when hovering on the button</param>
/// <param name="buttonStyle">Sets the button style, this cannot be changed after creation!</param>
/// <returns>Preconfigured ToggleButton with action to open the Keyboard for this MelonPref</returns>
public Button AddMelonStringInput(MelonPreferences_Entry<string> entry, string buttonIcon = "", ButtonStyle buttonStyle = ButtonStyle.TextOnly)
{
Expand All @@ -381,7 +381,7 @@ public Button AddMelonStringInput(MelonPreferences_Entry<string> entry, string b
/// </summary>
/// <param name="entry">MelonPreferences_Entry to use for creating this button</param>
/// <param name="buttonIcon">Icon for the button</param>
/// <param name="buttonTooltip">Tooltip to be displayed when hovering on the button</param>
/// <param name="buttonStyle">Sets the button style, this cannot be changed after creation!</param>
/// <returns>Preconfigured Button with action to open NumberInput for this MelonPref</returns>
public Button AddMelonNumberInput(MelonPreferences_Entry<float> entry, string buttonIcon = "", ButtonStyle buttonStyle = ButtonStyle.TextOnly)
{
Expand Down
5 changes: 5 additions & 0 deletions UIUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/// <summary>
/// Get stream from an EmbeddedResource with a given name
/// </summary>
/// <param name="iconName"></param>
/// <returns></returns>
public static Stream GetIconStream(string iconName)
{
Assembly assembly = Assembly.GetExecutingAssembly();
Expand Down

0 comments on commit 5b724a9

Please sign in to comment.