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

26 lines
609 B
C#
Raw Normal View History

2025-01-07 20:11:11 +08:00
using AxibugEmuOnline.Client.ClientCore;
2024-12-11 21:21:27 +08:00
namespace AxibugEmuOnline.Client
{
public class InGameUI_Reset : ExecuteMenu
{
private InGameUI m_gameUI;
2025-01-07 20:11:11 +08:00
public override string Name => "复位";
2024-12-11 21:21:27 +08:00
public override bool Visible => !m_gameUI.IsNetPlay || App.roomMgr.IsHost;
2025-01-07 20:11:11 +08:00
public InGameUI_Reset(InGameUI gameUI)
2024-12-11 21:21:27 +08:00
{
m_gameUI = gameUI;
}
public override void OnExcute(OptionUI optionUI, ref bool cancelHide)
{
if (!m_gameUI.IsNetPlay)
{
App.emu.ResetGame();
}
}
}
}