28 lines
		
	
	
		
			759 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			759 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using System;
 | |
| using System.Collections.Generic;
 | |
| 
 | |
| namespace NEG.UI.Popup
 | |
| {
 | |
|     public class DefaultPopupData : PopupData
 | |
|     {
 | |
|         private readonly IDefaultPopup defaultPopup;
 | |
| 
 | |
|         private readonly string title;
 | |
|         private readonly string content;
 | |
|         private readonly List<(string, Action)> options;
 | |
| 
 | |
|         public DefaultPopupData(IDefaultPopup popup, string title, string content, List<(string, Action)> options) : base(popup)
 | |
|         {
 | |
|             defaultPopup = popup;
 | |
|             this.title = title;
 | |
|             this.content = content;
 | |
|             this.options = options;
 | |
|         }
 | |
| 
 | |
|         public override void Show()
 | |
|         {
 | |
|             defaultPopup.SetContent(title, content, options);
 | |
|             base.Show();
 | |
|         }
 | |
|     }
 | |
| } |