26 lines
		
	
	
		
			734 B
		
	
	
	
		
			C#
		
	
	
	
	
	
			
		
		
	
	
			26 lines
		
	
	
		
			734 B
		
	
	
	
		
			C#
		
	
	
	
	
	
| using JetBrains.Annotations;
 | |
| using System;
 | |
| 
 | |
| namespace NEG.UI.Popup
 | |
| {
 | |
|     [PublicAPI]
 | |
|     public interface IPopup
 | |
|     {
 | |
|         /// <summary>
 | |
|         /// Event to fire when popup is closed
 | |
|         /// </summary>
 | |
|         event Action<PopupData> OnPopupClosed;
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Show popup
 | |
|         /// </summary>
 | |
|         /// <param name="data">data assigned to popup, used to give info that popup is closed</param>
 | |
|         public void Show(PopupData data);
 | |
| 
 | |
|         /// <summary>
 | |
|         /// Close popup or mark as closed if not visible
 | |
|         /// </summary>
 | |
|         /// <param name="silence">if true hide visually, without firing callbacks to properly close</param>
 | |
|         void Close(bool silence = false);
 | |
|     }
 | |
| } |