using UnityEngine; using UnityEngine.UI; using Vanguard.App; namespace Vanguard.UI { /// Гамбургер-меню логина: язык, версия и адрес сервера. public sealed class LoginMenu { private readonly GameObject _blocker; private readonly RectTransform _panel; public bool IsOpen => _panel != null && _panel.gameObject.activeSelf; public LoginMenu(Transform parent, AppConfig config) { _blocker = new GameObject( "MenuBlocker", typeof(RectTransform), typeof(Image), typeof(Button)); var blockerRect = (RectTransform)_blocker.transform; blockerRect.SetParent(parent, false); UiKit.Stretch(blockerRect); var blockerImage = _blocker.GetComponent(); blockerImage.color = new Color(0f, 0f, 0f, 0.001f); blockerImage.raycastTarget = true; var blockerButton = _blocker.GetComponent