public void HidePopup(string popupName)
 {
     UIPopup.HidePopup(popupName);
 }
        private void DrawPopupTesterOptions()
        {
            GUILayout.Space(DGUI.Properties.Space(4));

            m_exampleSprite = (Sprite)EditorGUILayout.ObjectField(m_exampleSprite, typeof(Sprite), false);
            GUILayout.Space(DGUI.Properties.Space(4));

            GUILayout.BeginHorizontal();
            {
                m_targetPopupName = EditorGUILayout.TextField(m_targetPopupName);
                GUILayout.Space(DGUI.Properties.Space(2));
                m_addToQueue = DGUI.Toggle.Switch.Draw(m_addToQueue, "Add to Queue", ComponentColorName, false, true, false);
            }
            GUILayout.EndHorizontal();
            GUILayout.Space(DGUI.Properties.Space(2));
            GUILayout.BeginHorizontal();
            {
                m_hideOnClickAnywhere = DGUI.Toggle.Switch.Draw(m_hideOnClickAnywhere, "Hide OnClick Anywhere", ComponentColorName, false, true, true);
                GUILayout.Space(DGUI.Properties.Space(2));
                m_hideOnClickOverlay = DGUI.Toggle.Switch.Draw(m_hideOnClickOverlay, "Hide OnClick Overlay", ComponentColorName, false, true, true);
            }
            GUILayout.EndHorizontal();
            GUILayout.Space(DGUI.Properties.Space(2));
            GUILayout.BeginHorizontal();
            {
                m_hideOnClickContainer = DGUI.Toggle.Switch.Draw(m_hideOnClickContainer, "Hide OnClick Container", ComponentColorName, false, true, true);
                GUILayout.Space(DGUI.Properties.Space(2));
                m_hideOnBackButton = DGUI.Toggle.Switch.Draw(m_hideOnBackButton, "Hide On Back Button", ComponentColorName, false, true, true);
            }
            GUILayout.EndHorizontal();
            GUILayout.Space(DGUI.Properties.Space(4));

            var   textSize     = Size.XL;
            float buttonHeight = DGUI.Sizes.BarHeight(textSize);

            GUILayout.BeginHorizontal();
            {
                if (DGUI.Button.Dynamic.DrawIconButton(DGUI.Icon.Show, UILabels.Show, textSize, TextAlign.Left, ComponentColorName, ComponentColorName, buttonHeight))
                {
                    UIPopup popup = UIPopupManager.ShowPopup(m_targetPopupName, m_addToQueue, false);
                    popup.DestroyAfterHide     = true;
                    popup.HideOnClickAnywhere  = m_hideOnClickAnywhere;
                    popup.HideOnClickOverlay   = m_hideOnClickOverlay;
                    popup.HideOnClickContainer = m_hideOnClickContainer;
                    popup.HideOnBackButton     = m_hideOnBackButton;

                    if (m_exampleSprite != null)
                    {
                        popup.Data.SetImagesSprites(m_exampleSprite, m_exampleSprite, m_exampleSprite);
                    }
                }

                GUILayout.Space(DGUI.Properties.Space());

                if (DGUI.Button.Dynamic.DrawIconButton(DGUI.Icon.Hide, UILabels.Hide, textSize, TextAlign.Left, ComponentColorName, ComponentColorName, buttonHeight))
                {
                    UIPopup.HidePopup(m_targetPopupName);
                }
            }
            GUILayout.EndHorizontal();
        }