From 6161c94698cbfa969a133d4573e5a7b57c853c63 Mon Sep 17 00:00:00 2001 From: Gamersven <35612832+Gamersven@users.noreply.github.com> Date: Sat, 9 Jul 2022 00:31:34 +0200 Subject: [PATCH 1/4] Added "Shortcut" in QuickMenuEx to the MenuTabs --- VRChat/QuickMenuEx.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/VRChat/QuickMenuEx.cs b/VRChat/QuickMenuEx.cs index 5817da3..2de797e 100644 --- a/VRChat/QuickMenuEx.cs +++ b/VRChat/QuickMenuEx.cs @@ -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 From 110aad845ae07be300a63a4decd5f8c83e8306e6 Mon Sep 17 00:00:00 2001 From: Gamersven <35612832+Gamersven@users.noreply.github.com> Date: Sat, 9 Jul 2022 00:34:41 +0200 Subject: [PATCH 2/4] Remove the CameraMenu from QuickMenuEx. in my opinion either remove this or add a shortcut to all vanilla menus. idk why this one is so special. It is not getting used in Remod.Core. --- VRChat/QuickMenuEx.cs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/VRChat/QuickMenuEx.cs b/VRChat/QuickMenuEx.cs index 2de797e..1e3d99e 100644 --- a/VRChat/QuickMenuEx.cs +++ b/VRChat/QuickMenuEx.cs @@ -85,8 +85,6 @@ public static SelectedUserMenuQM SelectedUserLocal private static Wing _leftWing; private static Wing _rightWing; - private static Transform _cameraMenu; - public static Wing[] Wings { get @@ -124,17 +122,6 @@ public static Wing RightWing } } - 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 From 9c99c3a1b93c2fd6dab7620ff1e94222b22b643d Mon Sep 17 00:00:00 2001 From: Gamersven <35612832+Gamersven@users.noreply.github.com> Date: Sat, 9 Jul 2022 00:36:44 +0200 Subject: [PATCH 3/4] Add a Shortcut for Accessing the WingMenuContent. Gets used like this: Transform leftwing = QuickMenuEx.LeftWing.WingMenuContent() --- VRChat/QuickMenuEx.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/VRChat/QuickMenuEx.cs b/VRChat/QuickMenuEx.cs index 1e3d99e..97bc9e2 100644 --- a/VRChat/QuickMenuEx.cs +++ b/VRChat/QuickMenuEx.cs @@ -121,6 +121,8 @@ public static Wing RightWing return _rightWing; } } + public static Transform WingMenuContent(this Wing wing) => + wing.transform.Find("Container/InnerContainer/WingMenu/ScrollRect/Viewport/VerticalLayoutGroup"); private static Sprite _onIconSprite; From ec5d6ff6be920070bbe6a9c6bbc1568801a1ca83 Mon Sep 17 00:00:00 2001 From: Gamersven <35612832+Gamersven@users.noreply.github.com> Date: Sat, 9 Jul 2022 01:27:26 +0200 Subject: [PATCH 4/4] Readded CameraMenu and other default VRC Menus ^^ --- VRChat/QuickMenuEx.cs | 85 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) diff --git a/VRChat/QuickMenuEx.cs b/VRChat/QuickMenuEx.cs index 97bc9e2..b1ab504 100644 --- a/VRChat/QuickMenuEx.cs +++ b/VRChat/QuickMenuEx.cs @@ -81,6 +81,91 @@ 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;