2024-10-24 23:44:04 +08:00
|
|
|
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
2024-10-28 01:06:41 +08:00
|
|
|
using Unity.VisualScripting;
|
2024-10-24 23:44:04 +08:00
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
namespace Ether
|
|
|
|
{
|
2024-10-28 01:06:41 +08:00
|
|
|
public enum MenuSubFrameType
|
|
|
|
{
|
|
|
|
ClueFrame,
|
|
|
|
MenuTipsFrame,
|
|
|
|
BagFrame,
|
|
|
|
MapFrame,
|
|
|
|
FriendFrame,
|
|
|
|
AchievementFrame,
|
|
|
|
SettingFrame,
|
|
|
|
}
|
|
|
|
|
2024-10-27 04:03:15 +08:00
|
|
|
public class MenuFrame : MenuFrameBase
|
2024-10-24 23:44:04 +08:00
|
|
|
{
|
2024-10-28 01:06:41 +08:00
|
|
|
protected override void OnShow()
|
|
|
|
{
|
|
|
|
_ToggleGroupExMenu.OnValueChange.AddListener(OnToggleValueChanged);
|
|
|
|
_ToggleGroupExMenu.SelectIndex = OpenFrameData.GetData<int>("SelectIndex");
|
|
|
|
}
|
|
|
|
|
|
|
|
private void OnToggleValueChanged(int selectIndex)
|
|
|
|
{
|
|
|
|
OpenFrameData openFrameData = new OpenFrameData();
|
|
|
|
openFrameData.SetParentFrameData(FrameData.FrameName, _TransSubFrameRoot);
|
|
|
|
|
|
|
|
UIManager.Inst.OpenFrame(((MenuSubFrameType)selectIndex).ToString(), openFrameData);
|
|
|
|
}
|
2024-10-24 23:44:04 +08:00
|
|
|
}
|
|
|
|
}
|