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