2025-01-07 20:11:11 +08:00
|
|
|
|
namespace AxibugEmuOnline.Client
|
2024-12-11 21:21:27 +08:00
|
|
|
|
{
|
|
|
|
|
public class InGameUI_LoadState : ExecuteMenu
|
|
|
|
|
{
|
|
|
|
|
private InGameUI m_gameUI;
|
|
|
|
|
public override bool Visible => !m_gameUI.IsNetPlay;
|
2025-01-07 20:11:11 +08:00
|
|
|
|
public override string Name => "读取快照";
|
2024-12-11 21:21:27 +08:00
|
|
|
|
|
2025-01-07 20:11:11 +08:00
|
|
|
|
public InGameUI_LoadState(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) return;
|
|
|
|
|
|
|
|
|
|
object state = m_gameUI.GetQuickState();
|
|
|
|
|
if (state != null)
|
|
|
|
|
{
|
|
|
|
|
m_gameUI.Core.LoadState(state);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|