using SC.XR.Unity; using ShadowStudio.Model; using Studio.Scripts; using System; using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using XRTool.Util; using XRTool.WorldUI; namespace ShadowStudio.UI { [RequireComponent(typeof(WorldDlg))] public class ZiYuanKuDlg : UnitySingleton { private Transform fenleiAllTogglesTran; private ToggleGroup fenleiAllTogglesGroup; private ZiYuanFileList ziYuanFileList; private Transform wuwenjian; private Button closeBtn; private Button loadBtn; private Button canelBtn; private SCInputField searchInputField; private Button searchBtn; private Button clearBtn; public List NeedLoadartInfos; public Action ShowOrHideGrayImage; public Action CanelLoadAction; protected override void Awake() { base.Awake(); HomeProxy.Instance.SearchArtListAction += SearchArtList; HomeProxy.Instance.NoArtReturnAction += ShowNoArt; NeedLoadartInfos = new List(); } void Start() { WorldDlg dlg = GetComponent(); ziYuanFileList = dlg.GetBreadthChild("ItemFileList"); wuwenjian = dlg.GetBreadthChild("Wuwenjian"); fenleiAllTogglesTran = dlg.GetBreadthChild("FenleiAllToggles"); fenleiAllTogglesGroup = dlg.GetBreadthChild("FenleiAllToggles"); closeBtn = dlg.GetBreadthChild