From a8f606d592855b595242639d31af315798e4782e Mon Sep 17 00:00:00 2001 From: Riccardo Bovo Date: Fri, 20 Dec 2024 11:14:09 +0000 Subject: [PATCH] Grey out the 'What's New' button on the admin panel. --- Assets/Prefabs/Panels/AdminPanel.prefab | 2 +- Assets/Scripts/SketchControlsScript.cs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/Prefabs/Panels/AdminPanel.prefab b/Assets/Prefabs/Panels/AdminPanel.prefab index bb9232afe..b3c8e4d9f 100644 --- a/Assets/Prefabs/Panels/AdminPanel.prefab +++ b/Assets/Prefabs/Panels/AdminPanel.prefab @@ -3366,7 +3366,7 @@ MonoBehaviour: m_HoverScale: 1.1 m_HoverBoxColliderGrow: 0.2 m_AddOverlay: 0 - m_Command: 0 + m_Command: 101 m_CommandParam: -1 m_CommandParam2: -1 m_RequiresPopup: 0 diff --git a/Assets/Scripts/SketchControlsScript.cs b/Assets/Scripts/SketchControlsScript.cs index 8bfb01b55..0def9b8fb 100644 --- a/Assets/Scripts/SketchControlsScript.cs +++ b/Assets/Scripts/SketchControlsScript.cs @@ -144,6 +144,7 @@ public enum GlobalCommands SignOutConfirm, ReadOnlyNotice, ShowContribution, + WhatIsNew, // Open Brush Reserved Enums 1000-1999 LanguagePopup = 1000, @@ -4876,6 +4877,7 @@ public void IssueGlobalCommand(GlobalCommands rEnum, int iParam1 = -1, case GlobalCommands.MultiplayerLeaveRoom: break; // Intentionally blank. case GlobalCommands.MultiplayerConnect: break; // Intentionally blank. case GlobalCommands.MultiplayerDisconnect: break; // Intentionally blank. + case GlobalCommands.WhatIsNew: break;// Intentionally blank. default: Debug.LogError($"Unrecognized command {rEnum}"); break; @@ -5105,6 +5107,8 @@ public bool IsCommandAvailable(GlobalCommands rEnum, int iParam = -1) case GlobalCommands.EditMultiplayerNickName: case GlobalCommands.EditMultiplayerRoomName: return !(MultiplayerManager.m_Instance.State == ConnectionState.IN_ROOM); + case GlobalCommands.WhatIsNew: + return false; } return true; }