17 lines
440 B
C#
17 lines
440 B
C#
namespace NitroxClient.MonoBehaviours.Gui.Modals;
|
|
|
|
/// <summary>
|
|
/// Extends the IngameMenu with a disconnect popup.
|
|
/// </summary>
|
|
public class LostConnectionModal : Modal
|
|
{
|
|
public LostConnectionModal() : base(yesButtonText: "OK", modalText: Language.main.Get("Nitrox_LostConnection"), freezeGame: true, transparency: 1.0f)
|
|
{
|
|
}
|
|
|
|
public override void ClickYes()
|
|
{
|
|
IngameMenu.main.QuitGame(false);
|
|
}
|
|
}
|