Skip to content

Commit 250c543

Browse files
committed
added overload for UXMenu constructor
1 parent 25e3216 commit 250c543

2 files changed

Lines changed: 11 additions & 2 deletions

File tree

IPT.Common/Properties/AssemblyInfo.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,3 @@
3333
// [assembly: AssemblyVersion("1.0.*")]
3434
[assembly: AssemblyVersion("1.3.0.0")]
3535
[assembly: AssemblyFileVersion("1.3.0.0")]
36-

IPT.Common/UX/UXMenu.cs

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,23 @@ public class UXMenu : RAGENativeUI.UIMenu
77
{
88
private int maxItemWidth = 30;
99

10+
/// <summary>
11+
/// Initializes a new instance of the <see cref="UXMenu"/> class.
12+
/// </summary>
13+
/// <param name="title">The title of the UIMenu.</param>
14+
/// <param name="subtitle">The subtitle of the UIMenu.</param>
15+
public UXMenu(string title, string subtitle)
16+
: this(title, subtitle, false)
17+
{
18+
}
19+
1020
/// <summary>
1121
/// Initializes a new instance of the <see cref="UXMenu"/> class.
1222
/// </summary>
1323
/// <param name="title">The title of the UIMenu.</param>
1424
/// <param name="subtitle">The subtitle of the UIMenu.</param>
1525
/// <param name="isMouseDisabled">When true, the mouse will be disabled.</param>
16-
public UXMenu(string title, string subtitle, bool isMouseDisabled = false)
26+
public UXMenu(string title, string subtitle, bool isMouseDisabled)
1727
: base(title, subtitle)
1828
{
1929
if (isMouseDisabled)

0 commit comments

Comments
 (0)