using SO; using SO.Channels; using UnityEngine; using UnityEngine.UIElements; using Button = UnityEngine.UIElements.Button; namespace UI { public class MainMenuLayout : MonoBehaviour { [SerializeField] private SimpleChannelSO nextButtonChannel; [SerializeField] private SimpleChannelSO previousButtonChannel; [SerializeField] private SimpleChannelSO videoButtonChannel; [SerializeField] private SimpleChannelSO documentButtonChannel; [SerializeField] private SimpleChannelSO animationButtonChannel; [SerializeField] private StepChangeChannelSO stepChangeChannel; [SerializeField] private MachineChangeChannelSO machineChannel; [SerializeField] private SimpleChannelSO playButtonChannel; [SerializeField] private SimpleChannelSO stopButtonChannel; [SerializeField] private VisualTreeAsset documentPanelAsset; [SerializeField] private VisualTreeAsset videoPanelAsset; private VisualElement switchingArea; private Button nextButton; private Button previousButton; private Button videoButton; private Button documentButton; private Button animationButton; private Label machineName; private Label processName; private Label stepName; private Label stepNameText; private Label stepDescriptionText; private VisualElement videoScreen; private VisualElement documentScreen; private VisualElement documentPanel; private Texture currentDocument; private Button playButton; private Button stopButton; private void OnEnable() { var root = GetComponent().rootVisualElement; machineName = root.Q