Skip to content
Draft
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: 8 additions & 6 deletions MenuAPI/MenuController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ public class MenuController : BaseScript
public static List<Menu> Menus { get; protected set; } = new List<Menu>();
internal static HashSet<Menu> VisibleMenus { get; } = new HashSet<Menu>();
#if FIVEM
public const string _texture_dict = "commonmenu";
public const string _header_texture = "interaction_bgd";
public static string _texture_dict = "commonmenu";
public static string _header_texture = "interaction_bgd";
#endif
#if REDM
public const string _texture_dict = "menu_textures";
public const string _header_texture = "translate_bg_1a";
public static string _texture_dict = "menu_textures";
public static string _header_texture = "translate_bg_1a";
#endif
private static List<string> menuTextureAssets = new List<string>()
{
#if FIVEM
#if FIVEM
"commonmenu",
"commonmenutu",
"mpleaderboard",
Expand All @@ -31,12 +31,14 @@ public class MenuController : BaseScript
"mprankbadge",
"mpcarhud",
"mpcarhud2",
"shared"
"shared",
_texture_dict
#endif
#if REDM
"menu_textures",
"boot_flow",
"generic_textures",
_texture_dict
#endif
};

Expand Down