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

Commit e69fde3

Browse files
committed
Fixed ShowAlertDialog not showing alert dialog
1 parent 3eee461 commit e69fde3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

VRChat/QuickMenuExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ private static ShowConfirmDialogWithCancelDelegate ShowConfirmDialogWithCancelFn
6060
}
6161
}
6262

63-
public delegate void ShowAlertDialogDelegate(UIMenu uiMenu, string title, string body, Il2CppSystem.Action onClose);
63+
public delegate void ShowAlertDialogDelegate(UIMenu uiMenu, string title, string body, Il2CppSystem.Action onClose, string closeText = "Close", bool unknown = false);
6464
private static ShowAlertDialogDelegate _showAlertDialogDelegate;
6565

6666
private static ShowAlertDialogDelegate ShowAlertDialogFn
@@ -105,7 +105,7 @@ public static void ShowAlertDialog(this UIMenu uiMenu, string title, string body
105105

106106
public static void ShowAlertDialog(this UIMenu uiMenu, string title, string body, string closeText, Action onClose = null)
107107
{
108-
ShowAlertDialogFn.Invoke(uiMenu, title, body, onClose);
108+
ShowAlertDialogFn.Invoke(uiMenu, title, body, onClose, closeText, false);
109109
}
110110

111111
private static MethodInfo _closeQuickMenuMethod;

0 commit comments

Comments
 (0)