Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NativeMenu constructor typo fix #171

Merged
merged 1 commit into from
Apr 4, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions LemonUI/Menus/NativeMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -857,35 +857,35 @@ public NativeMenu(string title) : this(title, string.Empty, string.Empty)
/// <summary>
/// Creates a new menu with the specified banner text and name.
/// </summary>
/// <param name="bqnnerText">The title of the menu.</param>
/// <param name="bannerText">The title of the menu.</param>
/// <param name="name">The name of this menu.</param>
public NativeMenu(string bqnnerText, string name) : this(bqnnerText, name, string.Empty)
public NativeMenu(string bannerText, string name) : this(bannerText, name, string.Empty)
{
}

/// <summary>
/// Creates a new menu with the specified banner text, name and description.
/// </summary>
/// <param name="bqnnerText">The title of the menu.</param>
/// <param name="bannerText">The title of the menu.</param>
/// <param name="name">The name of this menu.</param>
/// <param name="description">The description used for submenus.</param>
public NativeMenu(string bqnnerText, string name, string description) : this(bqnnerText, name, description, new ScaledTexture(PointF.Empty, new SizeF(0, 108), "commonmenu", "interaction_bgd"))
public NativeMenu(string bannerText, string name, string description) : this(bannerText, name, description, new ScaledTexture(PointF.Empty, new SizeF(0, 108), "commonmenu", "interaction_bgd"))
{
}

/// <summary>
/// Creates a new menu with the specified banner text, name, description and banner.
/// </summary>
/// <param name="bqnnerText">The title of the menu.</param>
/// <param name="bannerText">The title of the menu.</param>
/// <param name="name">The name of this menu.</param>
/// <param name="description">The description used for submenus.</param>
/// <param name="banner">The drawable to use as the banner.</param>
public NativeMenu(string bqnnerText, string name, string description, I2Dimensional banner)
public NativeMenu(string bannerText, string name, string description, I2Dimensional banner)
{
this.name = name;
Description = description;
bannerImage = banner;
BannerText = new ScaledText(PointF.Empty, bqnnerText, 1.02f, Font.HouseScript)
BannerText = new ScaledText(PointF.Empty, bannerText, 1.02f, Font.HouseScript)
{
Alignment = Alignment.Center
};
Expand Down
Loading