AxibugEmuOnline/AxibugEmuOnline.Client/Assets/Script/UI/InGameUI/InGameUI_Reset.cs

30 lines
726 B
C#
Raw Normal View History

2024-11-13 18:42:30 +08:00
using AxibugEmuOnline.Client.ClientCore;
using System.Diagnostics;
using System.Runtime.InteropServices;
using System.Security.Cryptography;
using System.Text;
namespace AxibugEmuOnline.Client
{
public class InGameUI_Reset : ExecuteMenu
{
private InGameUI m_gameUI;
public override bool Visible => !m_gameUI.IsNetPlay || App.roomMgr.IsHost;
public InGameUI_Reset(InGameUI gameUI) : base("<22><>λ", null)
{
m_gameUI = gameUI;
}
2024-11-28 16:33:00 +08:00
public override void OnExcute(OptionUI optionUI, ref bool cancelHide)
2024-11-13 18:42:30 +08:00
{
if (!m_gameUI.IsNetPlay)
{
App.emu.ResetGame();
}
2024-11-28 16:33:00 +08:00
2024-11-13 18:42:30 +08:00
}
}
}