using System; using System.Collections.Generic; using UnityEngine; public class _P : MonoBehaviour { //DICTIONARRY public static Dictionary Dictionary = new(){ //Value index / 0-Switch,Drop,Input / 1=Description Language 1 / 2=Description Language 2 / 3=Description Language 3 / 4 Drop values { "GLOBAL_QTY", new string[]{"Drop", "Number of global","Nombre de global","Número de globales","0_1_2_3_4_5_6_7_8"} }, { "KICK_HEIGHT", new string[]{"Input", "Kick height","Hauteur coup de pied","Altura de patada"} }, { "MEASURE_METRIC", new string[]{"Switch", "Measure system metric","Système de mesure métric","Medir la métrica del sistema"} }, { "MEASURE_IMPERIAL", new string[]{"Switch", "Measure sytem imperial","Système de mesure impérial","Sistema de medidas imperial"} }, { "ALLOW_KICK_RETRACTION", new string[]{"Switch", "Allow kick side retraction","Activer rétraction coté coup de pied","Permitir retracción del lado de la patada"} }, { "ROTATION_ANGLE", new string[]{"Input", "Rotation angle","Angle de rotation","Ángulo de rotación"} }, { "COUNTER_HEIGHT", new string[]{"Input", "Counter height","Hauteur comptoir","Altura del mostrador"} }, { "COUNTER_FRONT_PROJECTION", new string[]{"Input", "Counter front projection","Projection avant comptoir","Proyección frontal del mostrador"} }, { "COUNTER_ON_MESURE", new string[]{"Switch", "Add counter on mesure","Ajouter le comptoir aux dimensions","Agregar contador en medida"} }, { "FILLER_ON_MESURE", new string[]{"Switch", "Add fillers on mesure","Ajouter les filleurs aux dimensions","Agregue rellenos a medida"} }, { "CAB_INSTALLATION_CEILING", new string[]{"Switch", "Cabinet wall from ceiling","Cabinet mural depuis le plafond","Pared del gabinete desde el techo"} }, { "CAB_FROM_CEILING", new string[]{"Input", "Cabinet wall distance from ceiling","Cabinet mural distance du plafond","Distancia de la pared del gabinete al techo"} }, { "ALLOW_SIDES_SELECTION", new string[]{"Switch", "Allow side selection","Autoriser sélection des cotés","Permitir selección de lado"} }, { "ALLOW_DOORPATTERN_RESIZE", new string[]{"Switch", "Allow door pattern resize","Autoriser le redimensionnement du motif de porte","El armario tiene todas las puertas"} }, { "CABS_HAS_ALL_DOORS", new string[]{"Switch", "Cabinet has all doors","Les caissons ont toutes les portes","Permitir cambiar el tamaño del patrón de la puerta"} }, { "SHOW_ALL_LIBRARY", new string[]{"Switch", "Show all selection from library","Afficher tous les selections des librairies","Mostrar toda la selección de la biblioteca"} }, { "DOOR_SELECT", new string[]{"Switch","Allow door selection", "Activer sélection des portes","Permitir selección de puerta"} }, { "EXTERIOR_MATCH_DOOR", new string[]{"Switch","Exterior finish match door selection", "Fini extérieur appareillé à la porte","El acabado exterior coincide con la selección de la puerta"} }, { "KICK_MATCH_DOOR", new string[]{"Switch","Toe Kick match door selection", "Coup de pied appareillé à la porte","Selección de puerta con zócalo"} }, { "INTERIOR_SELECT", new string[]{"Switch","Allow interior finish selection", "Activer sélection fini intérieur","Permitir selección de acabado interior"} }, { "EXTERIOR_SELECT", new string[]{"Switch","Allow exterior finish selection", "Activer sélection fini extérieur","Permitir selección de acabado exterior"} }, { "KICK_SELECT", new string[]{"Switch","Allow kick selection", "Activer sélection coup de pied","Permitir selección de patada"} }, { "OGEE_SELECT", new string[]{"Switch","Allow ogee selection", "Activer sélection ogee","Permitir selección conopial"} }, { "FASCIA_SELECT", new string[]{"Switch","Allow fascia selection", "Activer sélection fascia","Permitir selección de fascia"} }, { "CORNICE_SELECT", new string[]{"Switch","Allow cornice selection", "Activer sélection cornice","Permitir selección de cornisa"} }, { "VALANCE_SELECT", new string[]{"Switch","Allow valance selection", "Activer sélection valance","Permitir selección de cenefa"} }, { "ALLOW_SUSPENDED", new string[]{"Switch","Allow suspended cabinet", "Permettre caisson suspendu","Permitir gabinete suspendido"} }, { "ALLOW_LEG_ONLY", new string[]{"Switch","Allow legs only", "Permettre pattes seulement","Permitir solo piernas"} }, { "ALLOW_KICK_ONLY", new string[]{"Switch","Allow kicks only", "Permettre coup de pied seulement","Permitir solo patadas"} }, { "ALLOW_KICK&LEG", new string[]{"Switch","Allow kicks and legs", "Permettre coup de pied et pattes","Permitir patadas y piernas."} }, { "ALLOW_RETRACTION", new string[]{"Switch","Allow retraction kick", "Permettre rétraction coup de pied","Permitir patada de retracción" } }, { "RETRACTION_STD", new string[]{"Input", "Standard kick retraction distance","Distance rétraction coup de pied standard","Distancia de retracción de patada estándar"} }, //SIDE PANEL { "ALLOW_SIDE_OVER", new string[]{"Switch","Allow side over", "Permettre coté dessus","Permitir el lado hacia arriba" } }, { "ALLOW_SIDE_NOTCH", new string[]{"Switch","Allow side notch", "Permettre coté entaillé","Permitir muesca lateral" } }, { "ALLOW_SIDE_STD", new string[]{"Switch","Allow side standard", "Permettre coté standard","Permitir estándar lateral" } }, { "ALLOW_UNDER_FINISH", new string[]{"Switch","Allow finished underside panel", "Permettre panneau dessous fini","Permitir acabado bajo panel" } }, { "ALLOW_RECOVER_OVER", new string[]{"Switch","Allow panel covering up to the ground", "Permettre panneau recouvrement jusqu'au sol","Permitir el lado hacia arriba" } }, { "ALLOW_RECOVER_NOTCH", new string[]{"Switch","Allow notched cover panel", "Permettre panneau recouvrement entaillé","Permitir panel de cubierta con muescas" } }, { "ALLOW_RECOVER_STD", new string[]{"Switch","Allow standard cover panel", "Permettre panneau recouvrement standard","Permitir panel de cubierta estándar" } }, { "ALLOW_RECOVER_RESIZE", new string[]{"Switch","Allow fit cover panel", "Permettre d'ajuster les panneaux de recouvrement","Permitir el ajuste del panel de cubierta" } }, { "RECOVER_UP_TO_FLOOR", new string[]{"Switch","Recover panel up to floor", "Panneaux de recouvrement jusqu'au plancher","Recuperar panel hasta el suelo" } }, { "ALLOW_RESIZE_CABINET", new string[]{"Switch","Allow resize cabinet", "Permettre la redimension des caissons","Permitir cambiar el tamaño del gabinete" } }, { "DOOR_GAP", new string[]{"Input","Door gap between door and cabinet", "Espace entre la porte et caisson","Espacio entre la puerta y el gabinete" } }, { "BASE_HEIGHT", new string[]{"Input","Base cabinet height without kick standard", "Hauteur caisson bas sans coup de pied standard","Altura del mueble bajo sin patada estándar" } }, { "WALL_HEIGHT", new string[]{"Input","Wall cabinet height standard", "Hauteur caisson mural standard","Estándar de altura del mueble de pared" } }, { "TALL_HEIGHT", new string[]{"Input","Tall cabinet height standard", "Hauteur caisson tour standard","Estándar de altura del gabinete alto" } }, { "BASE_DEPTH", new string[]{"Input","Base cabinet depth standard", "Profondeur caisson bas standard","Profundidad del mueble bajo estándar" } }, { "WALL_DEPTH", new string[]{"Input","Wall cabinet depth standard", "Profondeur caisson mural standard","Estándar de profundidad del gabinete de pared" } }, { "TALL_DEPTH", new string[]{"Input","Tall cabinet depth standard", "Profondeur caisson tour standard","Profundidad de gabinete alto estándar" } }, { "NO_DOOR", new string[]{"Switch","Allow cabinet without door", "Autoriser le caisson sans porte","Permitir armario sin puerta" } }, { "ALLOW_PROJECTION_SINK", new string[]{"Switch","Allow projection sink", "Permettre évier bedaine","Permitir que la proyección se hunda" } }, //Global Adjusment Panel //Features { "CAB_CREATOR", new string[]{"Switch","Allow cabinet creator", "Activer créateur de cabinet","Permitir creador de gabinete" } }, { "CATHEDRAL_CEILING", new string[]{"Switch","Allow cathedral ceiling", "Activer plafond cathédrale","Permitir techo catedral" } }, { "ALLOW_EDIT_KICK", new string[]{"Switch","Allow edit kick", "Activer éditeur coupp de pied","Permitir edición kick" } }, { "ALLOW_EDIT_SIDE", new string[]{"Switch","Allow edit side panel", "Activer éditeur panneau coté","Permitir editar el panel lateral" } }, { "ALLOW_EDIT_RECOVER", new string[]{"Switch","Allow edit recover panel", "Activer panneau de recouvrement","Permitir editar panel de recuperación" } }, { "ALLOW_EDIT_DOOR", new string[]{"Switch","Allow edit door", "Activer éditeur de porte","Permitir editar puerta" } }, { "ALLOW_EDIT_OGEE", new string[]{"Switch","Allow edit ogee", "Activer éditeur ogee","Permitir editar conopial" } }, { "ALLOW_EDIT_FASCIA", new string[]{"Switch","Allow edit fascia", "Activer éditeur fascia","Permitir editar fascia" } }, { "ALLOW_EDIT_VALANCE", new string[]{"Switch","Allow edit valance", "Activer éditeur valance","Permitir editar cenefa" } }, { "COUNTERTOP_SUPPLIER", new string[]{"Switch","Countertop from supplier", "Comptoir avec fournisseurs","Encimera del proveedor" } }, { "PLAN2D_HIDE_COUNTERTOP", new string[]{"Switch","Plan2D hide countertop", "Plan2D cacher le comptoir","Plan2d ocultar Encimera" } }, //{ "SET_GLOBAL_OFF", new string[]{"Switch","System without global", "System sans global","Sistema sin global" } }, { "DOOR_SHOW_UNIQUE_NAME", new string[]{"Switch","Door name is by Unique Name", "Nom de porte Unique","El nombre de la puerta es por nombre único." } }, //Prices { "SHOPIFY", new string[]{"Switch","Allow Shopify", "Activer Shopify","Permitir Shopify" } }, { "SHOW_PRICE", new string[]{"Switch","Allow show price", "Activer afficher prix","Permitir mostrar precio" } }, { "MAGENTO", new string[]{"Switch","Allow Magento", "Activer Magento","Permitir Magento" } }, { "FILLER_BY_ITEMS", new string[]{"Switch","Filler count by items", "Nombre de remplissage par item","Recuento de relleno por artículos" } }, { "DOOR_BY_MODEL_COLOR", new string[]{"Switch","Door by model & color", "Porte par modèle et couleur","La puerta es por modelo y color" } }, { "CABINET_BY_MODEL_DOOR", new string[]{"Switch","Cabinet is by model & door", "Cabinet par modèle et porte","El gabinete es por modelo y puerta" } }, { "CABINET_BY_FINISH_BOX", new string[]{"Switch","Cabinet code is with box finish", "Cabinet code avec fini boitier","El código del armario es con acabado de caja" } }, { "CABINET_DOOR_RECIPE", new string[]{"Switch","Cabinet add door recipe", "Cabinet avec recette pour les portes","Armario añadir puerta receta" } }, { "DOOR_BY_GROUP", new string[]{"Switch","Door with color groups", "Porte avec groupes de couleurs","Puerta con grupos de colores" } }, { "PANEL_BY_GROUP", new string[]{"Switch","Panel with color groups", "Panneau avec groupes de couleurs","Panel con grupos de colores" } }, { "MOLDING_BY_GROUP", new string[]{"Switch","Molding with color groups", "Moulure avec groupes de couleurs","Moldeado con grupos de colores" } }, { "PANEL_BY_MODEL_COLOR", new string[]{"Switch","Panel by model & color", "Panneau par modèle et couleur","Panel por modelo y color" } }, { "FILLER_BY_MODEL_COLOR", new string[]{"Switch","Filler by model & color", "Remplissage par modèle et couleur","Relleno por modelo y color" } }, { "MOLDING_BY_MODEL_COLOR", new string[]{"Switch","Molding by model & color", "Moulure par modèle et couleur","Moldeo por modelo y color" } }, { "PDF_SHOW_ECOMMERCE_CODE", new string[]{"Switch","Show ecommerce code", "Afficher le code e-commerce","Mostrar código de comercio electrónico" } }, { "ADD_ITEM_LIST", new string[]{"Switch","Add items on list", "Ajouter des articles à la liste","Añadir elementos a la lista" } }, { "STORE_SELECTION", new string[]{"Switch","Add store selection","Afficher sélection magasin","Añadir selección de tienda" } }, //Languages { "ENGLISH", new string[]{"Switch","Add English version", "Afficher version anglaise","Añadir versión en inglés" } }, { "FRENCH", new string[]{"Switch","Add French version", "Afficher version française","Añadir versión en francés" } }, { "SPANISH", new string[]{"Switch","Add Spanish version", "Afficher version espagnole","Añadir versión en español" } }, //Others { "LOGO2", new string[]{"Switch","Add logo collection", "Afficher logo collection","Añadir colección de logotipos" } }, { "AI", new string[]{"Switch","Allow AI", "Autoriser AI","Permitir IA" } }, }; public static string[] HEADER = new string[] { "GENERAL", "GÉNÉRAL", "GENERAL", "GLOBAL ADJUSTMENT PANEL", "PANNEAU D'AJUSTEMENT GLOBAL","PANEL DE AJUSTE GENERAL", "KICK", "COUP DE PIED","PATADA", "SIDE PANEL", "PANNEAU COTÉ","PANEL LATERAL", "RECOVER PANEL", "PANNEAU RECOUVREMENT","PANEL DE RECUPERACIÓN", "CABINET DIMENSIONS","DIMENSION CABINET","DIMENSIONES DEL GABINETE", "FEATURES","FONCTIONNALITÉS","CARACTERÍSTICAS", "EDITING","ÉDITION","EDICIÓN", "PRICE","PRIX","PRECIO", "LANGUAGE","LANGUE","IDIOMA", "OTHERS","AUTRES","OTROS" }; public static Dictionary List= new(); public static Dictionary Listfloat= new(); public static Dictionary ListSwitch= new(); public static void SetSwitch(string BTNName,string ListName, string path ){ GameObject BTN = Get.o2(path, BTNName); if(BTN!=null) { print("ListSwitch[ListName]==="+ListSwitch[ListName]); BTN.SetActive(ListSwitch[ListName]); } } //SWITCH DEVELOPMENT public static bool Pnl_Model=true;//New panel for panel with models public static bool Cathedral_Ceiling=false;//New panel Cathedral_Ceiling public static bool AutoSave_RefId = false; // Auto-save Ciemetric public static bool AutoSave_RoomId = false; // Auto-save Ciemetric //public static bool DrawRoomRewrite = true; //FINISH PANELS public static bool UnderFinishDefault=true; public static bool DoorMatch=true; public static string SidePanelCategory="Standard";//Notched,Over,Standard public static bool InterorFinishOnCabPnl=false; public static bool UnderFinishOnCabPnl=false; //CABINET REDIMENSIONS public static bool CabinetCornerSameAC=false; public static bool CabinetCornerSameEF=false; public static string CabinetValueBChange="K"; public static string CabinetValueDChange="B"; //PREFERENCES public static bool SaveCloudEmail=true; public static bool SaveLocalEmail=true; //Wall and Ceiling public static string wall_Color; public static string ceiling_Color; public static string floor_Texture; //UNDER BAS CABINET KICK public static bool LegOnly=true; public static bool LegKick=true; public static bool KickOnly=true; public static bool Suspended=true; public static bool RecoverOver=true; public static bool RecoverFloor=true; public static bool RecoverNotched=true; //public static string[] GS;//Global start public static string PathServer="https://ukitchenit.com/";//"https://software.ciemetric.com/";//; //public static string PathServer="https://ukitchenit.com/baindepot/";//"https://software.ciemetric.com/";//; //public static string PathServer="https://ukitchenit.com/";//"https://software.ciemetric.com/";//; public static bool KickFix=false; //public static string address="Your address here"; public static bool SinkOnly=true; public static string TopPnlUnder="none"; public static string DIY="n"; //CCOUNTER public static string CountLib="edit";//Counter library "csv","edit","both" //DOORS public static float DF = 25; public static float DD = 35; public static string FrameDoor="FingerGrip";//Door on cab Full, Partial , Insert ,FingerGrip //CASES public static float CB = 45; public static float CW = 35; public static float CT = 55; public static float CCB = 55; public static float CCW = 45; //DRAWERS public static float DR1 = 20; //PANELS public static float P12 = 25; public static float P58 = 35; public static float P34 = 45; public static float P1 = 55; public static float P112 = 65; public static float P2 = 85; //MOLDINGS public static float MO = 85; public static float MOU = 25; public static float MH = 25; public static float MU = 45; public static float MK = 25; public static float FI = 15; public static float MOL = 96; public static float MOUL = 96; public static float MHL = 96; public static float MUL = 96; public static float MKL = 96; public static float FIL = 96; //OPTIONS public static float O1p = 0; public static float O2p = 0; public static float O3p = 0; public static float O4p = 0; public static float O5p = 0; public static float O1q = 0; public static float O2q = 0; public static float O3q = 0; public static float O4q = 0; public static float O5q = 0; public static string O1s = ""; public static string O2s = ""; public static string O3s = ""; public static string O4s = ""; public static string O5s = ""; }