You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
50 lines
1.5 KiB
50 lines
1.5 KiB
using UnityEngine;
|
|
using System;
|
|
namespace XWFramework.UI {
|
|
public static class UIExtensions
|
|
{
|
|
/// <summary>
|
|
/// 激活某个panel
|
|
/// </summary>
|
|
/// <param name="self"></param>
|
|
/// <param name="objs"></param>
|
|
//public static void Show(this UIPanel self,UIType type) {
|
|
// foreach (var ui in UIManageruiDicts.Values) {
|
|
// if (UIManager.oftenShow == ui) {
|
|
// continue;
|
|
// }
|
|
// ui.gameObject.SetActive(false);
|
|
// }
|
|
// UIManager.uiDicts[self.type].gameObject.SetActive(true);
|
|
// UIManager.uiDicts[type].gameObject.SetActive(true);
|
|
//}
|
|
|
|
//public static void Show(this UIPanel self)
|
|
//{
|
|
// foreach (var ui in UIManager.uiDicts.Values)
|
|
// {
|
|
// if (UIManager.oftenShow == ui)
|
|
// {
|
|
// continue;
|
|
// }
|
|
// ui.gameObject.SetActive(false);
|
|
// }
|
|
// UIManager.uiDicts[self.type].gameObject.SetActive(true);
|
|
//}
|
|
|
|
///// <summary>
|
|
///// 关闭某个panel
|
|
///// </summary>
|
|
///// <param name="self"></param>
|
|
///// <param name="objs"></param>
|
|
//public static void Close(this UIPanel self, params GameObject[] objs) {
|
|
// foreach (var obj in objs)
|
|
// {
|
|
// obj.SetActive(false);
|
|
// }
|
|
// self.gameObject.SetActive(false);
|
|
//}
|
|
}
|
|
}
|
|
|