52 lines
979 B
C#
52 lines
979 B
C#
|
|
using UnityEngine;
|
||
|
|
using UnityEngine.UI;
|
||
|
|
using QFramework;
|
||
|
|
using System.Text.RegularExpressions;
|
||
|
|
|
||
|
|
namespace QFramework.Example
|
||
|
|
{
|
||
|
|
public class UIGuideTipData : UIPanelData
|
||
|
|
{
|
||
|
|
public string targets;
|
||
|
|
|
||
|
|
public string Names;
|
||
|
|
|
||
|
|
public Vector2[] offestPos;
|
||
|
|
|
||
|
|
}
|
||
|
|
public partial class UIGuideTip : UIPanel
|
||
|
|
{
|
||
|
|
protected override void OnInit(IUIData uiData = null)
|
||
|
|
{
|
||
|
|
mData = uiData as UIGuideTipData ?? new UIGuideTipData();
|
||
|
|
// please add init code here
|
||
|
|
TypeEventSystem.Global.Register<OnModuleQuit>((arg) => Hide()).UnRegisterWhenGameObjectDestroyed(gameObject);
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnOpen(IUIData uiData = null)
|
||
|
|
{
|
||
|
|
if (uiData != null)
|
||
|
|
{
|
||
|
|
mData = uiData as UIGuideTipData ?? new UIGuideTipData();
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
|
||
|
|
|
||
|
|
protected override void OnShow()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnHide()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
|
||
|
|
protected override void OnClose()
|
||
|
|
{
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|