using System; using System.Collections.Generic; using DanroJump.Prizes; using DanroJump.Settings; using DanroJump.UI.Modals; using UnityEngine; using UnityEngine.UIElements; namespace DanroJump.UI.MainMenu { /// /// Сервисная модалка списка призовых уровней по очкам. /// public sealed class PrizeLevelsModalWindow : ModalWindowBase, IDisposable { private readonly ScrollView levelsList; private readonly Label statusLabel; private readonly Button addButton; private readonly Button closeButton; private readonly Dictionary dynamicButtonActions = new(); private IServiceSettingsService settingsService; private int lastNavigationSubmitFrame = -1; public PrizeLevelsModalWindow(VisualElement root, IServiceSettingsService settingsService) : base(root) { if (root == null) { return; } this.settingsService = settingsService; levelsList = root.Q("PrizeLevelsList"); statusLabel = root.Q