29 lines
		
	
	
		
			572 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			29 lines
		
	
	
		
			572 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using UnrealSharp.Engine;
 | |
| using UnrealSharp.Attributes;
 | |
| using UnrealSharp.BusyRabbit;
 | |
| using UnrealSharp;
 | |
| using UnrealSharp.UMG;
 | |
| 
 | |
| namespace Level.GameSettings;
 | |
| 
 | |
| [UClass]
 | |
| public class ABusyLevelHud : APW_UIFrameworkHud
 | |
| {
 | |
|     [UProperty(PropertyFlags.EditDefaultsOnly)]
 | |
|     public TSubclassOf<UPW_WidgetPanel> WidgetClass { set; get; }
 | |
| 
 | |
| 
 | |
|     protected override void BeginPlay()
 | |
|     {
 | |
|         base.BeginPlay();
 | |
| 
 | |
|     }
 | |
| 
 | |
|     protected override void OnResourceLoaded()
 | |
|     {
 | |
| 
 | |
|         var widget = CreateWidget(WidgetClass);
 | |
|         UIManager.PushWidgetPanel(widget);
 | |
|     }
 | |
|     
 | |
| } |