using UnityEngine; using UnityEngine.UI; using TMPro; public class _G : MonoBehaviour { public static bool fullscreen = false; public static Vector3 CC = new Vector3(0, 0, 0);//Camera position center public static string VER = "Alpha 1.0.1"; 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 Color1 = "575757"; public static string Color2 = "C5C5C5"; public static string designer_path = "hb@udesignit.ca";//"Info@armoires-trudeau.ca"; public static string logo_path = "logoArmoirestrudeau.png"; public static string member_path = "armoirestrudeau"; 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 List CounterTop =new(); public static List RoomColor =new(); public static List FloorStyle =new(); public static List Island =new(); //public static string[] RoomColor = new string[] { "", "", "", "", "", "", "", "" }; //public static string Island = ""; public static string Budget = ""; public static string[] RoomCabOn = new string[] { "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "" }; // 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 = "Plywood12x14,4,4,FFFFFF,FFFFFF,NA,r0,G"; //[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 = ""; public static int Steps = 14; public static int Step = 0; //LIGHTS public static Dictionary LightSetting = new(){ {"SunPosition",180}, {"SunIntensity",0.25f}, {"AmbianceExposer",1.0f}, {"Occlusion",0.25f}, {"SceneLights",5000f}, {"ShadowRoom",0.75f}, {"CeilingIntensity",2000f}, {"GlowBloom",1f}, }; 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; }