forked from akanyan/mu3-mods
		
	
		
			
				
	
	
		
			31 lines
		
	
	
		
			639 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			639 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using MonoMod;
 | |
| 
 | |
| namespace MU3;
 | |
| 
 | |
| class patch_UIRetireInfo: UIRetireInfo {
 | |
|     private ANM_PLY_retire_score _retireScore;
 | |
|     private bool _isEnable;
 | |
| 
 | |
|     [MonoModEnumReplace]
 | |
|     public new enum Rank {
 | |
|         S,
 | |
|         SS,
 | |
|         SSS,
 | |
|         SSS1,
 | |
|         PB,
 | |
|         AA,
 | |
|         MAX
 | |
|     }
 | |
| 
 | |
|     public extern void orig_setupRetireInfo(Rank rank, int score);
 | |
|     public void setupRetireInfo(Rank rank, int score) {
 | |
|         if(rank == Rank.MAX) {
 | |
|             _isEnable = false;
 | |
|             return;
 | |
|         }
 | |
|         _isEnable = true;
 | |
|         _retireScore.setRank((UIRetireInfo.Rank)rank);
 | |
|         _retireScore.setScore(score);
 | |
|     }
 | |
| }
 |