From 03fca928491ca225659a2c3ee06aa924a672f792 Mon Sep 17 00:00:00 2001 From: Sky Date: Thu, 25 May 2023 22:24:20 -0500 Subject: [PATCH 1/4] Add a texture dictionary for custom headers as well as able to define image in said dictionary --- MenuAPI/MenuController.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/MenuAPI/MenuController.cs b/MenuAPI/MenuController.cs index 39bb6e6..9333461 100644 --- a/MenuAPI/MenuController.cs +++ b/MenuAPI/MenuController.cs @@ -12,8 +12,8 @@ public class MenuController : BaseScript public static List Menus { get; protected set; } = new List(); internal static HashSet VisibleMenus { get; } = new HashSet(); #if FIVEM - public const string _texture_dict = "commonmenu"; - public const string _header_texture = "interaction_bgd"; + public const string _texture_dict = "menutextures"; + public static string _header_texture = "main"; #endif #if REDM public const string _texture_dict = "menu_textures"; @@ -24,6 +24,7 @@ public class MenuController : BaseScript #if FIVEM "commonmenu", "commonmenutu", + "menutextures", "mpleaderboard", "mphud", "mpshopsale", From 0864b0d9d73a7bfc91e36026e1e43fd1ecd6dca3 Mon Sep 17 00:00:00 2001 From: Sky Date: Sun, 28 May 2023 22:04:31 -0500 Subject: [PATCH 2/4] Added customizability of the name of the ytd file --- MenuAPI/MenuController.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/MenuAPI/MenuController.cs b/MenuAPI/MenuController.cs index 9333461..33067c0 100644 --- a/MenuAPI/MenuController.cs +++ b/MenuAPI/MenuController.cs @@ -12,8 +12,8 @@ public class MenuController : BaseScript public static List Menus { get; protected set; } = new List(); internal static HashSet VisibleMenus { get; } = new HashSet(); #if FIVEM - public const string _texture_dict = "menutextures"; - public static string _header_texture = "main"; + public static string _texture_dict = "commonmenu"; + public static string _header_texture = "interation_bgs"; #endif #if REDM public const string _texture_dict = "menu_textures"; @@ -21,10 +21,9 @@ public class MenuController : BaseScript #endif private static List menuTextureAssets = new List() { -#if FIVEM +#if FIVEM "commonmenu", "commonmenutu", - "menutextures", "mpleaderboard", "mphud", "mpshopsale", @@ -32,7 +31,8 @@ public class MenuController : BaseScript "mprankbadge", "mpcarhud", "mpcarhud2", - "shared" + "shared", + _texture_dict #endif #if REDM "menu_textures", From cfd321e664a800798641528254df7c60f0a88521 Mon Sep 17 00:00:00 2001 From: Sky Date: Mon, 29 May 2023 17:08:44 -0500 Subject: [PATCH 3/4] Whoops --- MenuAPI/MenuController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MenuAPI/MenuController.cs b/MenuAPI/MenuController.cs index 33067c0..56ed881 100644 --- a/MenuAPI/MenuController.cs +++ b/MenuAPI/MenuController.cs @@ -13,7 +13,7 @@ public class MenuController : BaseScript internal static HashSet VisibleMenus { get; } = new HashSet(); #if FIVEM public static string _texture_dict = "commonmenu"; - public static string _header_texture = "interation_bgs"; + public static string _header_texture = "interation_bgd"; #endif #if REDM public const string _texture_dict = "menu_textures"; From 1c71844c950c1868ff42075be8ca249fc1911152 Mon Sep 17 00:00:00 2001 From: Sky Date: Tue, 7 Nov 2023 02:40:30 -0600 Subject: [PATCH 4/4] Update MenuController.cs --- MenuAPI/MenuController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MenuAPI/MenuController.cs b/MenuAPI/MenuController.cs index 56ed881..7f43a95 100644 --- a/MenuAPI/MenuController.cs +++ b/MenuAPI/MenuController.cs @@ -13,7 +13,7 @@ public class MenuController : BaseScript internal static HashSet VisibleMenus { get; } = new HashSet(); #if FIVEM public static string _texture_dict = "commonmenu"; - public static string _header_texture = "interation_bgd"; + public static string _header_texture = "interaction_bgd"; #endif #if REDM public const string _texture_dict = "menu_textures";