Skip to content

Commit

Permalink
Merge pull request #369 from TomGrobbe/XdGoldenTigerOfficial-patch-1
Browse files Browse the repository at this point in the history
Bug Fixes for Building vMenu
  • Loading branch information
XdGoldenTigerOfficial committed Jan 16, 2024
2 parents abbfeec + 34a714c commit ae5269d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions vMenu/menus/MpPedCustomization.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ public class MpPedCustomization
internal MenuItem editPedBtn = new("Edit Saved Character", "This allows you to edit everything about your saved character. The changes will be saved to this character's save file entry once you hit the save button.");

// Need to be editable from other functions
private readonly MenuListItem setCategoryBtn = new("Set Character Category", [], 0, "Sets this character's category. Select to save.");
private readonly MenuListItem categoryBtn = new("Character Category", [], 0, "Sets this character's category.");
private readonly MenuListItem setCategoryBtn = new("Set Character Category", new List<string> {}, 0, "Sets this character's category. Select to save.");
private readonly MenuListItem categoryBtn = new("Character Category", new List<string> {}, 0, "Sets this character's category.");

public static bool DontCloseMenus { get { return MenuController.PreventExitingMenu; } set { MenuController.PreventExitingMenu = value; } }
public static bool DisableBackButton { get { return MenuController.DisableBackButton; } set { MenuController.DisableBackButton = value; } }
Expand Down Expand Up @@ -2737,7 +2737,7 @@ private List<string> GetAllCategoryNames()

private List<MenuItem.Icon> GetCategoryIcons(List<string> categoryNames)
{
List<MenuItem.Icon> icons = [];
List<MenuItem.Icon> icons = new List<MenuItem.Icon> {};

foreach (var name in categoryNames)
{
Expand Down
4 changes: 2 additions & 2 deletions vMenu/menus/SavedVehicles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ public class SavedVehicles
private SavedVehicleCategory currentCategory;

// Need to be editable from other functions
private readonly MenuListItem setCategoryBtn = new("Set Vehicle Category", [], 0, "Sets this Vehicle's category. Select to save.");
private readonly MenuListItem setCategoryBtn = new("Set Vehicle Category", new List<string> {}, 0, "Sets this Vehicle's category. Select to save.");

/// <summary>
/// Creates the menu.
Expand Down Expand Up @@ -901,7 +901,7 @@ private List<string> GetAllCategoryNames()

private List<MenuItem.Icon> GetCategoryIcons(List<string> categoryNames)
{
List<MenuItem.Icon> icons = [];
List<MenuItem.Icon> icons = new List<MenuItem.Icon> {};

foreach (var name in categoryNames)
{
Expand Down

0 comments on commit ae5269d

Please sign in to comment.