|
@@ -51,6 +51,7 @@ namespace GFGGame
|
|
|
//await GFGUIPackage.AddPackageAsync(ResPathUtil.GetUIPackagePath("Common"));
|
|
|
UIConfig.buttonSound = (NAudioClip)UIPackage.GetItemAsset("Common", "click");
|
|
|
|
|
|
+ //统一修改文字字体需要填写路径 ResIn/Font/FZKTJW--GB1-0
|
|
|
UIConfig.defaultFont = "FZKTJW--GB1-0";
|
|
|
//默认关闭点击窗口移至顶层的功能,不可打开,如哪个界面需要在界面中单独设置
|
|
|
UIConfig.bringWindowToFrontOnClick = false;
|
|
@@ -120,7 +121,7 @@ namespace GFGGame
|
|
|
/// <param name="viewData">要传递给视图的参数</param>
|
|
|
/// <param name="goBackParams">从该视图返回的视图信息</param>
|
|
|
/// <param name="hideOthers">是否关闭其他视图</param>
|
|
|
- public static bool Show(string fullViewName, object viewData = null, bool hideOthers = false, bool resetGobackParams = false)
|
|
|
+ public static bool Show(string fullViewName, object viewData = null, bool hideOthers = false)
|
|
|
{
|
|
|
string name = GetName(fullViewName);
|
|
|
if (!GameGlobal.skipCheckOpen && !FunctionOpenDataManager.Instance.CheckIsFunOpenById(name))
|
|
@@ -204,7 +205,7 @@ namespace GFGGame
|
|
|
return false;
|
|
|
}
|
|
|
|
|
|
- public static bool Show<T>(object viewData = null, bool hideOthers = false, bool resetGobackParams = false) where T : class, new()
|
|
|
+ public static bool Show<T>(object viewData = null, bool hideOthers = false) where T : class, new()
|
|
|
{
|
|
|
// string[] names = typeof(T).FullName.Split('.');
|
|
|
// string viewName = names[names.Length - 1];
|
|
@@ -434,7 +435,7 @@ namespace GFGGame
|
|
|
else
|
|
|
{
|
|
|
if (!FunctionOpenDataManager.Instance.CheckIsFunOpenById(nameof(LeagueView))) return;
|
|
|
- ViewManager.Show<LeagueJoinView>(null, hideOther, true);
|
|
|
+ ViewManager.Show<LeagueJoinView>(null, hideOther);
|
|
|
}
|
|
|
|
|
|
break;
|
|
@@ -446,14 +447,14 @@ namespace GFGGame
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
- ViewManager.Show<LeagueJoinView>(null, hideOther, true);
|
|
|
+ ViewManager.Show<LeagueJoinView>(null, hideOther);
|
|
|
}
|
|
|
break;
|
|
|
case nameof(StoreView):
|
|
|
ViewManager.Show<StoreView>(param, hideOther);
|
|
|
break;
|
|
|
case nameof(StoryChapterListView):
|
|
|
- ViewManager.Show($"GFGGame.{jumpId}", param, hideOther, true);
|
|
|
+ ViewManager.Show($"GFGGame.{jumpId}", param, hideOther);
|
|
|
break;
|
|
|
case nameof(StoryChapterView):
|
|
|
ViewManager.Show<StoryChapterView>(param[0], hideOther);
|
|
@@ -471,7 +472,7 @@ namespace GFGGame
|
|
|
ViewManager.Show<LuckyBoxView>(null, hideOther);
|
|
|
break;
|
|
|
default:
|
|
|
- ViewManager.Show($"GFGGame.{jumpId}", null, hideOther, true);
|
|
|
+ ViewManager.Show($"GFGGame.{jumpId}", null, hideOther);
|
|
|
break;
|
|
|
}
|
|
|
onSuccess?.Invoke();
|