Skip to content
This repository was archived by the owner on Jan 24, 2023. It is now read-only.

Changed some Stuff in QuickMenuEx #32

Merged
merged 5 commits into from
Jul 9, 2022
Merged
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
114 changes: 101 additions & 13 deletions VRChat/QuickMenuEx.cs
Original file line number Diff line number Diff line change
@@ -37,6 +37,20 @@ public static Transform MenuParent
}
}

private static Transform _menuTabs;

public static Transform MenuTabs
{
get
{
if (_menuTabs == null)
{
_menuTabs = Instance.field_Public_Transform_0.Find("Window/Page_Buttons_QM/HorizontalLayoutGroup");
}
return _menuTabs;
}
}

private static MenuStateController _menuStateCtrl;

public static MenuStateController MenuStateCtrl
@@ -67,12 +81,95 @@ public static SelectedUserMenuQM SelectedUserLocal
}
}

private static Transform _dashboardMenu;
public static Transform DashboardMenu
{
get
{
if (_dashboardMenu == null)
{
_dashboardMenu = MenuParent.Find("Menu_Dashboard");
}
return _dashboardMenu;
}
}
private static Transform _notificationMenu;
public static Transform NotificationMenu
{
get
{
if (_notificationMenu == null)
{
_notificationMenu = MenuParent.Find("Menu_Notifications");
}
return _notificationMenu;
}
}
private static Transform _hereMenu;
public static Transform HereMenu
{
get
{
if (_hereMenu == null)
{
_hereMenu = MenuParent.Find("Menu_Here");
}
return _hereMenu;
}
}
private static Transform _cameraMenu;
public static Transform CameraMenu
{
get
{
if (_cameraMenu == null)
{
_cameraMenu = MenuParent.Find("Menu_Camera");
}
return _cameraMenu;
}
}
private static Transform _audiosettingsMenu;
public static Transform AudioSettingsMenu
{
get
{
if (_audiosettingsMenu == null)
{
_audiosettingsMenu = MenuParent.Find("Menu_AudioSettings");
}
return _audiosettingsMenu;
}
}
private static Transform _settingsMenu;
public static Transform SettingsMenu
{
get
{
if (_settingsMenu == null)
{
_settingsMenu = MenuParent.Find("Menu_Settings");
}
return _settingsMenu;
}
}
private static Transform _devtoolsMenu;
public static Transform DevToolsMenu
{
get
{
if (_devtoolsMenu == null)
{
_devtoolsMenu = MenuParent.Find("Menu_DevTools");
}
return _devtoolsMenu;
}
}

private static Wing[] _wings;
private static Wing _leftWing;
private static Wing _rightWing;

private static Transform _cameraMenu;

public static Wing[] Wings
{
get
@@ -109,18 +206,9 @@ public static Wing RightWing
return _rightWing;
}
}
public static Transform WingMenuContent(this Wing wing) =>
wing.transform.Find("Container/InnerContainer/WingMenu/ScrollRect/Viewport/VerticalLayoutGroup");

public static Transform CameraMenu
{
get
{
if (_cameraMenu == null)
{
_cameraMenu = Instance.field_Public_Transform_0.Find("Window/QMParent/Menu_Camera");
}
return _cameraMenu;
}
}

private static Sprite _onIconSprite;
public static Sprite OnIconSprite