using System;
using UnityEngine.UIElements;
namespace KernelPanic.UI
{
///
/// Binds shared command-style chrome used by terminal sub-screens.
///
public sealed class ScreenFrameController
{
private Label _titleLabel;
private Label _hintLabel;
public void Bind(VisualElement panel, string title, string hint, Action onBack)
{
// TemplateContainer is a real layout node; hiding only its child leaves a flex slot.
if (panel.parent is TemplateContainer template)
{
template.AddToClassList("screen-slot");
template.EnableInClassList("hidden", panel.ClassListContains("hidden"));
}
_titleLabel = panel.Q