|
@@ -51,15 +51,16 @@ namespace GFGGame
|
|
/// <param name="hideOthers">ÊÇ·ñ¹Ø±ÕÆäËûÊÓͼ</param>
|
|
/// <param name="hideOthers">ÊÇ·ñ¹Ø±ÕÆäËûÊÓͼ</param>
|
|
public static void Show(string viewName, object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false)
|
|
public static void Show(string viewName, object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false)
|
|
{
|
|
{
|
|
|
|
+ if (!FunctionOpenDataManager.Instance.CheckIsFunOpenBgViewName(viewName))
|
|
|
|
+ {
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
if (hideOthers)
|
|
if (hideOthers)
|
|
{
|
|
{
|
|
HideAllView(viewName);
|
|
HideAllView(viewName);
|
|
}
|
|
}
|
|
UIView obj = null;
|
|
UIView obj = null;
|
|
- if (!FunctionOpenDataManager.Instance.CheckIsFunOpenBgViewName(viewName))
|
|
|
|
- {
|
|
|
|
- return;
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
if (_viewDic.ContainsKey(viewName))
|
|
if (_viewDic.ContainsKey(viewName))
|
|
{
|
|
{
|
|
obj = _viewDic[viewName];
|
|
obj = _viewDic[viewName];
|
|
@@ -97,12 +98,12 @@ namespace GFGGame
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public static void Show<T>(object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
|
|
|
|
|
|
+ public static bool Show<T>(object viewData = null, object[] goBackParams = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
|
|
{
|
|
{
|
|
string viewName = typeof(T).FullName;
|
|
string viewName = typeof(T).FullName;
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenBgViewName(viewName))
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenBgViewName(viewName))
|
|
{
|
|
{
|
|
- return;
|
|
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
if (hideOthers)
|
|
if (hideOthers)
|
|
{
|
|
{
|
|
@@ -143,7 +144,7 @@ namespace GFGGame
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ return true;
|
|
}
|
|
}
|
|
|
|
|
|
public static void Hide(string viewName)
|
|
public static void Hide(string viewName)
|