using System.Collections; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; using TMPro; using UnityEngine; using UnityEngine.UI; public class GlobalSelect : MonoBehaviour { [SerializeField] private GameObject OptionsList; [SerializeField] GameObject DropSelection1; [SerializeField] GameObject DropSelection2; [SerializeField] GameObject SideSelection; [SerializeField] GameObject Add_Btn; List ListAvailableItems; string GlobalName,OptionSelect,ColorID; int ObjectNumber,IndWide,IndHeight,IndUnique_Name,IndColorID; public void ClickGlobal(){ if(gameObject.GetComponent().isOn) { GlobalName=name; print("GlobalName==="+GlobalName); OptionSelect=Get.TogOn(OptionsList).name; if(OptionSelect=="RECOVER"){ DOIT.AllTogchildfalse(SideSelection); Add_Btn.SetActive(false); DropSelection1.SetActive(false); DropSelection2.SetActive(false); } } } // public void SetDropSelection(){ // ListAvailableItems=new(); // foreach(string line in _G.UIT_LibraryPanels) // { // string[] L=line.Split(','); // if(!string.IsNullOrEmpty(L[0]) && Set.Chars(L[0])!="ID")//L[0]======ID // { // if(L[IndColorID]=="All"){L[IndColorID] = ColorID;} // if(L[IndColorID].Split("_").Contains(ColorID) ) // { // ListAvailableItems.Add(L[IndUnique_Name]); // } // } // } // if(ListAvailableItems.Count==0)ListAvailableItems.Add("No match"); // EditPNL.AddDropdownItems(DropSelection1,ListAvailableItems); // } }