using BeinLab.Util; using DG.Tweening; using SC.XR.Unity.Module_InputSystem; using SC.XR.Unity.Module_InputSystem.InputDeviceHead; using SC.XR.Unity.Module_InputSystem.InputDeviceHand; using ShadowStudio.Tool; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XRTool.Util; using XRTool.WorldUI; using ShadowStudio.Model; using SC.XR.Unity.Module_InputSystem.InputDeviceGC.BT3Dof; using SC.XR.Unity.Module_InputSystem.InputDeviceGC.KS; using Studio.Scripts; namespace ShadowStudio.UI { enum FilePanelType { ZiYuanKuDlg=0, PersonalDlg=1 } [RequireComponent(typeof(WorldDlg))] /// /// 控制台窗口 /// public class ConsoleDlg : UnitySingleton { private Transform AllMenuToggles; public List IconDlgList; public static int PaintBrushDlg = 0; public static int PiZhuDlg = 1; public static int ZiYuanKuDlg = 2; public static int PersonalFiledlg = 3; public static int FileListDlg = 4; private Transform IconDlgToggleGroupTran; private ToggleGroup IconDlgToggleGroup; public Toggle PiZhuToggle; private Button shortcutkey; public Transform AnmationPos; private Button userInfoBt; //private Button WenJianBt; private WorldDlg fileListDlg; public Camera vufora_camera; public Transform NotePadPar; public Transform WorldCanvas; public GameObject TipPop; public Text TipPopText; public static bool IsOne = false; public Vector3 GetCenterPos() { if (shortcutkey) { return shortcutkey.transform.position; } return Vector3.zero; } private void Start() { ArtInfoMgr.Instance.InitPackage(HomeProxy.Instance.ArtList); WorldDlg dlg = GetComponent(); AnmationPos = dlg.GetBreadthChild("AnmationPos"); fileListDlg = dlg.GetBreadthChild("FileListDlg"); fileListDlg.gameObject.SetActive(false); AllMenuToggles = dlg.GetBreadthChild("AllMenuToggles"); IconDlgToggleGroup = dlg.GetBreadthChild("IconDlgToggleGroup"); IconDlgToggleGroupTran = dlg.GetBreadthChild("IconDlgToggleGroup"); userInfoBt = dlg.GetBreadthChild