@@ -17,6 +17,11 @@ public static class CoreFrames
1717 /// </summary>
1818 internal const int DEFAULT_GROUP_ID = 0 ;
1919
20+ /// <summary>
21+ /// Do all groups
22+ /// </summary>
23+ internal const int DO_ALL_GROUPS = - 1 ;
24+
2025 /// <summary>
2126 /// User Interface
2227 /// </summary>
@@ -77,19 +82,28 @@ public static bool CheckIsHiding(UIBase uiBase)
7782 return UIManager . GetInstance ( ) . CheckIsHiding ( uiBase ) ;
7883 }
7984
85+ /// <summary>
86+ /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
87+ /// </summary>
88+ /// <returns></returns>
8089 public static bool CheckHasAnyHiding ( )
8190 {
82- return UIManager . GetInstance ( ) . CheckHasAnyHiding ( ) ;
91+ return UIManager . GetInstance ( ) . CheckHasAnyHiding ( DEFAULT_GROUP_ID ) ;
8392 }
8493
8594 public static bool CheckHasAnyHiding ( int groupId )
8695 {
8796 return UIManager . GetInstance ( ) . CheckHasAnyHiding ( groupId ) ;
8897 }
8998
99+ public static bool CheckHasAnyHidingForAllGroups ( )
100+ {
101+ return UIManager . GetInstance ( ) . CheckHasAnyHiding ( DO_ALL_GROUPS ) ;
102+ }
103+
90104 public static int GetStackByStackCount ( string canvasName )
91105 {
92- return UIManager . GetInstance ( ) . GetStackByStackCount ( 0 , canvasName ) ;
106+ return UIManager . GetInstance ( ) . GetStackByStackCount ( DEFAULT_GROUP_ID , canvasName ) ;
93107 }
94108
95109 public static int GetStackByStackCount ( int groupId , string canvasName )
@@ -284,6 +298,11 @@ public static void CloseAll(int groupId, bool disabledPreClose = false, bool for
284298 UIManager . GetInstance ( ) . CloseAll ( groupId , disabledPreClose , forceDestroy , false , withoutAssetNames ) ;
285299 }
286300
301+ public static void CloseAllForAllGroups ( bool disabledPreClose = false , bool forceDestroy = false , params string [ ] withoutAssetNames )
302+ {
303+ UIManager . GetInstance ( ) . CloseAll ( DO_ALL_GROUPS , disabledPreClose , forceDestroy , false , withoutAssetNames ) ;
304+ }
305+
287306 /// <summary>
288307 /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
289308 /// </summary>
@@ -300,6 +319,11 @@ public static void CloseAllAndExcluded(int groupId, bool disabledPreClose = fals
300319 UIManager . GetInstance ( ) . CloseAll ( groupId , disabledPreClose , forceDestroy , true , withoutAssetNames ) ;
301320 }
302321
322+ public static void CloseAllAndExcludedForAllGroups ( bool disabledPreClose = false , bool forceDestroy = false , params string [ ] withoutAssetNames )
323+ {
324+ UIManager . GetInstance ( ) . CloseAll ( DO_ALL_GROUPS , disabledPreClose , forceDestroy , true , withoutAssetNames ) ;
325+ }
326+
303327 /// <summary>
304328 /// Only allow close stack by stack
305329 /// </summary>
@@ -342,6 +366,11 @@ public static void RevealAll(int groupId)
342366 {
343367 UIManager . GetInstance ( ) . RevealAll ( groupId ) ;
344368 }
369+
370+ public static void RevealAllForAllGroups ( )
371+ {
372+ UIManager . GetInstance ( ) . RevealAll ( DO_ALL_GROUPS ) ;
373+ }
345374 #endregion
346375
347376 #region Hide
@@ -364,6 +393,11 @@ public static void HideAll(int groupId, params string[] withoutAssetNames)
364393 UIManager . GetInstance ( ) . HideAll ( groupId , false , withoutAssetNames ) ;
365394 }
366395
396+ public static void HideAllForAllGroups ( params string [ ] withoutAssetNames )
397+ {
398+ UIManager . GetInstance ( ) . HideAll ( DO_ALL_GROUPS , false , withoutAssetNames ) ;
399+ }
400+
367401 /// <summary>
368402 /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
369403 /// </summary>
@@ -377,6 +411,11 @@ public static void HideAllAndExcluded(int groupId, params string[] withoutAssetN
377411 {
378412 UIManager . GetInstance ( ) . HideAll ( groupId , true , withoutAssetNames ) ;
379413 }
414+
415+ public static void HideAllAndExcludedForAllGroups ( params string [ ] withoutAssetNames )
416+ {
417+ UIManager . GetInstance ( ) . HideAll ( DO_ALL_GROUPS , true , withoutAssetNames ) ;
418+ }
380419 #endregion
381420 }
382421
@@ -431,16 +470,25 @@ public static bool CheckIsHiding(SRBase srBase)
431470 return SRManager . GetInstance ( ) . CheckIsHiding ( srBase ) ;
432471 }
433472
473+ /// <summary>
474+ /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
475+ /// </summary>
476+ /// <returns></returns>
434477 public static bool CheckHasAnyHiding ( )
435478 {
436- return SRManager . GetInstance ( ) . CheckHasAnyHiding ( ) ;
479+ return SRManager . GetInstance ( ) . CheckHasAnyHiding ( DEFAULT_GROUP_ID ) ;
437480 }
438481
439482 public static bool CheckHasAnyHiding ( int groupId )
440483 {
441484 return SRManager . GetInstance ( ) . CheckHasAnyHiding ( groupId ) ;
442485 }
443486
487+ public static bool CheckHasAnyHidingForAllGroups ( )
488+ {
489+ return SRManager . GetInstance ( ) . CheckHasAnyHiding ( DO_ALL_GROUPS ) ;
490+ }
491+
444492 /// <summary>
445493 /// Send refresh message to specific with data
446494 /// </summary>
@@ -616,6 +664,11 @@ public static void CloseAll(int groupId, bool disabledPreClose = false, bool for
616664 SRManager . GetInstance ( ) . CloseAll ( groupId , disabledPreClose , forceDestroy , false , withoutAssetNames ) ;
617665 }
618666
667+ public static void CloseAllForAllGroups ( bool disabledPreClose = false , bool forceDestroy = false , params string [ ] withoutAssetNames )
668+ {
669+ SRManager . GetInstance ( ) . CloseAll ( DO_ALL_GROUPS , disabledPreClose , forceDestroy , false , withoutAssetNames ) ;
670+ }
671+
619672 /// <summary>
620673 /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
621674 /// </summary>
@@ -631,6 +684,11 @@ public static void CloseAllAndExcluded(int groupId, bool disabledPreClose = fals
631684 {
632685 SRManager . GetInstance ( ) . CloseAll ( groupId , disabledPreClose , forceDestroy , true , withoutAssetNames ) ;
633686 }
687+
688+ public static void CloseAllAndExcludedForAllGroups ( bool disabledPreClose = false , bool forceDestroy = false , params string [ ] withoutAssetNames )
689+ {
690+ SRManager . GetInstance ( ) . CloseAll ( DO_ALL_GROUPS , disabledPreClose , forceDestroy , true , withoutAssetNames ) ;
691+ }
634692 #endregion
635693
636694 #region Reveal
@@ -651,6 +709,11 @@ public static void RevealAll(int groupId)
651709 {
652710 SRManager . GetInstance ( ) . RevealAll ( groupId ) ;
653711 }
712+
713+ public static void RevealAllForAllGroups ( )
714+ {
715+ SRManager . GetInstance ( ) . RevealAll ( DO_ALL_GROUPS ) ;
716+ }
654717 #endregion
655718
656719 #region Hide
@@ -674,6 +737,11 @@ public static void HideAll(int groupId, params string[] withoutAssetNames)
674737 SRManager . GetInstance ( ) . HideAll ( groupId , false , withoutAssetNames ) ;
675738 }
676739
740+ public static void HideAllForAllGroups ( params string [ ] withoutAssetNames )
741+ {
742+ SRManager . GetInstance ( ) . HideAll ( DO_ALL_GROUPS , false , withoutAssetNames ) ;
743+ }
744+
677745 /// <summary>
678746 /// Default group id is 0, but if you don't want to execute based on the group id and want to do all, can set the group id to -1
679747 /// </summary>
@@ -687,6 +755,11 @@ public static void HideAllAndExcluded(int groupId, params string[] withoutAssetN
687755 {
688756 SRManager . GetInstance ( ) . HideAll ( groupId , true , withoutAssetNames ) ;
689757 }
758+
759+ public static void HideAllAndExcludedForAllGroups ( params string [ ] withoutAssetNames )
760+ {
761+ SRManager . GetInstance ( ) . HideAll ( DO_ALL_GROUPS , true , withoutAssetNames ) ;
762+ }
690763 #endregion
691764 }
692765
0 commit comments