From 382422719314f069d38a6dcbdaabc55c5010be88 Mon Sep 17 00:00:00 2001 From: Leonardo Emanuele Date: Sun, 5 Nov 2023 17:14:06 +0100 Subject: [PATCH] C#/Lua UIMenu: Added BannerLess menu option. - Simply create a UIMenu with title = "", txd = "", txn = "" --- ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs | 4 ++-- ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs b/ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs index 65748693..321435f9 100644 --- a/ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs +++ b/ScaleformUI_Csharp/Menus/UIMenu/UIMenu.cs @@ -1114,7 +1114,7 @@ public ItemFont DescriptionFont /// Title that appears on the big banner. /// Subtitle that appears in capital letters in a small black bar. /// Add menu Glare scaleform?. - 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) { } @@ -1127,7 +1127,7 @@ public ItemFont DescriptionFont /// PointF object with X and Y data for offsets. Applied to all menu elements. /// Add menu Glare scaleform?. /// Set the alternative type to the title?. - 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) { } diff --git a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua index f1db214f..aebe66cd 100644 --- a/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua +++ b/ScaleformUI_Lua/src/Menus/UIMenu/UIMenu.lua @@ -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