Skip to content

Commit

Permalink
C#/Lua UIMenu: Added BannerLess menu option.
Browse files Browse the repository at this point in the history
- Simply create a UIMenu with title = "", txd = "", txn = ""
  • Loading branch information
manups4e committed Nov 5, 2023
1 parent 4e812c7 commit 3824227
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,7 @@ public ItemFont DescriptionFont
/// <param name="title">Title that appears on the big banner.</param>
/// <param name="subtitle">Subtitle that appears in capital letters in a small black bar.</param>
/// <param name="glare">Add menu Glare scaleform?.</param>
public UIMenu(string title, string subtitle, bool glare = false, bool alternativeTitle = false, float fadingTime = 0.1f) : this(title, subtitle, new PointF(0, 0), "commonmenu", "interaction_bgd", glare, alternativeTitle, fadingTime)
public UIMenu(string title, string subtitle, bool glare = false, bool alternativeTitle = false, float fadingTime = 0.1f) : this(title, subtitle, new PointF(0, 0), "", "", glare, alternativeTitle, fadingTime)
{
}

Expand All @@ -1127,7 +1127,7 @@ public ItemFont DescriptionFont
/// <param name="offset">PointF object with X and Y data for offsets. Applied to all menu elements.</param>
/// <param name="glare">Add menu Glare scaleform?.</param>
/// <param name="alternativeTitle">Set the alternative type to the title?.</param>
public UIMenu(string title, string subtitle, PointF offset, bool glare = false, bool alternativeTitle = false, float fadingTime = 0.1f) : this(title, subtitle, offset, "commonmenu", "interaction_bgd", glare, alternativeTitle, fadingTime)
public UIMenu(string title, string subtitle, PointF offset, bool glare = false, bool alternativeTitle = false, float fadingTime = 0.1f) : this(title, subtitle, offset, "", "", glare, alternativeTitle, fadingTime)
{
}

Expand Down
8 changes: 4 additions & 4 deletions ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,14 @@ function UIMenu.New(title, subTitle, x, y, glare, txtDictionary, txtName, altern
subTitle = ""
end
if txtDictionary ~= nil then
txtDictionary = tostring(txtDictionary) or "commonmenu"
txtDictionary = tostring(txtDictionary) or ""
else
txtDictionary = "commonmenu"
txtDictionary = ""
end
if txtName ~= nil then
txtName = tostring(txtName) or "interaction_bgd"
txtName = tostring(txtName) or ""
else
txtName = "interaction_bgd"
txtName = ""
end
if alternativeTitleStyle == nil then
alternativeTitleStyle = false
Expand Down

0 comments on commit 3824227

Please sign in to comment.