Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added ability to create custom ytd files. #45

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
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
9 changes: 5 additions & 4 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";
#endif
private static List<string> menuTextureAssets = new List<string>()
{
#if FIVEM
#if FIVEM
"commonmenu",
"commonmenutu",
"mpleaderboard",
Expand All @@ -31,7 +31,8 @@ public class MenuController : BaseScript
"mprankbadge",
"mpcarhud",
"mpcarhud2",
"shared"
"shared",
_texture_dict
#endif
#if REDM
"menu_textures",
Expand Down