2025-05-23 17:41:26 +08:00

67 lines
1.3 KiB
C#

using UnityEngine;
using UnityEngine.UI;
using QFramework;
using System.Text.RegularExpressions;
using DG.Tweening;
using System;
using System.Collections.Generic;
using System.Linq;
namespace QFramework.Example
{
public class UIGuideTipData : UIPanelData
{
public string targets;
public string showName;
public string offestPos;
}
public partial class UIGuideTip : UIPanel
{
ResLoader loader;
protected override void OnInit(IUIData uiData = null)
{
mData = uiData as UIGuideTipData ?? new UIGuideTipData();
// please add init code here
loader = ResLoader.Allocate();
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
}
protected override void OnOpen(IUIData uiData = null)
{
Debug.Log("OnOpean???");
if (uiData != null)
{
mData = uiData as UIGuideTipData ?? new UIGuideTipData();
Debug.Log(mData);
List<String> Objs = mData.targets.Split(',')?.ToList();
Debug.Log(Objs);
}
}
private void Genter()
{
}
protected override void OnShow()
{
}
protected override void OnHide()
{
}
protected override void OnClose()
{
}
}
}