@@ -58,8 +58,8 @@ public static class WindowManager
58
58
public static NetFrpControl ? NetFrpWindow { get ; set ; }
59
59
60
60
public static Dictionary < string , GameEditControl > GameEditWindows { get ; } = [ ] ;
61
- public static Dictionary < string , GameConfigEditControl > ConfigEditWindows { get ; } = [ ] ;
62
- public static Dictionary < string , AddControl > AddWindows { get ; } = [ ] ;
61
+ public static Dictionary < string , GameConfigEditControl > GameConfigEditWindows { get ; } = [ ] ;
62
+ public static Dictionary < string , AddControl > GameAddWindows { get ; } = [ ] ;
63
63
public static Dictionary < string , ServerPackControl > ServerPackWindows { get ; } = [ ] ;
64
64
public static Dictionary < string , GameLogControl > GameLogWindows { get ; } = [ ] ;
65
65
public static Dictionary < string , GameExportControl > GameExportWindows { get ; } = [ ] ;
@@ -445,63 +445,63 @@ public static void ShowAdd(GameSettingObj obj, ModDisplayModel obj1)
445
445
{
446
446
var type1 = DownloadItemHelper . TestSourceType ( obj1 . PID , obj1 . FID ) ;
447
447
448
- if ( AddWindows . TryGetValue ( obj . UUID , out var value ) )
448
+ if ( GameAddWindows . TryGetValue ( obj . UUID , out var value ) )
449
449
{
450
450
value . Window . TopActivate ( ) ;
451
451
value . GoFile ( type1 , obj1 . PID ! ) ;
452
452
}
453
453
else
454
454
{
455
455
var con = new AddControl ( obj ) ;
456
- AddWindows . Add ( obj . UUID , con ) ;
456
+ GameAddWindows . Add ( obj . UUID , con ) ;
457
457
AWindow ( con ) ;
458
458
con . GoFile ( type1 , obj1 . PID ! ) ;
459
459
}
460
460
}
461
461
462
462
public static Task ShowAddSet ( GameSettingObj obj )
463
463
{
464
- if ( AddWindows . TryGetValue ( obj . UUID , out var value ) )
464
+ if ( GameAddWindows . TryGetValue ( obj . UUID , out var value ) )
465
465
{
466
466
value . Window . TopActivate ( ) ;
467
467
return value . GoSet ( ) ;
468
468
}
469
469
else
470
470
{
471
471
var con = new AddControl ( obj ) ;
472
- AddWindows . Add ( obj . UUID , con ) ;
472
+ GameAddWindows . Add ( obj . UUID , con ) ;
473
473
AWindow ( con ) ;
474
474
return con . GoSet ( ) ;
475
475
}
476
476
}
477
477
478
478
public static void ShowAddUpgade ( GameSettingObj obj , ICollection < ModUpgradeModel > list )
479
479
{
480
- if ( AddWindows . TryGetValue ( obj . UUID , out var value ) )
480
+ if ( GameAddWindows . TryGetValue ( obj . UUID , out var value ) )
481
481
{
482
482
value . Window . TopActivate ( ) ;
483
483
value . GoUpgrade ( list ) ;
484
484
}
485
485
else
486
486
{
487
487
var con = new AddControl ( obj ) ;
488
- AddWindows . Add ( obj . UUID , con ) ;
488
+ GameAddWindows . Add ( obj . UUID , con ) ;
489
489
AWindow ( con ) ;
490
490
con . GoUpgrade ( list ) ;
491
491
}
492
492
}
493
493
494
494
public static void ShowAdd ( GameSettingObj obj , FileType type )
495
495
{
496
- if ( AddWindows . TryGetValue ( obj . UUID , out var value ) )
496
+ if ( GameAddWindows . TryGetValue ( obj . UUID , out var value ) )
497
497
{
498
498
value . Window . TopActivate ( ) ;
499
499
value . GoTo ( type ) ;
500
500
}
501
501
else
502
502
{
503
503
var con = new AddControl ( obj ) ;
504
- AddWindows . Add ( obj . UUID , con ) ;
504
+ GameAddWindows . Add ( obj . UUID , con ) ;
505
505
AWindow ( con ) ;
506
506
con . GoTo ( type ) ;
507
507
}
@@ -537,29 +537,29 @@ public static void ShowGameLog(GameSettingObj obj)
537
537
538
538
public static void ShowConfigEdit ( GameSettingObj obj )
539
539
{
540
- if ( ConfigEditWindows . TryGetValue ( obj . UUID , out var win1 ) )
540
+ if ( GameConfigEditWindows . TryGetValue ( obj . UUID , out var win1 ) )
541
541
{
542
542
win1 . Window . TopActivate ( ) ;
543
543
}
544
544
else
545
545
{
546
546
var con = new GameConfigEditControl ( obj ) ;
547
- ConfigEditWindows . Add ( obj . UUID , con ) ;
547
+ GameConfigEditWindows . Add ( obj . UUID , con ) ;
548
548
AWindow ( con ) ;
549
549
}
550
550
}
551
551
552
552
public static void ShowConfigEdit ( WorldObj obj )
553
553
{
554
554
string key = obj . Game . UUID + ":" + obj . LevelName ;
555
- if ( ConfigEditWindows . TryGetValue ( key , out var win1 ) )
555
+ if ( GameConfigEditWindows . TryGetValue ( key , out var win1 ) )
556
556
{
557
557
win1 . Window . TopActivate ( ) ;
558
558
}
559
559
else
560
560
{
561
561
var con = new GameConfigEditControl ( obj ) ;
562
- ConfigEditWindows . Add ( key , con ) ;
562
+ GameConfigEditWindows . Add ( key , con ) ;
563
563
AWindow ( con ) ;
564
564
}
565
565
}
@@ -656,7 +656,7 @@ public static void CloseGameWindow(GameSettingObj obj)
656
656
{
657
657
Dispatcher . UIThread . Post ( win5 . Window . Close ) ;
658
658
}
659
- if ( AddWindows . TryGetValue ( obj . UUID , out var win1 ) )
659
+ if ( GameAddWindows . TryGetValue ( obj . UUID , out var win1 ) )
660
660
{
661
661
Dispatcher . UIThread . Post ( win1 . Window . Close ) ;
662
662
}
@@ -672,7 +672,7 @@ public static void CloseGameWindow(GameSettingObj obj)
672
672
{
673
673
Dispatcher . UIThread . Post ( win4 . Window . Close ) ;
674
674
}
675
- foreach ( var item in ConfigEditWindows )
675
+ foreach ( var item in GameConfigEditWindows )
676
676
{
677
677
if ( item . Key . StartsWith ( obj . UUID ) )
678
678
{
@@ -802,11 +802,11 @@ public static void CloseAllWindow()
802
802
{
803
803
( item . GetVisualRoot ( ) as Window ) ? . Close ( ) ;
804
804
}
805
- foreach ( var item in ConfigEditWindows . Values )
805
+ foreach ( var item in GameConfigEditWindows . Values )
806
806
{
807
807
( item . GetVisualRoot ( ) as Window ) ? . Close ( ) ;
808
808
}
809
- foreach ( var item in AddWindows . Values )
809
+ foreach ( var item in GameAddWindows . Values )
810
810
{
811
811
( item . GetVisualRoot ( ) as Window ) ? . Close ( ) ;
812
812
}
0 commit comments