Skip to content

Commit

Permalink
Grey out the 'What's New' button on the admin panel.
Browse files Browse the repository at this point in the history
  • Loading branch information
sbanca committed Dec 20, 2024
1 parent a3f963d commit a8f606d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Assets/Prefabs/Panels/AdminPanel.prefab
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions Assets/Scripts/SketchControlsScript.cs
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ public enum GlobalCommands
SignOutConfirm,
ReadOnlyNotice,
ShowContribution,
WhatIsNew,

// Open Brush Reserved Enums 1000-1999
LanguagePopup = 1000,
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit a8f606d

Please sign in to comment.