using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
namespace GrassCutter
{
///
/// In-game HUD: compass (top centre), tool plate with its container (bottom left), tool belt (bottom centre), wallet
/// (bottom right), the sector underfoot and the planet (top right), key hints (right), build palette, crosshair/prompt,
/// floating cash, toasts, banners, name tags and tutorial hints.
///
public class Hud
{
public enum ToastKind { Info, Good, Warn, Money }
readonly VisualElement _root, _world;
Label _money, _planetPct, _planetSub, _sectorName, _sectorPct;
VisualElement _sectorHex, _chips;
Label _chipMow, _chipBoost, _chipCruise;
Compass _compass;
int _hexState = -1;
VisualElement _coin;
VisualElement _hotbar;
readonly Dictionary _slots = new Dictionary();
VisualElement _plate, _gauge, _gaugeFill, _buildHint, _bootsHint, _blade, _receipt, _phoneUpHint, _phoneTurnHint;
Label _toolName, _toolKg, _toolRate;
VisualElement _crosshair, _prompt;
Label _promptKey, _promptTitle, _promptText;
VisualElement _promptMore;
string _promptWas;
VisualElement _toasts, _banner, _hint, _players;
Label _hintText;
VisualElement _build, _buildRow, _buildCats;
Label _buildHelp, _buildReason;
readonly List