using UnityEngine; using UnityEngine.UI; using TMPro; public class _G : MonoBehaviour { public static bool fullscreen = false; public static Vector3 CC = new(0, 0, 0);//Camera position center public static string VER = "Beta 2.4"; public static string FileName = "FN"; public static string FileDATA; public static string PATH;//Path for client library to download on member public static int L = 1;//Language( 1 English, 2 french, 3 Spanish); public static int S = 0;//System public static string Sys = " ''";//System symbol; public static int Count = 0; public static float CounterHeight = 1.5f; public static float CounterFront = 2f; public static string ROOM; public static bool Drag = false; public static float WIDE; public static float DEPTH; public static float HEIGHT; public static string Ds;//Door Style model public static string Dc;//Door Color texture public static string Ws;//Wood style public static string SUN = "s10";//Sun position public static string IsSelect = ""; public static string PNLSelect = ""; public static bool PIN = true; public static string EDITCAT = ""; public static string CAMSET = "FRONT"; public static string BGBTN = "666666"; //public static string SoftwarePath = "free"; //Colors----------------------- //public static string Color1 = "373435"; //public static string Color1 = "ED1B24";//Home Hardware red //public static string Color1 = "2CBEC8";//Bain depot //public static string Color1 = "007D43";//BMR //public static string Color1 = "01305C";//RONABC8848 //public static string Color1 = "BC8848";//IDEAL Cabinatry public static string Color1 = "575757";//Ukitchenit //public static string Color2 = "C5C5C5";//Ukitchenit //public static string Color1 = "FF6600";//Home Depot public static string Color2 = "ffffff"; public static string designer_path = "hb@udesignit.ca";//"Info@armoires-trudeau.ca"; public static string designerEmail = ""; public static string logo_path = "logoArmoirestrudeau.png"; public static string member_path = "armoirestrudeau"; public static Sprite Logo; public static Sprite Logo2=null; public static float hue; public static bool ROOMCLOSE = true; public static List WallPoints=new(); public static List WallPoints2D=new(); public static string[] wTexs = new string[24]; public static string WallSELECTED; //public static float[] wW = new float[24];//Wall Wide //public static Vector2[] wP = new Vector2[24];//POINT OFF STARTING WALL //public static Vector2[] wCP = new Vector2[24];//WALL CENTER POINT public static int[] wD = new int[24];//wALL DIRECTION 1 to 8 public static float[] wa = new float[24]; public static int MVC = 0; //Mesure value to change public static int closingWall = 1; public static Vector3 endPoint; public static bool deleteLastWall = false; public static float LS = 0.5f;//Line scale thicnes plan 2D public static Vector2[] wall = new Vector2[24];//Detecting Walls wall[0].x,wall[0].y ....... public static bool Down = false; public static bool Open = true; public static int NW = 0; public static int NWExterior = 0;//Number of Exterior walls faces in scene public static int NWInterior = 0;//Number of interior walls faces in scene //Email public static List Form = new(); public static List Style = new(); public static List DoorModel =new(); public static string CounterTop;// code envoye au logiciel : "CERA.8?F7FBFD?676666?..." public static string CounterTopName;// meme choix en clair pour le courriel : "Ceramique rustique / Blanc" public static List RoomColor =new(); public static List FloorStyle =new(); public static string Island; public static List WallsCabs =new(); public static List Options =new();// noms bruts des boutons, envoyes au logiciel public static List OptionsName =new();// memes options en clair, une par ligne dans le courriel public static string Budget = ""; // public static string DesignerEmail="hb@udesignit.ca"; public static int G = 0; public static string DOORCAB1;//DOORCAB1 public static string DOORCAB2;//DOORCAB2 public static string DOORCAB3;//DOORCAB3 public static string INTPNL1;//INT public static string INTPNL2;//INT public static string INTPNL3;//INT public static string EXTPNL1;//EXT public static string EXTPNL2;//EXT public static string EXTPNL3;//EXT public static string KICK1; public static string KICK2; public static string KICK3; public static string FACIA1; public static string FACIA2; public static string FACIA3; public static string OGEE1; public static string OGEE2; public static string OGEE3; public static string VALA1; public static string VALA2; public static string VALA3; public static string KNOB1; public static string KNOB2; public static string KNOB3; public static string COUN1; public static string COUN2; public static string COUN3; public static string SPLA1; public static string SPLA2; public static string SPLA3; public static string KNOBT1; public static string KNOBT2; public static string KNOBT3; public static string[] G1 = new string[] { DOORCAB1, INTPNL1, EXTPNL1, KICK1, FACIA1, OGEE1, VALA1, KNOB1, COUN1, SPLA1, KNOBT1 }; public static string[] G2 = new string[] { DOORCAB2, INTPNL2, EXTPNL2, KICK2, FACIA2, OGEE2, VALA2, KNOB2, COUN2, SPLA2, KNOBT2 }; public static string[] G3 = new string[] { DOORCAB3, INTPNL3, EXTPNL3, KICK3, FACIA3, OGEE3, VALA3, KNOB3, COUN3, SPLA3, KNOBT3 }; public static string[][] GLOBAL = new string[][] { G1, G2, G3 }; //OLD OFSET WALLS public static Vector2[] OW = new Vector2[24];//OLD WALL POSITION //KNOB public static string KNCs = "KNOB112,0,0,828282,NA,NA,r0,G"; //[0]Texture, [1]sizeX, [2]sizeY, [3]color1, [4]color2, [5]color3,[6]Rotation, [7]Shine public static string[] KNC = KNCs.Split(","[0]);//Texture,sizeX,sizeY,color1,color2,color3,Rotation,Shine //FLOOR public static string FLCs = "WOOD.1,#E2DABD,#674535,#C8C8C8,1.5-1.5,0,1,0.85,0.5,1"; //[0]Texture, [1]sizeX, [2]sizeY, [3]color1, [4]color2, [5]color3,[6]Rotation, [7]Shine public static string[] FLC = FLCs.Split(","[0]);//Texture,sizeX,sizeY,color1,color2,color3,Rotation,Shine //MOLDING WALLS public static string WMKs = "ND,0,0"; public static string[] WMK = WMKs.Split(","[0]); public static string WMOs = "ND,0,0"; public static string[] WMO = WMKs.Split(","[0]); //Form setup public static string status;//status Form or not (new no JN, old, JN //nJN,old,JN) //public static string ClientInfo = "";//Client Info from Form public static Dictionary ClientInfo = new() { { "Name", "" }, { "Address", "" }, { "Email", "" }, { "Phone", "" }, { "JobNumber", "" }, { "Note", "" } }; //GLOBALS public static string PNL; public static bool UMB = true;//Head Match box*/ public static string DCC = "DCAB101,2,FFFFFF,r0,S";//DOOR CAB public static string BCC = "BCAB101,2,FFFFFF,r0,S";//BOX CAB public static string PCC = "GPNL101,2,FFFFFF,r0,S";//PANEL public static string KCC = "KICK101,4.5,FFFFFF,r9,S";//KICK CAB public static string OCC = "OGEE101,0,FFFFFF,r0,S";//OGEE CAB public static string UCC = "UNDE101,0,FFFFFF,r0,S";//UNDER CAB public static string HCC = "HEAD101,0,FFFFFF,r0,S";//HEAD CAB public static string BSC = "SPLA101,2,FFFFFF,r0,G"; //SPLASH public static string SPC = "SPLA101,2,FFFFFF,r0,G"; //SIDEPNL public static string BLC = "WOOD101,2,FFFFFF,r0,G"; //BLOC public static string CTC = "COUN102,2,FFFFFF,r0,S"; //COUNTER TOP //Selected for constructing----------------------------------------------------------------------// public static string ff = "0";//Object from floor //OBJ--------------------------------------------------------------------------------OBJ// public static int OBJnum = 0; public static string[][] OBJs = new string[300][]; public static string addOBJ = ""; public static string movOBJ = ""; public static string SELECTED = ""; public static int nO; public static string TARGET = ""; public static string HIT = ""; public static string WS = "";//Wall selected public static float mCe;//mesure ceiling public static float mD;//mesure depth public static float mW;//mesure width public static float mH;//mesure Height public static float mK;//mesure Kick //Camera---------------------------------------------------------------------------------Camera// public static float Camx = 0; public static float Camy = 0; public static float Camz = -150; public static float CamA = 0; public static float CamWA = 0; //Room---------------------------------------------------------------------------------Room// public static GameObject FLOOR; public static GameObject CEIL; public static float ceilx = 0; public static float ceily = 0; public static float ceilz = 0; public static float ceilw; public static float ceild; public static float ceiltsw; public static float ceiltsh; public static Material ceilm; //Messure---------------------------------------------------------------------------------Messure// public static int System = 1;//1 Imperial 2 Metric public static Text VT; public static TMP_Text VTP; public static string VN; public static string V;//Value public static float Vo;//Value old //Others---------------------------------------------------------------------------------Others// public static string _mt; public static string _mtfile; public static bool TOUCH = false; public static bool Mobile = false; public static string Wallcolor = "#ffffff"; public static int Steps = 14; public static int Step = 0; //LIGHTS public static Dictionary LightSetting = new(){ {"SunPosition",180}, {"SunIntensity",0.25f}, {"AmbianceExposer",0f}, {"Occlusion",20f}, {"SceneLights",30000f}, {"ShadowRoom",0.75f}, {"CeilingIntensity",3600f}, {"GlowBloom",15f}, {"Environment",190f}, {"Reflection",1f}, {"Saturation",0f}, {"Contrast",50f} }; public static Dictionary DictionaryFloorList = new(){ {"T_Floor1","CERA.1"}, {"T_Floor2","CERA.17"}, {"T_Floor3","CERA.7"}, {"T_Floor4","CERA.8"}, {"T_Floor5","CERA.15"}, {"T_Floor6","CERA.25"}, {"T_Floor7","WOOD.3"}, {"T_Floor8","WOOD.28"}, {"T_Floor9","WOOD.24"}, }; public static Dictionary DictionaryColorList = new(){ {"T_Black","484747"}, {"T_Grey","C0C0C0"}, {"T_White","FFFFFF"}, {"T_Beige","E5E1C1"}, {"T_Yellow","DDC37E"}, {"T_Scoth","B39256"}, {"T_Brown","6D4722"}, {"T_Blue","6291CA"}, {"T_Green","509C5C"}, {"T_Red","B3342B"}, }; public static Dictionary PreferencesList = new(){ //{"WallCab",""}, {"Inspiraation",""}, {"Countertop",""}, {"Island",""}, {"Budget",""}, {"ApliancesColor",""}, {"SinkFaucetColor",""}, {"KnobsColor",""}, }; public static Dictionary LightColor = new() { { "WallColorLight", Color.white }, { "BaseColorLight", Color.white } }; //UIT LIBRAIRY public static List UIT_LibraryCabTextures = new(); public static List UIT_LibraryGlobalStart = new(); public static List UIT_LibraryPreferences = new(); public static List UIT_LibrarySoftColors = new(); public static List UIT_LibraryDoors = new(); public static List UIT_LibraryMoldings = new(); public static List UIT_LibraryPanels = new(); public static List UIT_LibraryCabinets = new(); public static List UIT_LibraryBoxTextures = new(); public static List UKITCHENIT_LibraryCabinets = new(); //public static List UIT_ClientPrices= new(); public static List UIT_LibraryPrices = new(); public static List UIT_LibraryStores = new(); public static List UIT_LibraryLexique = new(); public static List UIT_LibraryItems = new(); public static List UIT_LibraryTopCounters = new(); public static string StoreZone = ""; public static List WallsWidth = new(new float[24]);//Wall Wide public static List WallsPointCenter = new(new Vector2[24]);//wALL CENTER POINT public static List WallsAngle = new(new float[24]); //INTERIOR WALL public static List WALLS_HIDDEN_LIST = new(); //public static List ExteriorWallPoints=new(); public static List CORNER_POINTS_HEIGHT = new(); public static bool EXTERIOR_WALL_PLAN_CLOSED = false; public static bool isExteriorWall; public static WallLine SelectedWall2D; public static WallPoint SelectedPoint2D; public string WallCategorySelected; public static List INTERIOR_WALLS; public static List ExteriorWalllist = new(); public static List InteriorWalllist = new(); public static List CategoryWalllist = new(); public static List ThicknessyWalllist = new(); public static List HeightyWalllist = new(); public static List WallAssociateWallLine = new();//w1_5 public static WallPoint StartPoint2D; public static WallPoint EndPoint2D; public static List InteriorWallsPoints = new(); public static List WallsMaterial = new(new Material[24]); public static List WallsColor = new(new string[24]); public static Vector3 RoomOffset; public static List WallsTexture = new(new string[24]); //Messure---------------------------------------------------------------------------------Messure// public static string VTcat;//TMP or ST (standard) //ROOM POINTS public static List[] FloorPoints; public static List[] CeilingPoints; public static List[] ExteriorWallPoints; public static List WallsPointStart = new(new Vector2[24]);//Wall point Start public static bool MesureONOFF=false; public static List WallsDirection = new(new int[24]);//wALL DIRECTION 1 to 8 public static List InteriorBackEndWall; }