Skip to content

Commit b9f32af

Browse files
committed
Added resetting of displayed popup id
1 parent ee5b2b4 commit b9f32af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Assets/BossRoom/Scripts/Client/UI/PopupPanel.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public void OnConfirmClick()
4747
/// </summary>
4848
void ResetState()
4949
{
50+
m_DisplayedPopupId = -1;
5051
m_TitleText.text = string.Empty;
5152
m_MainText.text = string.Empty;
5253
m_ConfirmButton.SetActive(false);
@@ -110,6 +111,9 @@ long SetupPopupPanel(string titleText, string mainText, bool isCloseableByUser =
110111
return m_DisplayedPopupId;
111112
}
112113

114+
/// <summary>
115+
/// Closes the currently displayed popup if it has the requested id.
116+
/// </summary>
113117
void ClosePopupPanel(long popupId)
114118
{
115119
if (m_DisplayedPopupId == popupId)

0 commit comments

Comments
 (0)