using UnityEngine; public class ConstructCORNERWALL : MonoBehaviour { static string[] C;//CODE CABINET ADN static int nO;//Number of the cabinet Object static string[] codeD1; static string[] codeD2; static string DTvalue;//door thickness fron csv static GameObject BASE; static float PosyS;//Side panel Y position static float W; static float HB;//HB HEIGHT BOX ONLY static float DB;//Depth Box static float px;//Cabinet position x static float py;//Cabinet position y static float pz;//Cabinet position z static float rx;//Cabinet rotation angle X static float ry;//Cabinet rotation angle Y static float rz;//Cabinet rotation angle Z static float DBD;//Depth Box+Door static float fw50;//Filler Right static float fw51;//Filler Left static float sl;//Side left wide for corner cabinet static float sr;//Side right wide for corner cabinet static float t;//tickness panels static float of;//Value for offset setting static float dr;//Door wide right static float dl;//Door wide left static string texb; static float OS1;//Offset on left sidePosY static float OS2;//Offset on back static float OS3;//Offset on right side static float OS4;//Offset on front static float DoorThickness; static float Back45;//Back static GameObject DOOR; static GameObject S1, S2, S3, S4;//Side Panels static GameObject TOP, UNDER, SHELF; static Vector3 P1, P2, P3, P4, P5, P6, CenterBox;//Position points static GameObject FL, FR;//Filler left and right static Vector3 VolumeBase; static float backBox,frontBox,leftBox,rightBox; static float OFO;//Ogee Fascia OffSet; static string Captext; static float WallDeptCabinet; public static void AddCab(int numO) { nO = numO; C = _G.OBJs[nO]; //print("C[1]====="+C[1]); //Back 45 panel string Back45string=UIT.Value(Library.Cabinet,C[1],Header.BA); if(Back45string=="")Back45=0; Back45=DOIT.ConvertStringToNumber(Back45string); //SETTING DOOR THICKNESS DoorThickness = Get.DoorThickness(nO); WallDeptCabinet=_P.Listfloat["WALL_DEPTH"]; //string PLR = C[23]; W = DOIT.ConvertStringToNumber(C[6]); HB = DOIT.ConvertStringToNumber(C[7]); DB = DOIT.ConvertStringToNumber(C[8]);//Depth Box DBD = DOIT.ConvertStringToNumber(C[8]) + DoorThickness;//Depth Box+Door t = DOIT.ConvertStringToNumber(C[9]); ;//tickness px = DOIT.ConvertStringToNumber(C[15]); py = DOIT.ConvertStringToNumber(C[16]); pz = DOIT.ConvertStringToNumber(C[17]); rx = DOIT.ConvertStringToNumber(C[18]); ry = DOIT.ConvertStringToNumber(C[19]); rz = DOIT.ConvertStringToNumber(C[20]); if (C[52] == "none") C[52] = "0"; if (C[50].Split('?')[0] != "NONE") { fw50=DOIT.ConvertStringToNumber(C[50].Split("?")[3]);} if (C[51].Split('?')[0] != "NONE") { fw51=DOIT.ConvertStringToNumber(C[51].Split("?")[3]);} //Texture texb = C[62]; OS1 = 0; OS2 = 0; OS3 = 0; OS4 = 0; // string[] C81 = C[81].Split(','); // if (C81[0] != "0") OS1 = 0.625f; // if (C81[1] != "0") OS2 = 0.625f; // if (C81[2] != "0") OS3 = 0.625f; // if (C81[3] != "0") OS4 = 0.625f; OFO=-t*0.5f;//Ogee Fascia OffSet; if(Get.Bool(C[4], "W2_W4_W6_W9_W11_W3_W5_W7_W10_W12")) { if (C[49] != "GHOST") { OS1 += fw50; OS4 += fw51; } } if ( C[4] == "W9"){OS1 += DoorThickness; } if ( C[4] == "W10") {OS4 += DoorThickness; } if(Get.Bool(C[4], "W26")) { if (C[49] == "COLLISION") { OS2 += fw50; OS3 += fw51; } } if (C[28] == "none" || C[28] == null || C[28] == "") C[28] = DOIT.CNs(_P.Listfloat["WALL_DEPTH"]); if (C[29] == "none" || C[29] == null || C[29] == "") C[29] = DOIT.CNs(_P.Listfloat["WALL_DEPTH"]); sl = DOIT.ConvertStringToNumber(C[28]); sr = DOIT.ConvertStringToNumber(C[29]); dr = DB - sr; dl = W - sl; of = 0.1f;//offset for under pnl finish P1 = new(0, 0, 0); P2 = new(0, 0, 0); P3 = new(0, 0, 0); P4 = new(0, 0, 0); P5 = new(0, 0, 0); P6 = new(0, 0, 0); PosyS = 0; //create BASE BASE = GameObject.CreatePrimitive(PrimitiveType.Cube); if(Get.Bool(C[4], "W2_W4_W6_W9_W11_W26")) { BASE.transform.localScale = new(W + OS2 + OS4 + 0.5f, HB + 0.5f, DB + 0.5f + OS1 + OS3); VolumeBase=BASE.transform.localScale; CenterBox=new(-VolumeBase.x*0.5f+0.25f+OS2+W*0.5f,0,-VolumeBase.z*0.5F+0.25f+OS1+DB*0.5f); } if(Get.Bool(C[4], "W3_W5_W7_W10_W12_W27")) { BASE.transform.localScale = new(W + OS1 + OS3 + 0.5f, HB + 0.5f, DB + 0.5f + OS2 + OS4); VolumeBase=BASE.transform.localScale; CenterBox=new(-VolumeBase.x*0.5f+0.25f+OS1+W*0.5f,0,-VolumeBase.z*0.5F+0.25f+OS4+DB*0.5f); } BASE.name = C[0]; BASE.transform.parent = GameObject.Find("SCENE").transform; BASE.tag = "cabwall"; //BOX POSITION backBox=CenterBox.z+DB*0.5f; frontBox=CenterBox.z-DB*0.5f-OS1; leftBox=CenterBox.x-W*0.5f; rightBox=CenterBox.x+W*0.5f; //RigidBody BASE.AddComponent(); BASE.GetComponent().useGravity = false; BASE.GetComponent().isKinematic = true; BASE.GetComponent().detectCollisions = true; BASE.GetComponent().isTrigger = true; BASE.transform.parent = GameObject.Find("SCENE").transform; // 2D Plan Top View CREATE.Point(BASE, "PBLU", leftBox, HB * 0.5f, backBox);//P1 CREATE.Point(BASE, "PBRU", rightBox, HB * 0.5f, backBox);//P2 CREATE.Point(BASE, "PFLU", leftBox, HB * 0.5f, frontBox);//P3 CREATE.Point(BASE, "PFRU", rightBox, HB * 0.5f, frontBox);//P4 CREATE.Point(BASE, "PBLB", leftBox, -HB * 0.5f, backBox);//P1 CREATE.Point(BASE, "PBRB", rightBox, -HB * 0.5f, backBox);//P2 CREATE.Point(BASE, "PFLB", leftBox, -HB * 0.5f, frontBox);//P3 CREATE.Point(BASE, "PFRB", rightBox, -HB * 0.5f, frontBox);//P4 //print("C[4]===="+C[4]); switch (C[4]) { case "W2": W2(); break; case "W3": W3(); break; case "W4": W4(); break; case "W5": W5(); break; case "W6": W6(); break; case "W7": W7(); break; case "W9": W9(); break; case "W10": W10(); break; case "W11": W11(); break; case "W12": W12(); break; case "W19": W19(); break; //case "W20":W20();break; case "W26": W26(); break; case "W27": W27(); break; } //ADD LIGHT//ADD LIGHT // float RotationY=-45; // if(C[4]=="B9" ||C[4]=="B9")RotationY=0; // if(Get.Bool(C[4],"W3_W5_W7_W12_W27" ))RotationY=45; // GameObject ImageLigth = SelectLight.Add_light_on_Wall_Cabinet(W,HB,RotationY,C[40]); CAPS.ShowTOP(C[0][4..], BASE,0, HB*0.5f,0, Color.blue); CAPS.ShowFRONT(C[0][4..], BASE, 0, 0, frontBox,Color.blue); // ImageLigth.transform.SetParent(BASE.transform); Mesure.Addpoints("CORENER WALL", BASE); //ADD LIGHT UNDER SelectLight.AddSpotLight(BASE,HB,C[40]); //Stet in scene BASE.transform.position = new(px, py, pz); BASE.transform.localRotation = Quaternion.Euler(rx, ry, rz); BASE.AddComponent(typeof(MoveObject)); BASE.GetComponent().material = _G.INV; //CAPS SHOW string Unique_Name = UIT.Value(Library.Cabinet,C[1],Header.ID); Captext = Unique_Name + "\n" + DOIT.CSs(C[6]) + "x" + DOIT.CSs(C[7]); } public static void W2() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //SHELF ON OPENING AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "90_Left",CenterBox); //DOOR float d1w = W - sl; C[25] = DC.Resize(C[25], d1w, HB, nO); string[] codeD1 = C[25].Split('_'); DOOR = Createdoor.Patern(codeD1, nO); DOOR.transform.position = new(rightBox- d1w*0.5f, 0, backBox - sr - DoorThickness*0.5f); DOOR.transform.localRotation = Quaternion.Euler(0, 0, 0); DOOR.transform.parent = BASE.transform; float d2w = DB - sr; C[26] = DC.Resize(C[26], d2w, HB, nO); codeD2 = C[26].Split('_'); GameObject DOOR2 = Createdoor.Patern(codeD2, nO); DOOR2.transform.position = new(leftBox+ sl + DoorThickness*0.5f, 0, frontBox + d2w*0.5f); DOOR2.transform.localRotation = Quaternion.Euler(0, -90, 0); DOOR2.name = "DoorPatern2"; DOOR2.transform.parent = BASE.transform; //FILLER if (C[50].Split('?')[0] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + sl - t*0.5f , 0, frontBox - fw50*0.5f , 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51].Split('?')[0] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f , 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } //if (C[50].Split('?')[0] != "NONE") { fw50=DOIT.ConvertStringToNumber(C[50].Split("?")[3]);} //if (C[51].Split('?')[0] != "NONE") { fw51=DOIT.ConvertStringToNumber(C[51].Split("?")[3]);} //ANCHORE POINT CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", leftBox + sl +OFO, HB*0.5f, backBox-sr-OFO); CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //CAPS.Show(Captext, BASE, DB, rightBox- 5, frontBox + 5); //CAPS.ShowTOP(C[0][4..], BASE,0, HB*0.5f,0); //CAPS.ShowTOP(C[0][4..], BASE,0, HB*0.5f,0); } public static void W3() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR float d1w = W - sr; C[25] = DC.Resize(C[25], d1w, HB, nO); string[] codeD1 = C[25].Split('_'); DOOR = Createdoor.Patern(codeD1, nO); DOOR.transform.position = new(leftBox+ d1w*0.5f, 0, backBox - sl); DOOR.transform.localRotation = Quaternion.Euler(0, 0, 0); DOOR.transform.parent = BASE.transform; float d2w = DB - sl; C[26] = DC.Resize(C[26], d2w, HB, nO); codeD2 = C[26].Split('_'); GameObject DOOR2 = Createdoor.Patern(codeD2, nO); DOOR2.transform.position = new(rightBox- sr, 0, frontBox + d2w*0.5f); DOOR2.transform.localRotation = Quaternion.Euler(0, 90, 0); DOOR2.name = "DoorPatern2"; DOOR2.transform.parent = BASE.transform; //SHELF AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "90_Left",CenterBox); //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, backBox - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt;//ANCHORE POINT //OFO=0; CREATE.Point(BASE, "PO1", leftBox -OFO, HB*0.5f, backBox-sl-OFO); CREATE.Point(BASE, "PO4", rightBox-sr-OFO, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO2", leftBox-OFO, HB*0.5f, backBox); CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO5", rightBox - sr - OFO, HB*0.5f, backBox-sl-OFO); CREATE.Point(BASE, "FL", leftBox , HB*0.5f, backBox-sr+t*0.5f); CREATE.Point(BASE, "FR", rightBox-sr+t*0.5f, HB*0.5f, backBox); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //CAPS.Show(Captext, BASE, DB,leftBox+ 5, frontBox + 5); } public static void W4() { //Check Special Sides off CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(rightBox - dl*0.5f, 0, frontBox + dr*0.5f); DOOR1.transform.SetParent(BASE.transform); //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + sl - t*0.5f , 0, frontBox - fw50*0.5f , 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f , 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; //ANCHORE POINT CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //Shelf AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "45_Left",CenterBox); string texshelf = C[62]; if (C[87].IndexOf("1") != -1) { texshelf = C[69]; } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W5() { //Check Special Sides off CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = W - sr; dl = DB - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dr / dl) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, 90 - A, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(leftBox + dr*0.5f, 0, frontBox + dl*0.5f); DOOR1.transform.parent = BASE.transform; //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, backBox - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT CREATE.Point(BASE, "PO1", leftBox-OFO, HB*0.5f, backBox-sl-OFO); CREATE.Point(BASE, "PO2", leftBox-OFO, HB*0.5f, backBox); CREATE.Point(BASE, "PO4", rightBox-sr-OFO, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "FL", leftBox , HB*0.5f, backBox - sl+t*0.5f ); CREATE.Point(BASE, "FR", rightBox-sr+t*0.5f, HB*0.5f, backBox); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); //ROW1 of = 0.625f; P1 = new(leftBox+ of, 0, backBox - sl); P2 = new(leftBox+ of, 0, backBox - of); P3 = new(rightBox- of, 0, backBox - of); P4 = new(rightBox- of, 0, frontBox + of); P5 = new(rightBox- sr, 0, frontBox + of); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAPS.Show(Captext, BASE, DB, -W*0.5f, frontBox); } public static void W6() { //print("Pass W6 sr==="+sr+" sl==="+sl); //Check Special Sides off CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); DOOR1.transform.SetParent(BASE.transform); //FILLER if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50 * 0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox-t*0.5f, 0, backBox + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, backBox - sr - pc); CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); CREATE.Point(BASE, "P51", W*0.5f, 0, backBox - sr); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); string texshelf = C[62];//Get.BoxTex(C, 7); if (C[87].IndexOf("1") != -1) { texshelf = C[69]; } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W7() { //Check Special Sides off CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = W - sr; dl = DB - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dr / dl) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, 90 - A, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(leftBox+ dr*0.5f, 0, frontBox + dl*0.5f); DOOR1.transform.parent = BASE.transform; //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, backBox - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1", leftBox, HB*0.5f, backBox- sl - pc); CREATE.Point(BASE, "PO4", rightBox- sr - pc, HB*0.5f, frontBox); CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, backBox); CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, frontBox); CREATE.Point(BASE, "PO5", rightBox, HB*0.5f, backBox); CREATE.Point(BASE, "P1", leftBox, 0, backBox- sl - pc); CREATE.Point(BASE, "P2", leftBox, 0, backBox); CREATE.Point(BASE, "P3", rightBox, 0, frontBox); CREATE.Point(BASE, "P4", rightBox, 0, frontBox); CREATE.Point(BASE, "P5", rightBox- sr - pc, 0, frontBox); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); //ROW1 of = 0.625f; P1 = new(leftBox+ of, 0, backBox - sl); P2 = new(leftBox+ of, 0, backBox - of); P3 = new(rightBox- of, 0, backBox - of); P4 = new(rightBox- of, 0, frontBox + of); P5 = new(rightBox- sr, 0, frontBox + of); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAPS.Show(Captext, BASE, DB, -W*0.5f, frontBox); } public static void W9() { //CONTOUR//; CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox,Back45);//DBD*0.5f; //DOOR C[25] = DC.Resize(C[25], W - sl, HB, nO); string[] codeD1 = C[25].Split("_"[0]); DOOR = Createdoor.Patern(codeD1, nO); DOOR.transform.position = new(rightBox- (W - sl)*0.5f, 0, frontBox-DoorThickness*0.5f); DOOR.transform.parent = BASE.transform; //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + WallDeptCabinet - t*0.5f, 0, frontBox - fw50*0.5f-t, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } OFO=t*0.5f; //ANCHORE POINT CREATE.Point(BASE, "PO1", leftBox + sl -OFO, HB*0.5f, frontBox-t+OFO); CREATE.Point(BASE, "PO4", rightBox-OFO, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-t+OFO); CREATE.Point(BASE, "PO3", rightBox-OFO, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", leftBox + sl -OFO, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "FL", leftBox + WallDeptCabinet-t*0.5f , HB*0.5f, frontBox-t); CREATE.Point(BASE, "FR", rightBox, HB*0.5f, frontBox+t*0.5f); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //CAP SHOW //CAPS.Show(Captext, BASE, DB, rightBox- 5, frontBox - 5); //CAPS.ShowTOP(C[0][4..], BASE, HB*0.5f,frontBox); } public static void W10() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox,Back45); //DOOR C[25] = DC.Resize(C[25], W - sr, HB, nO); string[] codeD1 = C[25].Split("_"[0]); DOOR = Createdoor.Patern(codeD1, nO); DOOR.transform.position = new(leftBox + (W - sr)*0.5f, 0, frontBox-DoorThickness*0.5f); DOOR.transform.parent = BASE.transform; //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50*0.5f, 0, frontBox + t / 1, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox - WallDeptCabinet + t*0.5f , 0, frontBox - fw51*0.5f-t, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } OFO=t*0.5f; //ANCHORE POINT CREATE.Point(BASE, "PO1", leftBox+OFO, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "PO4", rightBox - sr+OFO, HB*0.5f, frontBox-t+OFO); CREATE.Point(BASE, "PO2", leftBox+OFO, HB*0.5f, backBox); CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, frontBox-t+OFO); CREATE.Point(BASE, "PO5", rightBox - sr+OFO, HB*0.5f, frontBox+OFO); CREATE.Point(BASE, "FL", leftBox , HB*0.5f, frontBox+t*0.5f); CREATE.Point(BASE, "FR", rightBox- WallDeptCabinet+t*0.5f, HB*0.5f, frontBox-t); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); //RECOVER Recover.AddRecoverOnCornerCab(BASE,C,leftBox,backBox,rightBox); //CAP SHOW //CAPS.Show(Captext, BASE, DB,leftBox+ 5, frontBox - 5); } public static void W11() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); DOOR1.transform.SetParent(BASE.transform); //FILLER if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50 * 0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox-t*0.5f, 0, backBox + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, backBox - sr - pc); CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); CREATE.Point(BASE, "P51", W*0.5f, 0, backBox - sr); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); //ROW1 of = 0.625f; P1 = new(leftBox+ of, 0, frontBox + of); P2 = new(leftBox+ of, 0, backBox - of); P3 = new(rightBox- of, 0, backBox - of); P4 = new(rightBox- of, 0, backBox - sr); P5 = new(leftBox+ sl, 0, frontBox + of); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAP SHOW //CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W12() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); DOOR1.transform.SetParent(BASE.transform); //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox+ sl - t*0.5f, 0, frontBox - fw50*0.5f, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox+ fw51*0.5f, 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, backBox - sr - pc); CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); CREATE.Point(BASE, "P51", W*0.5f, 0, backBox - sr); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); //ROW1 of = 0.625f; P1 = new(leftBox+ of, 0, frontBox + of); P2 = new(leftBox+ of, 0, backBox - of); P3 = new(rightBox- of, 0, backBox - of); P4 = new(rightBox- of, 0, backBox - sr); P5 = new(leftBox+ sl, 0, frontBox + of); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAP SHOW //.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W19() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = (DB - sr); dl = (W - sl); float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); GameObject DP = Createdoor.Patern(codeD1, nO); GameObject DOOR1 = new("DP"); float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); DP.transform.SetParent(DOOR1.transform); DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); DOOR1.transform.SetParent(BASE.transform); //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox+ sl - t*0.5f, 0, frontBox - fw50*0.5f, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox+ fw51*0.5f, 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, backBox - sr - pc); CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, backBox); CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); CREATE.Point(BASE, "P51", W*0.5f, 0, backBox - sr); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); //ROW1 of = 0.625f; P1 = new(leftBox+ of, 0, frontBox + of); P2 = new(leftBox+ of, 0, backBox - of); P3 = new(rightBox- of, 0, backBox - of); P4 = new(rightBox- of, 0, backBox - sr); P5 = new(leftBox+ sl, 0, frontBox + of); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAP SHOW //CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W26() { //print("passe w26 ---------------------------------------------------"); //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split("_"[0]); CODE.GetDiv(C[25]); //_G.RTOT=3; if (C[25].IndexOf("o") != -1) { for (int i = 1; i < _G.RTOT + 1; i++) { if (i < _G.RTOT) { Vector3[] Points=new Vector3[5]{P1, P2, P3, P4, P5}; SHELF = MCXMP.MCXV("Shelf",t, Points, Get.BoxTex(C, 7),"Untagged");//MCXMP.MCX5VL(t, sr, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 7)); SHELF.transform.position = new(0, of + _G.ROWY1[i - 1] - _G.ROWH1[i - 1] * 0.5f, 0); SHELF.transform.parent = BASE.transform; SHELF.name = "SHELF " + i.ToString(); } } } //FILLER if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50 * 0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox-t*0.5f, 0, backBox + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT if(sl==0)sl=1; if(sr==0)sr=1; CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //Shelf//SHELF AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "45_Left",CenterBox); //CAP SHOW //CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); } public static void W27() { //CONTOUR// CODE.GetDiv(C[25]); DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox,Back45); //DOOR dr = DB - sr; dl = W - sl; float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); C[25] = DC.Resize(C[25], DW, HB, nO); codeD1 = C[25].Split('_'); //FILLER if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, backBox - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } //ANCHORE POINT float pc = _G.cadt / 0.707f; CREATE.Point(BASE, "PO1", -W * 0.5f, HB * 0.5f, backBox - sl); CREATE.Point(BASE, "PO4", W * 0.5f - sr, HB * 0.5f, frontBox); CREATE.Point(BASE, "PO2", -W * 0.5f, HB * 0.5f, backBox); CREATE.Point(BASE, "PO3", W * 0.5f, HB * 0.5f, frontBox); CREATE.Point(BASE, "PO5", -W*0.5f, HB * 0.5f, backBox); float fo = 0.5f;//Facia offset CREATE.Point(BASE, "PF1", -W * 0.5f + fo, HB * 0.5f, backBox - sl + fo); CREATE.Point(BASE, "PF2", -W * 0.5f + fo, HB * 0.5f, backBox); CREATE.Point(BASE, "PF3", W * 0.5f, HB * 0.5f, frontBox + fo); CREATE.Point(BASE, "PF4", W * 0.5f - sr + fo, HB * 0.5f, frontBox + fo); CREATE.Point(BASE, "PF5", -W * 0.5f, HB * 0.5f, backBox); CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); CREATE.Point(BASE, "P51", W*0.5f, 0, backBox - sr); //SPLASH DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); //Shelf string texshelf = Get.BoxTex(C, 7); if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) { CODE.GetDiv(C[25]); AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); } if (C[25].IndexOf("w") != -1) { if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } } //CAP SHOW //.Show(Captext, BASE, DB, W*0.5f, frontBox); } } // using UnityEngine; // public class ConstructCORNERWALL : MonoBehaviour // { // static string[] C;//CODE CABINET ADN // static int nO;//Number of the cabinet Object // static string[] codeD1; // static string[] codeD2; // static string DTvalue;//door thickness fron csv // static GameObject BASE; // static float PosyS;//Side panel Y position // static float W; // static float HB;//HB HEIGHT BOX ONLY // static float DB;//Depth Box // static float px;//Cabinet position x // static float py;//Cabinet position y // static float pz;//Cabinet position z // static float rx;//Cabinet rotation angle X // static float ry;//Cabinet rotation angle Y // static float rz;//Cabinet rotation angle Z // static float DBD;//Depth Box+Door // static float fw50;//Filler Right // static float fw51;//Filler Left // static float sl;//Side left wide for corner cabinet // static float sr;//Side right wide for corner cabinet // static float t;//tickness panels // static float of;//Value for offset setting // static float dr;//Door wide right // static float dl;//Door wide left // static string texb; // static float OS1;//Offset on left sidePosY // static float OS2;//Offset on back // static float OS3;//Offset on right side // static float OS4;//Offset on front // static float DoorThickness; // static GameObject DOOR; // static GameObject S1, S2, S3, S4;//Side Panels // static GameObject TOP, UNDER, SHELF; // static Vector3 P1, P2, P3, P4, P5, P6, CenterBox;//Position points // static GameObject FL, FR;//Filler left and right // static Vector3 VolumeBase; // static float backBox,frontBox,leftBox,rightBox; // static float OFO;//Ogee Fascia OffSet; // public static void AddCab(int numO) // { // nO = numO; // C = _G.OBJs[nO]; // //SETTING DOOR THICKNESS // DoorThickness = Get.DoorThickness(nO); // //string PLR = C[23]; // W = DOIT.ConvertStringToNumber(C[6]); // HB = DOIT.ConvertStringToNumber(C[7]); // DB = DOIT.ConvertStringToNumber(C[8]);//Depth Box // DBD = DOIT.ConvertStringToNumber(C[8]) + DoorThickness;//Depth Box+Door // t = DOIT.ConvertStringToNumber(C[9]); ;//tickness // px = DOIT.ConvertStringToNumber(C[15]); // py = DOIT.ConvertStringToNumber(C[16]); // pz = DOIT.ConvertStringToNumber(C[17]); // rx = DOIT.ConvertStringToNumber(C[18]); // ry = DOIT.ConvertStringToNumber(C[19]); // rz = DOIT.ConvertStringToNumber(C[20]); // if (C[52] == "none") C[52] = "0"; // fw50 = DOIT.ConvertStringToNumber(C[52]); // fw51 = DOIT.ConvertStringToNumber(C[53]); // //Texture // texb = C[62]; // OS1 = 0; // OS2 = 0; // OS3 = 0; // OS4 = 0; // // string[] C81 = C[81].Split(','); // // if (C81[0] != "0") OS1 = 0.625f; // // if (C81[1] != "0") OS2 = 0.625f; // // if (C81[2] != "0") OS3 = 0.625f; // // if (C81[3] != "0") OS4 = 0.625f; // OFO=-t*0.5f;//Ogee Fascia OffSet; // if(Get.Bool(C[4], "W2_W4_W6_W9_W11_W3_W5_W7_W10_W12")) // { // if (C[49] != "GHOST") // { // OS1 += fw50; // OS4 += fw51; // } // } // if ( C[4] == "W9"){OS1 += DoorThickness; } // if ( C[4] == "W10") {OS4 += DoorThickness; } // if(Get.Bool(C[4], "W26")) // { // if (C[49] == "COLLISION") { // OS2 += fw50; // OS3 += fw51; // } // } // if (C[28] == "none" || C[28] == null || C[28] == "") C[28] = DOIT.CNs(_P.Listfloat["WALL_DEPTH"]); // if (C[29] == "none" || C[29] == null || C[29] == "") C[29] = DOIT.CNs(_P.Listfloat["WALL_DEPTH"]); // sl = DOIT.ConvertStringToNumber(C[28]); // sr = DOIT.ConvertStringToNumber(C[29]); // dr = DB - sr; // dl = W - sl; // of = 0.1f;//offset for under pnl finish // P1 = new(0, 0, 0); // P2 = new(0, 0, 0); // P3 = new(0, 0, 0); // P4 = new(0, 0, 0); // P5 = new(0, 0, 0); // P6 = new(0, 0, 0); // PosyS = 0; // //create BASE // BASE = GameObject.CreatePrimitive(PrimitiveType.Cube); // if(Get.Bool(C[4], "W2_W4_W6_W9_W11_W26")) // { // BASE.transform.localScale = new(W + OS2 + OS4 + 0.5f, HB + 0.5f, DB + 0.5f + OS1 + OS3); // VolumeBase=BASE.transform.localScale; // CenterBox=new(-VolumeBase.x*0.5f+0.25f+OS2+W*0.5f,0,-VolumeBase.z*0.5F+0.25f+OS1+DB*0.5f); // } // if(Get.Bool(C[4], "W3_W5_W7_W10_W12_W27")) // { // BASE.transform.localScale = new(W + OS1 + OS3 + 0.5f, HB + 0.5f, DB + 0.5f + OS2 + OS4); // VolumeBase=BASE.transform.localScale; // CenterBox=new(-VolumeBase.x*0.5f+0.25f+OS1+W*0.5f,0,-VolumeBase.z*0.5F+0.25f+OS4+DB*0.5f); // } // BASE.name = C[0]; // BASE.transform.parent = GameObject.Find("SCENE").transform; // BASE.tag = "cabwall"; // //BOX POSITION // backBox=CenterBox.z+DB*0.5f; // frontBox=CenterBox.z-DB*0.5f;; // leftBox=CenterBox.x-W*0.5f; // rightBox=CenterBox.x+W*0.5f; // //RigidBody // BASE.AddComponent(); // BASE.GetComponent().useGravity = false; // BASE.GetComponent().isKinematic = true; // BASE.GetComponent().detectCollisions = true; // BASE.GetComponent().isTrigger = true; // BASE.transform.parent = GameObject.Find("SCENE").transform; // // 2D Plan Top View // CREATE.Point(BASE, "PBLU", CenterBox.x-W * 0.5f, HB * 0.5f, CenterBox.z+DBD * 0.5f);//P1 // CREATE.Point(BASE, "PBRU", CenterBox.x+W * 0.5f, HB * 0.5f, CenterBox.z+DBD * 0.5f);//P2 // CREATE.Point(BASE, "PFLU", CenterBox.x-W * 0.5f, HB * 0.5f, CenterBox.z-DBD * 0.5f);//P3 // CREATE.Point(BASE, "PFRU", CenterBox.x+W * 0.5f, HB * 0.5f, CenterBox.z-DBD * 0.5f);//P4 // CREATE.Point(BASE, "PBLB", CenterBox.x-W * 0.5f, -HB * 0.5f, CenterBox.z+DBD * 0.5f);//P1 // CREATE.Point(BASE, "PBRB", CenterBox.x+W * 0.5f, -HB * 0.5f, CenterBox.z+DBD * 0.5f);//P2 // CREATE.Point(BASE, "PFLB", CenterBox.x-W * 0.5f, -HB * 0.5f, CenterBox.z-DBD * 0.5f);//P3 // CREATE.Point(BASE, "PFRB", CenterBox.x+W * 0.5f, -HB * 0.5f, CenterBox.z-DBD * 0.5f);//P4 // switch (C[4]) // { // case "W2": W2(); break; // case "W3": W3(); break; // case "W4": W4(); break; // case "W5": W5(); break; // case "W6": W6(); break; // case "W7": W7(); break; // case "W9": W9(); break; // case "W10": W10(); break; // case "W11": W11(); break; // case "W12": W12(); break; // case "W19": W19(); break; // //case "W20":W20();break; // case "W26": W26(); break; // case "W27": W27(); break; // } // //ADD LIGHT // GameObject lightGameObject = new("SpotLight") { tag = "SpotLight" }; // lightGameObject.AddComponent(); // lightGameObject.transform.SetLocalPositionAndRotation(new(0, -HB*0.5f + 10, 0), Quaternion.Euler(90, 0, 0)); // Light L = lightGameObject.GetComponent(); // L.type = LightType.Spot; // L.intensity = _G.IntensityLight; // L.range = 100; // L.spotAngle = 80; // L.renderMode = LightRenderMode.ForcePixel; // L.enabled = false; // if (_G.OBJs[nO][40] == "On") L.enabled = true; // lightGameObject.transform.SetParent(BASE.transform); // Mesure.Addpoints("CORENER WALL", BASE, W, HB, DBD,CenterBox); // //Stet in scene // BASE.transform.position = new(px, py, pz); // BASE.transform.localRotation = Quaternion.Euler(rx, ry, rz); // BASE.AddComponent(typeof(MoveObject)); // BASE.GetComponent().material = _G.INV; // //CAPS SHOW // string Unique_Name = UIT.Value(Library.Cabinet,C[1],Header.ID); // string Captext = Unique_Name + "\n" + DOIT.CSs(C[6]) + "x" + DOIT.CSs(C[7]); // CAPS.Show(Captext, BASE, DB, W*0.5f, frontBox); // } // public static void W2() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //SHELF ON OPENING // AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "90_Left",CenterBox); // //DOOR // float d1w = W - sl; // C[25] = DC.Resize(C[25], d1w, HB, nO); // string[] codeD1 = C[25].Split('_'); // DOOR = Createdoor.Patern(codeD1, nO); // DOOR.transform.position = new(rightBox- d1w*0.5f, 0, backBox - sr - DoorThickness*0.5f); // DOOR.transform.localRotation = Quaternion.Euler(0, 0, 0); // DOOR.transform.parent = BASE.transform; // float d2w = DB - sr; // C[26] = DC.Resize(C[26], d2w, HB, nO); // codeD2 = C[26].Split('_'); // GameObject DOOR2 = Createdoor.Patern(codeD2, nO); // DOOR2.transform.position = new(leftBox+ sl + DoorThickness*0.5f, 0, frontBox + d2w*0.5f); // DOOR2.transform.localRotation = Quaternion.Euler(0, -90, 0); // DOOR2.name = "DoorPatern2"; // DOOR2.transform.parent = BASE.transform; // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + sl - t*0.5f , 0, frontBox - fw50*0.5f , 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f , 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); // CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "PO5", leftBox + sl +OFO, HB*0.5f, backBox-sr-OFO); // CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); // CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // } // public static void W3() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //DOOR // float d1w = W - sr; // C[25] = DC.Resize(C[25], d1w, HB, nO); // string[] codeD1 = C[25].Split('_'); // DOOR = Createdoor.Patern(codeD1, nO); // DOOR.transform.position = new(leftBox+ d1w*0.5f, 0, DB*0.5f - sl); // DOOR.transform.localRotation = Quaternion.Euler(0, 0, 0); // DOOR.transform.parent = BASE.transform; // float d2w = DB - sl; // C[26] = DC.Resize(C[26], d2w, HB, nO); // codeD2 = C[26].Split('_'); // GameObject DOOR2 = Createdoor.Patern(codeD2, nO); // DOOR2.transform.position = new(rightBox- sr, 0, frontBox + d2w*0.5f); // DOOR2.transform.localRotation = Quaternion.Euler(0, 90, 0); // DOOR2.name = "DoorPatern2"; // DOOR2.transform.parent = BASE.transform; // //SHELF // AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "90_Left",CenterBox); // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, DB*0.5f - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt;//ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox -OFO, HB*0.5f, backBox-sl-OFO); // CREATE.Point(BASE, "PO4", rightBox-sr-OFO, HB*0.5f, backBox-OFO); // CREATE.Point(BASE, "PO2", leftBox-OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, backBox-OFO); // CREATE.Point(BASE, "PO5", rightBox - sr - OFO, HB*0.5f, backBox-sl-OFO); // CREATE.Point(BASE, "FL", leftBox , HB*0.5f, backBox-sr+t*0.5f); // CREATE.Point(BASE, "FR", rightBox-sr+t*0.5f, HB*0.5f, backBox); // // CREATE.Point(BASE, "P1", -W*0.5f, 0, DB*0.5f - sl - pc); // // CREATE.Point(BASE, "P2", -W*0.5f, 0, DB*0.5f); // // CREATE.Point(BASE, "P3", W*0.5f, 0, frontBox); // // CREATE.Point(BASE, "P4", W*0.5f, 0, frontBox); // // CREATE.Point(BASE, "P5", rightBox- sr - pc, 0, frontBox); // // CREATE.Point(BASE, "P6", rightBox- sr - pc, 0, DB*0.5f - sl - pc); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); // } // public static void W4() // { // //Check Special Sides off // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(rightBox - dl*0.5f, 0, frontBox + dr*0.5f); // DOOR1.transform.SetParent(BASE.transform); // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + sl - t*0.5f , 0, frontBox - fw50*0.5f , 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f , 0, backBox - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // //ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); // CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); // CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf // AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "45_Left",CenterBox); // // string texshelf = Get.BoxTex(C, 7); // // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // // { // // CODE.GetDiv(C[25]); // // //ROW1 // // of = 0.625f; // // P1 = new(leftBox+ of, 0, frontBox + of); // // P2 = new(leftBox+ of, 0, DB*0.5f - of); // // P3 = new(rightBox- of, 0, DB*0.5f - of); // // P4 = new(rightBox- of, 0, DB*0.5f - sr); // // P5 = new(leftBox+ sl, 0, frontBox + of); // // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1,0); // // } // string texshelf = C[62]; // if (C[87].IndexOf("1") != -1) { texshelf = C[69]; } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W5() // { // //Check Special Sides off // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //DOOR // dr = W - sr; // dl = DB - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dr / dl) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, 90 - A, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(leftBox + dr*0.5f, 0, frontBox + dl*0.5f); // DOOR1.transform.parent = BASE.transform; // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, DB*0.5f - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox-OFO, HB*0.5f, backBox-sl-OFO); // CREATE.Point(BASE, "PO4", rightBox-sr-OFO, HB*0.5f, backBox-OFO); // CREATE.Point(BASE, "PO2", leftBox-OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, backBox-OFO); // CREATE.Point(BASE, "FL", leftBox , HB*0.5f, backBox - sl-t*0.5f ); // CREATE.Point(BASE, "FR", rightBox-sr+t*0.5f, HB*0.5f, backBox); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // //ROW1 // of = 0.625f; // P1 = new(leftBox+ of, 0, DB*0.5f - sl); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, frontBox + of); // P5 = new(rightBox- sr, 0, frontBox + of); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W6() // { // S1 = CreateBoxPnl.Side("S1", sl, HB, t,leftBox+ sl*0.5f, 0, frontBox + _G.cadt*0.5f, 0, 0, 0, Get.BoxTex(C, 1)); // S1.transform.parent = BASE.transform; // S4 = CreateBoxPnl.Side("S4", sr, HB, t, rightBox- t*0.5f, 0, DB*0.5f - sr*0.5f, 0, 90, 0, Get.BoxTex(C, 4)); // S4.transform.parent = BASE.transform; // S2 = CreateBoxPnl.Side("S2", DB - t, HB, t,leftBox+ t*0.5f, 0, t*0.5f, 0, -90, 0, Get.BoxTex(C, 2)); // S2.transform.parent = BASE.transform; // S3 = CreateBoxPnl.Side("S3", W - t * 2, HB, t, 0, 0, DB*0.5f - t*0.5f, 0, 0, 0, Get.BoxTex(C, 3)); // S3.transform.parent = BASE.transform; // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); // DOOR1.transform.SetParent(BASE.transform); // //TOP // P1 = new(leftBox+ t, 0, frontBox + t); // P2 = new(leftBox+ t, 0, DB*0.5f - t); // P3 = new(rightBox- t, 0, DB*0.5f - t); // P4 = new(rightBox- t, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + t); // TOP = MCXMP.MCX5VL(t, dl, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 5)); // TOP.transform.position = new(0, HB*0.5f, 0); // //DOIT.SetSizeTex(TOP, 2 * 12, 2* 12, 0, 0, 0, 0, 0, 0); // //UNDER // P1 = new(leftBox+ of, 0, frontBox + of); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + of); // UNDER = MCXMP.MCX5VL(-t, dl, W, P5, P4, P3, P2, P1, Get.BoxTex(C, 6)); // UNDER.transform.position = new(0, -HB*0.5f - of, 0); // //FILLER // P1 = new(-W * 0.5f, PosyS, -DB * 0.5f); // P3 = new(W * 0.5f, PosyS, DB * 0.5f); // if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, P1.x - fw50 * 0.5f, P1.y, P1.z + t * 0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, P3.x - t * 0.5f, P3.y, P3.z + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1",leftBox+ sl + pc, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU4", W*0.5f, -HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PU2", -W*0.5f, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU3", W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, DB*0.5f); // //ANCHORE POINT // CREATE.Point(BASE, "P1",leftBox+ sl + pc, 0, frontBox); // CREATE.Point(BASE, "P2", -W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P3", -W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P4", W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P5", W*0.5f, 0, DB*0.5f - sr - pc); // CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); // CREATE.Point(BASE, "P51", W*0.5f, 0, DB*0.5f - sr); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // // //Shelf // // string texshelf = Get.BoxTex(C, 7); // // if(C[87].IndexOf("1")!=-1){texshelf = C[69];} // // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // // { // // CODE.GetDiv(C[25]); // // //ROW1 // // of = 0.625f; // // P1 = new(leftBox+ of, 0, frontBox + of); // // P2 = new(leftBox+ of, 0, DB*0.5f - of); // // P3 = new(rightBox- of, 0, DB*0.5f - of); // // P4 = new(rightBox- of, 0, DB*0.5f - sr); // // P5 = new(leftBox+ sl, 0, frontBox + of); // // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1,0); // // } // string texshelf = C[62];//Get.BoxTex(C, 7); // if (C[87].IndexOf("1") != -1) { texshelf = C[69]; } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W7() // { // S1 = CreateBoxPnl.Side("S1", sl, HB, t,leftBox+ t*0.5f, 0, DB*0.5f - sl*0.5f, 0, 90, 0, Get.BoxTex(C, 1)); // S1.transform.parent = BASE.transform; // S4 = CreateBoxPnl.Side("S4", sr, HB, t, rightBox- sr*0.5f, 0, frontBox + t*0.5f, 0, 0, 0, Get.BoxTex(C, 4)); // S4.transform.parent = BASE.transform; // S2 = CreateBoxPnl.Side("S2", W - t, HB, t, t*0.5f, 0, DB*0.5f - t*0.5f, 0, 0, 0, Get.BoxTex(C, 2)); // S2.transform.parent = BASE.transform; // S3 = CreateBoxPnl.Side("S3", DB - t * 2, HB, t, rightBox- t*0.5f, 0, 0, 0, 90, 0, Get.BoxTex(C, 3)); // S3.transform.parent = BASE.transform; // //TOP // P1 = new(leftBox+ t, 0, DB*0.5f - sl); // P2 = new(leftBox+ t, 0, DB*0.5f - t); // P3 = new(rightBox- t, 0, DB*0.5f - t); // P4 = new(rightBox- t, 0, frontBox + t); // P5 = new(rightBox- sr, 0, frontBox + t); // TOP = MCXMP.MCX5VL(t, dr, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 5)); // TOP.transform.position = new(0, HB*0.5f, 0); // UNDER = MCXMP.MCX5VL(-t, dr, W, P5, P4, P3, P2, P1, Get.BoxTex(C, 6)); // UNDER.transform.position = new(0, -HB*0.5f, 0); // //DOOR // dr = (W - sr); // dl = (DB - sl); // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], W, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dr / dl) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, 90 - A, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(leftBox+ dr*0.5f, 0, frontBox + dl*0.5f); // DOOR1.transform.parent = BASE.transform; // // //FILLER // // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, DB*0.5f - dd + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- dd + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //FILLER // P2 = new(-W * 0.5f, PosyS, DB * 0.5f); // P4 = new(W * 0.5f, PosyS, -DB * 0.5f); // if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, P2.x + t * 0.5f, P2.y, P2.z + fw50 * 0.5f, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, P4.x + fw51 * 0.5f, P4.y, P4.z + t * 0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1", -W*0.5f, -HB*0.5f, DB*0.5f - sl - pc); // CREATE.Point(BASE, "PU4", rightBox- sr - pc, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU2", -W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PU3", W*0.5f, -HB*0.5f, frontBox); // CREATE.Point(BASE, "Pu5", W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1", -W*0.5f, HB*0.5f, DB*0.5f - sl - pc); // CREATE.Point(BASE, "PO4", rightBox- sr - pc, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO5", W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "P1", -W*0.5f, 0, DB*0.5f - sl - pc); // CREATE.Point(BASE, "P2", -W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P3", W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P4", W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P5", rightBox- sr - pc, 0, frontBox); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // //ROW1 // of = 0.625f; // P1 = new(leftBox+ of, 0, DB*0.5f - sl); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, frontBox + of); // P5 = new(rightBox- sr, 0, frontBox + of); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W9() // { // //CONTOUR//; // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox);//DBD*0.5f; // //DOOR // C[25] = DC.Resize(C[25], W - sl, HB, nO); // string[] codeD1 = C[25].Split("_"[0]); // DOOR = Createdoor.Patern(codeD1, nO); // DOOR.transform.position = new(rightBox- (W - sl)*0.5f, 0, frontBox-DoorThickness*0.5f); // DOOR.transform.parent = BASE.transform; // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox + WallDeptCabinet - t*0.5f, 0, frontBox - fw50*0.5f-t, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox + fw51*0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox + WallDeptCabinet +OFO, HB*0.5f, frontBox-t-OFO); // CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-t-OFO); // CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "PO5", leftBox + WallDeptCabinet +OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "FL", leftBox + WallDeptCabinet-t*0.5f , HB*0.5f, frontBox-t); // CREATE.Point(BASE, "FR", rightBox, HB*0.5f, frontBox+t*0.5f); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // } // public static void W10() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox); // backBox=CenterBox.z+DB*0.5f; // frontBox=backBox-DB; // //DOOR // C[25] = DC.Resize(C[25], W - sr, HB, nO); // string[] codeD1 = C[25].Split("_"[0]); // DOOR = Createdoor.Patern(codeD1, nO); // DOOR.transform.position = new(leftBox + (W - sr)*0.5f, 0, frontBox-DoorThickness*0.5f); // DOOR.transform.parent = BASE.transform; // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50*0.5f, 0, frontBox + t / 1, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox - WallDeptCabinet + t*0.5f , 0, frontBox - fw51*0.5f-t, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // CREATE.Point(BASE, "PO1", leftBox-OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO4", rightBox - WallDeptCabinet-OFO, HB*0.5f, frontBox-t-OFO); // CREATE.Point(BASE, "PO2", leftBox-OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "PO3", rightBox, HB*0.5f, frontBox-t-OFO); // CREATE.Point(BASE, "PO5", rightBox - WallDeptCabinet-OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "FL", leftBox , HB*0.5f, frontBox+t*0.5f); // CREATE.Point(BASE, "FR", rightBox- WallDeptCabinet+t*0.5f, HB*0.5f, frontBox-t); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashR(BASE, C[56], W, HB, DB, C[54]); // } // public static void W11() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox); // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); // DOOR1.transform.SetParent(BASE.transform); // //FILLER // if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50 * 0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox-t*0.5f, 0, backBox + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1",leftBox+ sl + pc, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU4", rightBox, -HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PU2", -rightBox, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU3", W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, DB*0.5f); // //ANCHORE POINT // CREATE.Point(BASE, "P1",leftBox+ sl + pc, 0, frontBox); // CREATE.Point(BASE, "P2", -W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P3", -W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P4", W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P5", W*0.5f, 0, DB*0.5f - sr - pc); // CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); // CREATE.Point(BASE, "P51", W*0.5f, 0, DB*0.5f - sr); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // //ROW1 // of = 0.625f; // P1 = new(leftBox+ of, 0, frontBox + of); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + of); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W12() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox); // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); // DOOR1.transform.SetParent(BASE.transform); // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox+ sl - t*0.5f, 0, frontBox - fw50*0.5f, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox+ fw51*0.5f, 0, DB*0.5f - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1",leftBox+ sl + pc, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU4", W*0.5f, -HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PU2", leftBox, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU3", W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO5", leftBox, HB*0.5f, DB*0.5f); // //ANCHORE POINT // CREATE.Point(BASE, "P1",leftBox+ sl + pc, 0, frontBox); // CREATE.Point(BASE, "P2", leftBox, 0, frontBox); // CREATE.Point(BASE, "P3", leftBox, 0, DB*0.5f); // CREATE.Point(BASE, "P4", W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P5", W*0.5f, 0, DB*0.5f - sr - pc); // CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); // CREATE.Point(BASE, "P51", W*0.5f, 0, DB*0.5f - sr); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // //ROW1 // of = 0.625f; // P1 = new(leftBox+ of, 0, frontBox + of); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + of); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W19() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB*0.5f, HB, 0, 0f, t,CenterBox); // //DOOR // dr = (DB - sr); // dl = (W - sl); // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // GameObject DP = Createdoor.Patern(codeD1, nO); // GameObject DOOR1 = new("DP"); // float A = Mathf.Atan(dl / dr) * Mathf.Rad2Deg; // DP.transform.localRotation = Quaternion.Euler(0, A - 90, 0); // DP.transform.SetParent(DOOR1.transform); // DOOR1.transform.position = new(rightBox- dl*0.5f, 0, frontBox + dr*0.5f); // DOOR1.transform.SetParent(BASE.transform); // //TOP // P1 = new(leftBox+ t, 0, frontBox + t); // P2 = new(leftBox+ t, 0, DB*0.5f - t); // P3 = new(rightBox- t, 0, DB*0.5f - t); // P4 = new(rightBox- t, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + t); // TOP = MCXMP.MCX5VL(t, dl, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 7)); // TOP.transform.position = new(0, HB*0.5f, 0); // //DOIT.SetSizeTex(TOP, 2 * 12, 2* 12, 0, 0, 0, 0, 0, 0); // //UNDER // P1 = new(leftBox+ of, 0, frontBox + of); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + of); // UNDER = MCXMP.MCX5VL(-t, dl, W, P5, P4, P3, P2, P1, Get.BoxTex(C, 6)); // UNDER.transform.position = new(0, -HB*0.5f - of, 0); // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox+ sl - t*0.5f, 0, frontBox - fw50*0.5f, 0, 90, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox+ fw51*0.5f, 0, DB*0.5f - sr + t*0.5f, 0, 0, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1",leftBox+ sl + pc, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU4", W*0.5f, -HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PU2", -W*0.5f, -HB*0.5f, frontBox); // CREATE.Point(BASE, "PU3", W*0.5f, -HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1",leftBox+ sl + pc, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO4", W*0.5f, HB*0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PO2", -W*0.5f, HB*0.5f, frontBox); // CREATE.Point(BASE, "PO3", W*0.5f, HB*0.5f, DB*0.5f); // CREATE.Point(BASE, "PO5", -W*0.5f, HB*0.5f, DB*0.5f); // //ANCHORE POINT // CREATE.Point(BASE, "P1",leftBox+ sl + pc, 0, frontBox); // CREATE.Point(BASE, "P2", -W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P3", -W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P4", W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P5", W*0.5f, 0, DB*0.5f - sr - pc); // CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); // CREATE.Point(BASE, "P51", W*0.5f, 0, DB*0.5f - sr); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // //ROW1 // of = 0.625f; // P1 = new(leftBox+ of, 0, frontBox + of); // P2 = new(leftBox+ of, 0, DB*0.5f - of); // P3 = new(rightBox- of, 0, DB*0.5f - of); // P4 = new(rightBox- of, 0, DB*0.5f - sr); // P5 = new(leftBox+ sl, 0, frontBox + of); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // public static void W26() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split("_"[0]); // CODE.GetDiv(C[25]); // //_G.RTOT=3; // if (C[25].IndexOf("o") != -1) // { // for (int i = 1; i < _G.RTOT + 1; i++) // { // if (i < _G.RTOT) // { // SHELF = MCXMP.MCX5VL(t, sr, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 7)); // SHELF.transform.position = new(0, of + _G.ROWY1[i - 1] - _G.ROWH1[i - 1] * 0.5f, 0); // SHELF.transform.parent = BASE.transform; // SHELF.name = "SHELF " + i.ToString(); // } // } // } // //FILLER // if (_G.OBJs[nO][50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t, leftBox - fw50 * 0.5f, 0, frontBox+t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (_G.OBJs[nO][51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox-t*0.5f, 0, backBox + fw51 * 0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // if(sl==0)sl=1; // if(sr==0)sr=1; // CREATE.Point(BASE, "PO1", leftBox + sl +OFO, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO4", rightBox+OFO, HB*0.5f, backBox-sr-OFO); // CREATE.Point(BASE, "PO2", leftBox, HB*0.5f, frontBox-OFO); // CREATE.Point(BASE, "PO3", rightBox+OFO, HB*0.5f, backBox); // CREATE.Point(BASE, "FL", leftBox + sl-t*0.5f , HB*0.5f, frontBox); // CREATE.Point(BASE, "FR", rightBox, HB*0.5f, backBox-sr+t*0.5f); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf//SHELF // AddShelf.OnOpening(C, BASE, 0, W, 0, DB, t, "45_Left",CenterBox); // } // public static void W27() // { // //CONTOUR// // CODE.GetDiv(C[25]); // DOSIDE.PNLNew(BASE, nO, 0, DB * 0.5F, HB, 0, 0f, t,CenterBox); // //DOOR // dr = DB - sr; // dl = W - sl; // float DW = Mathf.Sqrt((dr * dr) + (dl * dl)); // C[25] = DC.Resize(C[25], DW, HB, nO); // codeD1 = C[25].Split('_'); // // // //TOP // P1 = new(-W * 0.5f + t, 0, DB * 0.5f - sl - t); // P2 = new(-W * 0.5f + t, 0, DB * 0.5f - of); // P3 = new(W * 0.5f - t, 0, DB * 0.5f - t); // P4 = new(W * 0.5f - t, 0, -DB * 0.5f + t); // P5 = new(W * 0.5f - sr, 0, -DB * 0.5f + t); // TOP = MCXMP.MCX5VL(t, sr, W, P1, P2, P3, P4, P5, Get.BoxTex(C, 7)); // TOP.transform.position = new(0, HB*0.5f, 0); // //UNDER // UNDER = Instantiate(TOP); // UNDER.transform.position = new(0, -HB*0.5f + t, 0); // //FILLER // if (C[50] != "NONE") { FL = CreateBoxPnl.Filler("FL", fw50, HB, t,leftBox- fw50*0.5f, 0, DB*0.5f - sl + t*0.5f, 0, 0, 0, C[50]); FL.transform.parent = BASE.transform; } // if (C[51] != "NONE") { FR = CreateBoxPnl.Filler("FR", fw51, HB, t, rightBox- sr + t*0.5f, 0, frontBox - fw51*0.5f, 0, 90, 0, C[51]); FR.transform.parent = BASE.transform; } // //ANCHORE POINT // float pc = _G.cadt / 0.707f; // CREATE.Point(BASE, "PU1", -W * 0.5f, -HB * 0.5f, frontBox); // CREATE.Point(BASE, "PU4", W*0.5f, -HB * 0.5f, DB*0.5f - sr - pc); // CREATE.Point(BASE, "PU2", -W*0.5f, -HB * 0.5f, frontBox); // CREATE.Point(BASE, "PU3", W*0.5f, -HB * 0.5f, DB*0.5f); // CREATE.Point(BASE, "PO1", -W * 0.5f, HB * 0.5f, DB * 0.5f - sl); // CREATE.Point(BASE, "PO4", W * 0.5f - sr, HB * 0.5f, -DB * 0.5f); // CREATE.Point(BASE, "PO2", -W * 0.5f, HB * 0.5f, DB * 0.5f); // CREATE.Point(BASE, "PO3", W * 0.5f, HB * 0.5f, -DB * 0.5f); // CREATE.Point(BASE, "PO5", -W*0.5f, HB * 0.5f, DB*0.5f); // float fo = 0.5f;//Facia offset // CREATE.Point(BASE, "PF1", -W * 0.5f + fo, HB * 0.5f, DB * 0.5f - sl + fo); // CREATE.Point(BASE, "PF2", -W * 0.5f + fo, HB * 0.5f, DB * 0.5f); // CREATE.Point(BASE, "PF3", W * 0.5f, HB * 0.5f, -DB * 0.5f + fo); // CREATE.Point(BASE, "PF4", W * 0.5f - sr + fo, HB * 0.5f, -DB * 0.5f + fo); // CREATE.Point(BASE, "PF5", -W * 0.5f, HB * 0.5f, DB * 0.5f); // //ANCHORE POINT // CREATE.Point(BASE, "P1",leftBox+ sl + pc, 0, frontBox); // CREATE.Point(BASE, "P2", -W*0.5f, 0, frontBox); // CREATE.Point(BASE, "P3", -W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P4", W*0.5f, 0, DB*0.5f); // CREATE.Point(BASE, "P5", W*0.5f, 0, DB*0.5f - sr - pc); // CREATE.Point(BASE, "P50",leftBox+ sl, 0, frontBox); // CREATE.Point(BASE, "P51", W*0.5f, 0, DB*0.5f - sr); // //SPLASH // DOBS.SplashC(BASE, C[55], W, HB, DB, C[54]); // DOBS.SplashL(BASE, C[56], W, HB, DB, C[54]); // //Shelf // string texshelf = Get.BoxTex(C, 7); // if (C[25].IndexOf("o") != -1 || C[25].IndexOf("w") != -1 || C[25].IndexOf("c") != -1) // { // CODE.GetDiv(C[25]); // AddShelf.Set(codeD1, BASE, DB - t * 2, W, texshelf, P5, P4, P3, P2, P1, 0,CenterBox); // } // if (C[25].IndexOf("w") != -1) // { // if (_G.Rdiv1.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv1, DB - t * 2, _G.ROWY1[0], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv2.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv2, DB - t * 2, _G.ROWY1[1], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv3.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv3, DB - t * 2, _G.ROWY1[2], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv4.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv4, DB - t * 2, _G.ROWY1[3], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv5.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv5, DB - t * 2, _G.ROWY1[4], DOIT.ConvertStringToNumber(C[6]), texshelf); } // if (_G.Rdiv6.Count != 0) { addWinner.AddingOnWinner(BASE, _G.Rdiv6, DB - t * 2, _G.ROWY1[5], DOIT.ConvertStringToNumber(C[6]), texshelf); } // } // } // }