using UnityEngine; using UnityEngine.UI; namespace DevilLink2.UI { // Presentation adapter: mirrors the existing bound Text values, without another inventory/data model. public sealed class GameplayControlsLayout : MonoBehaviour { private static readonly Color DisabledControlTint=new Color(.45f,.41f,.50f,1); private Text sourceTitle,mode,level; private Button[] itemButtons;private readonly Image[] itemIcons=new Image[3]; private readonly Text[] sourceItems=new Text[3],names=new Text[3],counts=new Text[3]; public static GameplayControlsLayout Install(GameHUD hud,Button shop) { var existing=hud.GetComponent();if(existing)return existing; var v=hud.gameObject.AddComponent(); var back=hud.transform.Find("Lobby").GetComponent