first commit
This commit is contained in:
20
NitroxClient/MonoBehaviours/Gui/Modals/KickedModal.cs
Normal file
20
NitroxClient/MonoBehaviours/Gui/Modals/KickedModal.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
namespace NitroxClient.MonoBehaviours.Gui.Modals;
|
||||
|
||||
public class KickedModal : Modal
|
||||
{
|
||||
// When disconnected from the server, we don't want to keep playing
|
||||
public KickedModal() : base(yesButtonText: "OK", freezeGame: true, transparency: 1.0f)
|
||||
{
|
||||
}
|
||||
|
||||
public void Show(string reason)
|
||||
{
|
||||
ModalText = reason;
|
||||
Show();
|
||||
}
|
||||
|
||||
public override void ClickYes()
|
||||
{
|
||||
IngameMenu.main.QuitGame(false);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user