
using System;
using System.Collections.Generic;
using TMPro;
using UnityEngine;

namespace RothenburgAR.UI
{
    [Serializable]
    public struct MenuEntry
    {
        public string Token;
        public TextMeshProUGUI TextMesh;
    }

    public class SettingsViewBehaviour : BaseViewBehaviour
    {
        [SerializeField]
        private List<MenuEntry> MenuEntries;

        public void OnEnable()
        {
            foreach (MenuEntry entry in MenuEntries)
            {
                entry.TextMesh.SetText(LanguageManager.Instance.GetString(entry.Token));
            }
        }
    }
}