UI增加event
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
using System.Collections.Generic;
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
@@ -30,7 +31,31 @@ namespace Stary.Evo.UIFarme
|
|||||||
/// 面板全部出栈此操作会执行面板的OnExit方法
|
/// 面板全部出栈此操作会执行面板的OnExit方法
|
||||||
/// </summary>
|
/// </summary>
|
||||||
void PopAll();
|
void PopAll();
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent>(TEvent key) where TEvent : IConvertible;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvalue1>(TEvent key, Tvalue1 value) where TEvent : IConvertible;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvalue1, Tvalue2>(TEvent key, Tvalue1 value1, Tvalue2 value2)
|
||||||
|
where TEvent : IConvertible;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvlue1, Tvlue2, Tvlue3>(TEvent key, Tvlue1 value1, Tvlue2 vlue2, Tvlue3 vlue3)
|
||||||
|
where TEvent : IConvertible;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 返回存储面板实例的字典
|
/// 返回存储面板实例的字典
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -175,8 +200,45 @@ namespace Stary.Evo.UIFarme
|
|||||||
|
|
||||||
queuePanel.Clear();
|
queuePanel.Clear();
|
||||||
}
|
}
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent>(TEvent key) where TEvent : IConvertible
|
||||||
|
{
|
||||||
|
this.SendEvent(key);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvalue1>(TEvent key, Tvalue1 value) where TEvent : IConvertible
|
||||||
|
{
|
||||||
|
this.SendEvent(key,value);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvalue1, Tvalue2>(TEvent key, Tvalue1 value1, Tvalue2 value2)
|
||||||
|
where TEvent : IConvertible
|
||||||
|
{
|
||||||
|
this.SendEvent(key, value1, value2);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 事件发送
|
||||||
|
/// </summary>
|
||||||
|
/// <typeparam name="T"></typeparam>
|
||||||
|
public void SendEvent<TEvent, Tvlue1, Tvlue2, Tvlue3>(TEvent key, Tvlue1 value1, Tvlue2 vlue2, Tvlue3 vlue3)
|
||||||
|
where TEvent : IConvertible
|
||||||
|
{
|
||||||
|
this.SendEvent(key, value1, vlue2, vlue3);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
public Dictionary<string, IBasePanel> Get_Dic()
|
public Dictionary<string, IBasePanel> Get_Dic()
|
||||||
{
|
{
|
||||||
if (dicUI.Count > 0)
|
if (dicUI.Count > 0)
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "com.staryevo.uifarme",
|
"name": "com.staryevo.uifarme",
|
||||||
"displayName": "06.UIFarme",
|
"displayName": "06.UIFarme",
|
||||||
"version": "1.0.1",
|
"version": "1.0.2",
|
||||||
"description": "UI模板框架工具",
|
"description": "UI模板框架工具",
|
||||||
"unity": "2021.3",
|
"unity": "2021.3",
|
||||||
"unityRelease": "30f1",
|
"unityRelease": "30f1",
|
||||||
|
|||||||
Reference in New Issue
Block a user