partial void okButtonClicked(AppKit.NSButton sender)
        {
            spinner.Hidden = false;
            spinner.StartAnimation(this);

            NSError error;
            var     networkName   = nameTextField.StringValue;
            var     password      = passwordTextField.StringValue;
            var     channelNumber = UInt32.Parse(channelPicker.SelectedItem.Title);
            var     security      = string.IsNullOrEmpty(password) ? CWIbssModeSecurity.None : CWIbssModeSecurity.WEP40;

            CurrentInterface.StartIbssModeWithSsid(new NSData(), security, channelNumber, password, out error);

            spinner.StopAnimation(this);
            spinner.Hidden = true;

            if (error != null)
            {
                NSAlert.WithError(error).RunModal();
            }
            else
            {
                Window.Close();
            }
        }
        partial void okButtonCkicked(Foundation.NSObject sender)
        {
            spinner.Hidden = false;
            spinner.StartAnimation(this);

            if (CurrentInterface == null)
            {
                return;
            }

            NSError error;

            CurrentInterface.AssociateToNetwork(NetworkToJoin, passphraseTextField.StringValue, out error);

            spinner.StopAnimation(this);
            spinner.Hidden = true;

            if (error != null)
            {
                NSAlert.WithError(error).RunModal();
            }
            else
            {
                Window.Close();
            }
        }
Beispiel #3
0
		public void RegisterForGraphicUpdate ()
		{
			IsDirty = true;
			if (Width.IsFit || Height.IsFit)
				RegisterForLayouting (LayoutingType.Sizing);
			else if (RegisteredLayoutings == LayoutingType.None)
				CurrentInterface.EnqueueForRepaint (this);
		}
 public static bool BEContains(Element element)
 {
     if (CurrentInterface.BEContains(element))
     {
         return(true);
     }
     return(false);
 }
Beispiel #5
0
        partial void joinOKButtonPressed(NSObject sender)
        {
            CW8021XProfile profile = null;

            joinSpinner.Hidden = false;
            joinSpinner.StartAnimation(Window);

            if (joinUser8021XProfilePopupButton.Enabled)
            {
                if (String.Equals(joinUser8021XProfilePopupButton, "Default"))
                {
                    profile                 = CW8021XProfile.Profile;
                    profile.Ssid            = joinNetworkNameField.StringValue;
                    profile.UserDefinedName = joinNetworkNameField.StringValue;
                    profile.Username        = !String.IsNullOrEmpty(joinUsernameField.StringValue) ? joinUsernameField.StringValue : null;
                    profile.Password        = !String.IsNullOrEmpty(joinPassphraseField.StringValue) ? joinPassphraseField.StringValue : null;
                }
                else
                {
                    var index = joinUser8021XProfilePopupButton.IndexOfSelectedItem;
                    if (index >= 0)
                    {
                        profile = CW8021XProfile.AllUser8021XProfiles[index];
                    }
                }
            }

            if (JoinDialogContext)
            {
                NSMutableDictionary param = new NSMutableDictionary();
                if (profile != null)
                {
                    param.SetValueForKey(profile, CWConstants.CWAssocKey8021XProfile);
                }

                else
                {
                    param.SetValueForKey(!String.IsNullOrEmpty(joinPassphraseField.StringValue) ? joinPassphraseField.ObjectValue: null, CWConstants.CWAssocKeyPassPhrase);
                }

                NSError error  = null;
                bool    result = CurrentInterface.AssociateToNetwork(SelectedNetwork, NSDictionary.FromDictionary(param), out error);

                joinSpinner.StopAnimation(Window);
                joinSpinner.Hidden = true;

                if (!result)
                {
                    NSAlert.WithError(error).RunModal();
                }

                else
                {
                    joinCancelButtonPressed(this);
                }
            }
        }
Beispiel #6
0
        partial void powerStateChanged(AppKit.NSSegmentedControl sender)
        {
            NSError error;

            CurrentInterface.SetPower(powerState.SelectedSegment == 0, out error);

            if (error != null)
            {
                Console.WriteLine("Error occurred while changing interface power state: {0}", error.LocalizedDescription);
            }
        }
 public static void AddBackElement(Element element, Interface intf)
 {
     if (intf != null)
     {
         intf.AddElement(element, false);
     }
     else
     {
         CurrentInterface.AddElement(element, false);
     }
 }
 public static void AddFrontElement(Element element, Interface intf)
 {
     if (intf != null)
     {
         intf.AddElement(element, true);
     }
     else
     {
         CurrentInterface.AddElement(element, true);
     }
 }
Beispiel #9
0
 public override void ClearBinding()
 {
     //ensure popped window is cleared
     if (Content != null)
     {
         if (Content.Parent != null)
         {
             CurrentInterface.DeleteWidget(Content);
         }
     }
     base.ClearBinding();
 }
Beispiel #10
0
        partial void changePower(NSObject sender)
        {
            NSError error  = null;
            bool    result = CurrentInterface.SetPower(powerStateControl.SelectedSegment == 0, out error);

            if (!result)
            {
                NSAlert.WithError(error).RunModal();
            }

            UpdateInterfaceInfoTab();
        }
Beispiel #11
0
        partial void changeChannel(NSObject sender)
        {
            NSError error  = null;
            bool    result = CurrentInterface.SetChannel(Convert.ToUInt32(channelPopup.SelectedItem.Title), out error);

            if (!result)
            {
                NSAlert.WithError(error).RunModal();
            }

            UpdateInterfaceInfoTab();
        }
Beispiel #12
0
        void onAddTabButClick(object sender, MouseButtonEventArgs e)
        {
            TabView tv = FindByName("tabview1") as TabView;

            if (tv == null)
            {
                return;
            }
            //tv.AddChild (new TabItem (CurrentInterface) { Caption = "NewTab" });
            lock (CurrentInterface.UpdateMutex) {
                tv.AddChild(CurrentInterface.LoadIMLFragment
                                (@"<TabItem Caption='New tab' Background='Blue'><Label/></TabItem>"));
            }
        }
Beispiel #13
0
 public virtual void onPop(object sender, EventArgs e)
 {
     if (Content != null)
     {
         Content.Visible = true;
         if (Content.Parent == null)
         {
             CurrentInterface.AddWidget(Content);
         }
         CurrentInterface.PutOnTop(Content);
         _content_LayoutChanged(this, new LayoutingEventArgs(LayoutingType.Sizing));
     }
     Pop.Raise(this, e);
 }
Beispiel #14
0
 protected virtual void loadTemplate(GraphicObject template = null)
 {
     if (template == null)
     {
         if (!Interface.DefaultTemplates.ContainsKey(this.GetType().FullName))
         {
             throw new Exception(string.Format("No default template found for '{0}'", this.GetType().FullName));
         }
         this.SetChild(CurrentInterface.Load(Interface.DefaultTemplates[this.GetType().FullName]));
     }
     else
     {
         this.SetChild(template);
     }
 }
Beispiel #15
0
        partial void changeChannel(AppKit.NSPopUpButton sender)
        {
            var previousChannel = CurrentInterface.WlanChannel;
            var selectedChannel = CurrentInterface.SupportedWlanChannels.Where(channel =>
                                                                               string.Format("{0} {1}", channel.ChannelNumber, channel.ChannelBand) == channelPicker.SelectedItem.Title).First();

            NSError error;

            CurrentInterface.SetWlanChannel(selectedChannel, out error);

            if (error != null)
            {
                Console.WriteLine("Error occurred while changing interface channel: {0}", error.LocalizedDescription);
                CurrentInterface.SetWlanChannel(previousChannel, out error);
                channelPicker.SelectItem(string.Format("{0} {1}", previousChannel.ChannelNumber, previousChannel.ChannelBand));
            }
        }
Beispiel #16
0
        public override bool UpdateLayout(LayoutingType layoutType)
        {
            RegisteredLayoutings &= (~layoutType);

            if (layoutType == LayoutingType.ArrangeChildren)
            {
                int curOffset = Spacing;
                for (int i = 0; i < Children.Count; i++)
                {
                    if (!Children [i].Visible)
                    {
                        continue;
                    }
                    TabItem ti = Children [i] as TabItem;
                    ti.TabOffset = curOffset;
                    if (Orientation == Orientation.Horizontal)
                    {
                        if (ti.TabTitle.RegisteredLayoutings.HasFlag(LayoutingType.Width))
                        {
                            return(false);
                        }
                        curOffset += ti.TabTitle.Slot.Width + Spacing;
                    }
                    else
                    {
                        if (ti.TabTitle.RegisteredLayoutings.HasFlag(LayoutingType.Height))
                        {
                            return(false);
                        }
                        curOffset += ti.TabTitle.Slot.Height + Spacing;
                    }
                }

                //if no layouting remains in queue for item, registre for redraw
                if (RegisteredLayoutings == LayoutingType.None && IsDirty)
                {
                    CurrentInterface.EnqueueForRepaint(this);
                }

                return(true);
            }

            return(base.UpdateLayout(layoutType));
        }
Beispiel #17
0
        public override bool UpdateLayout(LayoutingType layoutType)
        {
            RegisteredLayoutings &= (~layoutType);

            if (layoutType == LayoutingType.ArrangeChildren)
            {
                ComputeChildrenPositions();

                //if no layouting remains in queue for item, registre for redraw
                if (RegisteredLayoutings == LayoutingType.None && bmp == null)
                {
                    CurrentInterface.EnqueueForRepaint(this);
                }

                return(true);
            }

            return(base.UpdateLayout(layoutType));
        }
Beispiel #18
0
        partial void ibssOKButtonPressed(NSObject sender)
        {
            ibssSpinner.Hidden = false;
            ibssSpinner.StartAnimation(this);

            string   networkName = ibssNetworkNameField.StringValue;
            NSNumber channel     = new NSNumber(Convert.ToInt32(ibssChannelPopupButton.SelectedItem.Title));
            string   passPhrase  = ibssPassphraseField.StringValue;

            NSMutableDictionary ibssParams = new NSMutableDictionary();

            if (!(String.IsNullOrEmpty(networkName)))
            {
                ibssParams.SetValueForKey(ibssNetworkNameField.ObjectValue, CWConstants.CWIBSSKeySSID);
            }


            if (channel.IntValue > 0)
            {
                ibssParams.SetValueForKey(channel, CWConstants.CWIBSSKeyChannel);
            }

            if (!(String.IsNullOrEmpty(passPhrase)))
            {
                ibssParams.SetValueForKey(ibssPassphraseField.ObjectValue, CWConstants.CWIBSSKeyPassphrase);
            }

            NSError error = null;

            bool created = CurrentInterface.EnableIBSSWithParameters(NSDictionary.FromDictionary(ibssParams), out error);

            ibssSpinner.StopAnimation(this);
            ibssSpinner.Hidden = true;

            if (!created)
            {
                NSAlert.WithError(error).RunModal();
            }
            else
            {
                ibssCancelButtonPressed(this);
            }
        }
Beispiel #19
0
        private void UpdateScanTab()
        {
            NSDictionary param = NSDictionary.FromObjectAndKey(NSNumber.FromBoolean(mergeScanResultsCheckbox.State == NSCellStateValue.On), new NSString("true"));
            NSError      error = null;

            ScanResults = CurrentInterface.ScanForNetworksWithParameters(param, out error);
            if (error == null)
            {
                Array.Sort(ScanResults, delegate(CWNetwork networkA, CWNetwork networkB)
                {
                    return(networkA.Ssid.CompareTo(networkB.Ssid));
                });
            }
            else
            {
                ScanResults = new CWNetwork[0];
                NSAlert.WithError(error).RunModal();
            }

            scanResultsTable.ReloadData();
        }
Beispiel #20
0
        public override bool UpdateLayout(LayoutingType layoutType)
        {
            RegisteredLayoutings &= (~layoutType);

            if (layoutType == LayoutingType.ArrangeChildren)
            {
                //allow 1 child to have size to 0 if stack has fixed or streched size policy,
                //this child will occupy remaining space
                //if stack size policy is Fit, no child may have stretch enabled
                //in the direction of stacking.
                ComputeChildrenPositions();

                //if no layouting remains in queue for item, registre for redraw
                if (RegisteredLayoutings == LayoutingType.None && bmp == null)
                {
                    CurrentInterface.EnqueueForRepaint(this);
                }

                return(true);
            }

            return(base.UpdateLayout(layoutType));
        }
Beispiel #21
0
    //**************************************************************************************************************************************************************************************
    //**************************************************************************************************************************************************************************************
    //**************************************************************************************************************************************************************************************
    //From now on, the methods that control the EVALUATION MODE
    public void GoToMenuPhasesEvaluationMode()
    {
        Debug.LogError ("Llamado al metodo go to Menu Phases EVALUATION MODE");

        //validando que no vamos a iniciar el modo informativo:
        in_informative_mode = false;

        if (current_interface == CurrentInterface.SELECTION_OF_MODE)
            Destroy (selectionOfMode_interface_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE1_EV)
            Destroy (menuStepsPhase1_int_eval_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE2_EV)
            Destroy (menuStepsPhase2_int_eval_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL)
            Destroy (TutorialPhaseTwoSearchProd_interface_instance);

        current_interface = CurrentInterface.MENU_PHASES_EV;

        menuProcessPhases_int_eval_instance = Instantiate (menuProcessPhasesEval);
        CanvasProcessPhasesMangEvaluation cProcessPhaseManager = menuProcessPhases_int_eval_instance.GetComponent<CanvasProcessPhasesMangEvaluation> ();
        cProcessPhaseManager.titulo = this.title_ordering_phases;
        //asignando imagenes a los botones de la interfaz
        cProcessPhaseManager.introduction_text_path = this.menuPhases_eval_introduction_text_path;

        string[] imagenes = new string[6];
        imagenes [0] = this.menuPhases_interface_button_uno_image;
        imagenes [1] = this.menuPhases_interface_button_dos_image;
        imagenes [2] = this.menuPhases_interface_button_tres_image;
        imagenes [3] = this.menuPhases_interface_button_cuatro_image;
        imagenes [4] = this.menuPhases_interface_button_cinco_image;
        imagenes [5] = this.menuPhases_interface_button_seis_image;

        string[] imagenes_gray = new string[6];
        imagenes_gray [0] = this.menuPhases_interface_button_uno_image; //la primera imagen va en color porque no se debe deshabilitar
        imagenes_gray [1] = this.menuPhases_int_btn_dos_image_gray;
        imagenes_gray [2] = this.menuPhases_int_btn_tres_image_gray;
        imagenes_gray [3] = this.menuPhases_int_btn_cuatro_image_gray;
        imagenes_gray [4] = this.menuPhases_int_btn_cinco_image_gray;
        imagenes_gray [5] = this.menuPhases_int_btn_seis_image_gray;

        string[] nombres_pasos = new string[6];
        nombres_pasos [0] = menuPhases_int_eval_button_uno_text;
        nombres_pasos [1] = menuPhases_int_eval_button_dos_text;
        nombres_pasos [2] = menuPhases_int_eval_button_tres_text;
        nombres_pasos [3] = menuPhases_int_eval_button_cuatro_text;
        nombres_pasos [4] = menuPhases_int_eval_button_cinco_text;
        nombres_pasos [5] = menuPhases_int_eval_button_seis_text;

        //vector que contendra las acciones disponibles, es decir las funciones que se pueden llamar:
        System.Action[] acciones_disponibles;
        acciones_disponibles = new System.Action[6];

        acciones_disponibles [0] += GoToMenuStepsPhase1Eval;
        acciones_disponibles [1] += GoToMenuStepsPhase2Eval;
        acciones_disponibles [2] += GoToMenuStepsPhase2Eval;
        acciones_disponibles [3] += GoToMenuStepsPhase2Eval;
        acciones_disponibles [4] += GoToMenuStepsPhase2Eval;
        acciones_disponibles [5] += GoToMenuStepsPhase2Eval;

        //Vector que almacena las acciones asignadas segun el orden aleatorio que se establezca:
        System.Action[] acciones_asignadas;
        acciones_asignadas = new System.Action[6];

        //Vector que almacena las imagenes asignadas segun el orden aleatorio:
        string[] imags_asignadas = new string[6];

        //Vector que almacena los nombres de fase asignados segun el orden aleatorio:
        string[] nombres_asignados = new string[6];

        //Vector que almacena las imagenes en gris para mostrar los pasos inhabilitados:
        string[] imgs_gray_asignadas = new string[6];

        //Vector que almacena los numeros de las fases segun el orden aleatorio:
        int[] numeros_fase = new int[6];

        //Vector que almacena los numeros de las fases en el ORDEN ORIGINAL:
        int[] numeros_originales = new int[6];

        numeros_originales [0] = 1;
        numeros_originales [1] = 2;
        numeros_originales [2] = 3;
        numeros_originales [3] = 4;
        numeros_originales [4] = 5;
        numeros_originales [5] = 6;

        List<int> randomNumbers = new List<int>();

        Debug.Log ("Se va a comenzar el ciclo de definicion de numeros");
        for (int i = 1; i <= 6; i++)
            randomNumbers.Add(i);

        foreach (int num in randomNumbers) {
            Debug.Log("Numero: " + num);
        }

        for (int j = 0; j <= 5; j++) {
            if(randomNumbers.Count <= 0)
                j=6;
            int index_num = UnityEngine.Random.Range(0,randomNumbers.Count);
            int rand_num = randomNumbers[index_num];
            Debug.Log ("rand_num=" + rand_num);
            //llenando los vectores con la info correspondiente:
            numeros_fase[rand_num-1] = numeros_originales[j];
            acciones_asignadas[rand_num-1] = acciones_disponibles[j];
            imags_asignadas[rand_num-1] = imagenes[j];
            nombres_asignados[rand_num-1] = nombres_pasos[j];
            imgs_gray_asignadas[rand_num-1] = imagenes_gray[j];
            //eliminando el elemento de la lista para acortar el vector y evitar repetir numeros:
            randomNumbers.RemoveAt(index_num);
            Debug.Log("Iteracion asignando: " + j);
        }

        for (int k = 0; k <= 5; k++) {
            Debug.Log ("accion " + k + ": " + acciones_asignadas[0].ToString());
        }

        //asignando imagenes y textos a los botones de acuerdo con el orden aleatorio definido:
        cProcessPhaseManager.image_uno_limpieza = imags_asignadas[0];
        cProcessPhaseManager.image_dos_matizado = imags_asignadas[1];
        cProcessPhaseManager.image_tres_masillado = imags_asignadas[2];
        cProcessPhaseManager.image_cuatro_aparejado = imags_asignadas[3];
        cProcessPhaseManager.image_cinco_pintado = imags_asignadas[4];
        cProcessPhaseManager.image_seis_barnizado = imags_asignadas[5];
        //asignando textos a los botones de la interfaz de acuerdo con el orden aleatorio definido:
        cProcessPhaseManager.button_uno_text_limpieza = nombres_asignados[0];
        cProcessPhaseManager.button_dos_text_matizado = nombres_asignados[1];
        cProcessPhaseManager.button_tres_text_masillado = nombres_asignados[2];
        cProcessPhaseManager.button_cuatro_text_aparejado = nombres_asignados[3];
        cProcessPhaseManager.button_cinco_text_pintado = nombres_asignados[4];
        cProcessPhaseManager.button_seis_text_barnizado = nombres_asignados[5];

        //asignando las acciones que tendrian los botones
        cProcessPhaseManager.goToMenuStepsOfPhase1_action += acciones_asignadas[0];
        cProcessPhaseManager.goToMenuStepsOfPhase2_action += acciones_asignadas[1];
        cProcessPhaseManager.goToMenuStepsOfPhase3_action += acciones_asignadas[2];
        cProcessPhaseManager.goToMenuStepsOfPhase4_action += acciones_asignadas[3];
        cProcessPhaseManager.goToMenuStepsOfPhase5_action += acciones_asignadas[4];
        cProcessPhaseManager.goToMenuStepsOfPhase6_action += acciones_asignadas[5];

        cProcessPhaseManager.phase_number_button_one = numeros_fase [0];
        cProcessPhaseManager.phase_number_button_two = numeros_fase [1];
        cProcessPhaseManager.phase_number_button_three = numeros_fase [2];
        cProcessPhaseManager.phase_number_button_four = numeros_fase [3];
        cProcessPhaseManager.phase_number_button_five = numeros_fase [4];
        cProcessPhaseManager.phase_number_button_six = numeros_fase [5];
        //Se agrega el metodo que se debe ejecutar para notificarle al AppManager que ya se han organizado
        //los pasos correctamente: (ver metodo NotifyPhasesOrganized aqui en el AppManager)
        cProcessPhaseManager.NotifyPhasesOrganized += NotifyPhasesOrganized;
        //asignando la accion para regresar desde el menu de fases hacia seleccion de modo:
        cProcessPhaseManager.goBackToSelectionOfMode += GoToSelectionOfMode;

        //Se llama al metodo para organizar los pasos en el orden correcto cuando ya se han organizado antes por parte
        //del estudiante
        if (eval_mode_phases_organized) {

            //notificando al script que los pasos se van a organizar y activar/desactivar desde el AppManager
            cProcessPhaseManager.phases_organized_from_manager = true;

            //el boton del primer paso siempre estara activo por defecto porque se comienza por ahi:
            cProcessPhaseManager.step_btn_one_enable = true;
            cProcessPhaseManager.image_uno_limpieza = this.menuPhases_interface_button_uno_image;

            //asignando imagenes a los demas pasos dependiendo de si van habilitados o no:
            Debug.Log ("Fase1 completada?: " + phase_one_enable_eval_mode);
            if (phase_two_enable_eval_mode) {
                cProcessPhaseManager.step_btn_two_enable = true;
                cProcessPhaseManager.image_dos_matizado= this.menuPhases_interface_button_dos_image;
            } else {
                cProcessPhaseManager.step_btn_two_enable = false;
                cProcessPhaseManager.image_dos_matizado = this.menuPhases_int_btn_dos_image_gray;
            }

            Debug.Log ("Fase2 completada?: " + phase_two_enable_eval_mode);
            if (phase_three_enable_eval_mode) {
                cProcessPhaseManager.step_btn_three_enable = true;
                cProcessPhaseManager.image_tres_masillado = this.menuPhases_interface_button_tres_image;
            } else {
                cProcessPhaseManager.step_btn_three_enable = false;
                cProcessPhaseManager.image_tres_masillado = this.menuPhases_int_btn_tres_image_gray;
            }

            Debug.Log ("Fase3 completada?: " + phase_three_enable_eval_mode);
            if (phase_four_enable_eval_mode) {
                cProcessPhaseManager.step_btn_four_enable = true;
                cProcessPhaseManager.image_cuatro_aparejado = this.menuPhases_interface_button_cuatro_image;
            } else {
                cProcessPhaseManager.step_btn_four_enable = false;
                cProcessPhaseManager.image_cuatro_aparejado = this.menuPhases_int_btn_cuatro_image_gray;
            }

            Debug.Log ("Fase4 completado?: " + phase_four_enable_eval_mode);
            if (phase_five_enable_eval_mode) {
                cProcessPhaseManager.step_btn_five_enable = true;
                cProcessPhaseManager.image_cinco_pintado = this.menuPhases_interface_button_cinco_image;
            } else {
                cProcessPhaseManager.step_btn_five_enable = false;
                cProcessPhaseManager.image_cinco_pintado = this.menuPhases_int_btn_cinco_image_gray;
            }

            Debug.Log ("Fase5 completado?: " + phase_five_enable_eval_mode);
            if (phase_six_enable_eval_mode) {
                cProcessPhaseManager.step_btn_six_enable = true;
                cProcessPhaseManager.image_seis_barnizado = this.menuPhases_interface_button_seis_image;
            } else {
                cProcessPhaseManager.step_btn_six_enable = false;
                cProcessPhaseManager.image_seis_barnizado = this.menuPhases_int_btn_seis_image_gray;
            }

            Debug.Log ("Paso6 completado?: " + phase_six_enable_eval_mode);

            //asignando textos a los botones de la interfaz:
            cProcessPhaseManager.button_uno_text_limpieza = this.menuPhases_int_eval_button_uno_text;
            cProcessPhaseManager.button_dos_text_matizado = this.menuPhases_int_eval_button_dos_text;
            cProcessPhaseManager.button_tres_text_masillado = this.menuPhases_int_eval_button_tres_text;
            cProcessPhaseManager.button_cuatro_text_aparejado = this.menuPhases_int_eval_button_cuatro_text;
            cProcessPhaseManager.button_cinco_text_pintado = this.menuPhases_int_eval_button_cinco_text;
            cProcessPhaseManager.button_seis_text_barnizado = this.menuPhases_int_eval_button_seis_text;
            //estas acciones disponibles se definen un poco mas arriba en este script:
            cProcessPhaseManager.goToMenuStepsOfPhase1_action += acciones_disponibles [0];
            cProcessPhaseManager.goToMenuStepsOfPhase2_action += acciones_disponibles [1];
            cProcessPhaseManager.goToMenuStepsOfPhase3_action += acciones_disponibles [2];
            cProcessPhaseManager.goToMenuStepsOfPhase4_action += acciones_disponibles [3];
            cProcessPhaseManager.goToMenuStepsOfPhase5_action += acciones_disponibles [4];
            cProcessPhaseManager.goToMenuStepsOfPhase6_action += acciones_disponibles [5];

            cProcessPhaseManager.phase_number_button_one = numeros_originales [0];
            cProcessPhaseManager.phase_number_button_two = numeros_originales [1];
            cProcessPhaseManager.phase_number_button_three = numeros_originales [2];
            cProcessPhaseManager.phase_number_button_four = numeros_originales [3];
            cProcessPhaseManager.phase_number_button_five = numeros_originales [4];
            cProcessPhaseManager.phase_number_button_six = numeros_originales [5];
            //llamado al metodo que coloca los botones en el orden correcto:
            cProcessPhaseManager.OrganizarPasosOrdenCorrecto ();
        } else { //si los pasos no se han organizado entonces se habilita la posibilidad de que una vez se organicen
                //se deshabiliten todos los iconos menos el primero
            cProcessPhaseManager.phases_organized_from_manager = false;
            cProcessPhaseManager.imgs_gray_random_phases = imgs_gray_asignadas;
        }

        interfaceComingBackFrom = "MenuPhases";
        goBackFromOtherInterface = true;
        //registrando navegacion:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: IE1");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE1", "0", "-1","eval");
    }
Beispiel #22
0
    /// <summary>
    /// Goes to menu steps phase2 in eval mode (for organizing the steps of phase2)
    /// </summary>
    public void GoToMenuStepsPhase2Eval()
    {
        Debug.LogError ("Llamado al metodo go to Menu steps phase 2 in Evaluation Mode");

        if (current_interface == CurrentInterface.MENU_PHASES_EV)
            Destroy (menuProcessPhases_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP1_EV)
            Destroy (ActivitiesForPhase2Step1_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP2_EV)
            Destroy (ActivitiesForPhase2Step2_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP3_EV)
            Destroy (ActivitiesForPhase2Step3_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP4_EV)
            Destroy (ActivitiesForPhase2Step4_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP5_EV)
            Destroy (ActivitiesForPhase2Step5_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP6_EV)
            Destroy (ActivitiesForPhase2Step6_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP7_EV)
            Destroy (ActivitiesForPhase2Step7_int_eval_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP8_EV)
            Destroy (ActivitiesForPhase2Step8_int_eval_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_CAR_HOOD_EVAL)
            Destroy (SearchCapoCarroEvaluationMode_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP2_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP3_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP5_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP6_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP7_EV || current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP8_EV)
            Destroy (ARSearch_eval_mode_instance);

        processOrder = 0;

        current_interface = CurrentInterface.MENU_STEPS_PHASE2_EV;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase1");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseTwoEval");
        DestroyInstancesWithTag ("AR_Mode_Generic_interface");

        Debug.Log ("SE VAN A IMPRIMIR LAS INSTANCIAS DISPONIBLES:");
        MenuOfStepsPhaseOneManagerEval[] arreglo = FindObjectsOfType(typeof(MenuOfStepsPhaseOneManagerEval)) as MenuOfStepsPhaseOneManagerEval[];
        foreach(MenuOfStepsPhaseOneManagerEval canv in arreglo){
            Debug.Log("--> INSTANCIA " + canv.name);
        }

        Debug.Log ("SE VAN A IMPRIMIR LAS INSTANCIAS NORMALES DISPONIBLES:");
        MenuOfStepsPhase1Manager[] arreglo_dos = FindObjectsOfType(typeof(MenuOfStepsPhase1Manager)) as MenuOfStepsPhase1Manager[];
        foreach(MenuOfStepsPhase1Manager canv in arreglo_dos){
            Debug.Log("--> INSTANCIA Normal: " + canv.name);
        }

        menuStepsPhase2_int_eval_instance = Instantiate (menuStepsPhase2Eval);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuStepsPhase2_int_eval_instance.name = "InterfaceMenuOfStepsPhase2Eval";
        //Obteniendo referencia al script
        MenuOfStepsPhaseTwoManagerEval cMenuStepsPhase2Manager = menuStepsPhase2_int_eval_instance.GetComponent<MenuOfStepsPhaseTwoManagerEval> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuStepsPhase2_int_eval_title);
        cMenuStepsPhase2Manager.titulo = menuStepsPhase2_int_eval_title;
        cMenuStepsPhase2Manager.introduction_text_path = menuStepsPhase2_introduction_text_path_eval;
        cMenuStepsPhase2Manager.image_header_phase1 = menuStepsPhase2_image_header;

        string[] imagenes = new string[8];
        imagenes [0] = this.phaseTwo_img_step_one_no_text;
        imagenes [1] = this.phaseTwo_img_step_two_no_text;
        imagenes [2] = this.phaseTwo_img_step_three_no_text;
        imagenes [3] = this.phaseTwo_img_step_four_no_text;
        imagenes [4] = this.phaseTwo_img_step_five_no_text;
        imagenes [5] = this.phaseTwo_img_step_six_no_text;
        imagenes [6] = this.phaseTwo_img_step_seven_no_text;
        imagenes [7] = this.phaseTwo_img_step_eight_no_text;

        string[] imagenes_gray = new string[8];
        imagenes_gray [0] = phaseTwo_img_step_one_no_text; //la primera imagen va en color porque no se debe deshabilitar
        imagenes_gray [1] = stepsPhaseTwo_img_two_gray_notxt;
        imagenes_gray [2] = stepsPhaseTwo_img_three_gray_notxt;
        imagenes_gray [3] = stepsPhaseTwo_img_four_gray_notxt;
        imagenes_gray [4] = stepsPhaseTwo_img_five_gray_notxt;
        imagenes_gray [5] = stepsPhaseTwo_img_six_gray_notxt;
        imagenes_gray [6] = stepsPhaseTwo_img_seven_gray_notxt;
        imagenes_gray [7] = stepsPhaseTwo_img_eight_gray_notxt;

        string[] nombres_pasos = new string[8];
        nombres_pasos [0] = this.menuStepsPhase2_button_uno_text_eval;
        nombres_pasos [1] = this.menuStepsPhase2_button_dos_text_eval;
        nombres_pasos [2] = this.menuStepsPhase2_button_tres_text_eval;
        nombres_pasos [3] = this.menuStepsPhase2_button_cuatro_text_eval;
        nombres_pasos [4] = this.menuStepsPhase2_button_cinco_text_eval;
        nombres_pasos [5] = this.menuStepsPhase2_button_seis_text_eval;
        nombres_pasos [6] = this.menuStepsPhase2_button_siete_text_eval;
        nombres_pasos [7] = this.menuStepsPhase2_button_ocho_text_eval;

        //vector que contendra las acciones disponibles, es decir las funciones que se pueden llamar:
        System.Action[] acciones_disponibles;
        acciones_disponibles = new System.Action[8];

        acciones_disponibles [0] += GoToActivitiesPhase2Step1EvalMode;
        acciones_disponibles [1] += GoToActivitiesPhase2Step2EvalMode;
        acciones_disponibles [2] += GoToActivitiesPhase2Step3EvalMode;
        acciones_disponibles [3] += GoToActivitiesPhase2Step4EvalMode;
        acciones_disponibles [4] += GoToActivitiesPhase2Step5EvalMode;
        acciones_disponibles [5] += GoToActivitiesPhase2Step6EvalMode;
        acciones_disponibles [6] += GoToActivitiesPhase2Step7EvalMode;
        acciones_disponibles [7] += GoToActivitiesPhase2Step8EvalMode;

        //Vector que almacena las acciones asignadas segun el orden aleatorio que se establezca:
        System.Action[] acciones_asignadas;
        acciones_asignadas = new System.Action[8];

        //Vector que almacena las imagenes asignadas segun el orden aleatorio:
        string[] imags_asignadas = new string[8];

        //Vector que almacena las imagenes en gris para mostrar los pasos inhabilitados:
        string[] imgs_gray_asignadas = new string[8];

        //Vector que almacena los nombres de fase asignados segun el orden aleatorio:
        string[] nombres_asignados = new string[8];

        //Vector que almacena los numeros de las fases segun el orden aleatorio:
        int[] numeros_fase = new int[8];

        //Vector que almacena los numeros de las fases en el ORDEN ORIGINAL:
        int[] numeros_originales = new int[8];

        numeros_originales [0] = 1;
        numeros_originales [1] = 2;
        numeros_originales [2] = 3;
        numeros_originales [3] = 4;
        numeros_originales [4] = 5;
        numeros_originales [5] = 6;
        numeros_originales [6] = 7;
        numeros_originales [7] = 8;

        List<int> randomNumbers = new List<int>();

        Debug.Log ("AppManager.GoToMenuStepsPhase2Eval: Se va a comenzar el ciclo de definicion de numeros");
        for (int i = 1; i <= 8; i++)
            randomNumbers.Add(i);
        /*
        foreach (int num in randomNumbers) {
            Debug.Log("Numero: " + num);
        }
        */

        for (int j = 0; j <= 7; j++) {
            if(randomNumbers.Count <= 0)
                j=8;
            int index_num = UnityEngine.Random.Range(0,randomNumbers.Count);
            int rand_num = randomNumbers[index_num];
            //Debug.Log ("rand_num=" + rand_num);
            //llenando los vectores con la info correspondiente:
            numeros_fase[rand_num-1] = numeros_originales[j];
            acciones_asignadas[rand_num-1] = acciones_disponibles[j];
            imags_asignadas[rand_num-1] = imagenes[j];
            nombres_asignados[rand_num-1] = nombres_pasos[j];
            imgs_gray_asignadas[rand_num-1] = imagenes_gray[j];
            //eliminando el elemento de la lista para acortar el vector y evitar repetir numeros:
            randomNumbers.RemoveAt(index_num);
            //Debug.Log("AppManager.GoToMenuStepsPhase1Eval: Iteracion asignando: " + j);
        }

        for (int k = 0; k <= 7; k++) {
            Debug.Log ("AppManager.GoToMenuStepsPhase2Eval accion " + k + ": " + acciones_asignadas[k].ToString());
        }

        //asignando imagenes:
        cMenuStepsPhase2Manager.img_one_to_order = imags_asignadas[0];
        cMenuStepsPhase2Manager.img_two_to_order = imags_asignadas[1];
        cMenuStepsPhase2Manager.img_three_to_order = imags_asignadas[2];
        cMenuStepsPhase2Manager.img_four_to_order = imags_asignadas[3];
        cMenuStepsPhase2Manager.img_five_to_order = imags_asignadas[4];
        cMenuStepsPhase2Manager.img_six_to_order = imags_asignadas[5];
        cMenuStepsPhase2Manager.img_seven_to_order = imags_asignadas[6];
        cMenuStepsPhase2Manager.img_eight_to_order = imags_asignadas[7];
        //Asignando textos para cada boton en el orden aleatorio correspondiente:
        cMenuStepsPhase2Manager.string_btn_one_text = nombres_asignados[0];
        cMenuStepsPhase2Manager.string_btn_two_text =  nombres_asignados[1];
        cMenuStepsPhase2Manager.string_btn_three_text = nombres_asignados[2];
        cMenuStepsPhase2Manager.string_btn_four_text =  nombres_asignados[3];
        cMenuStepsPhase2Manager.string_btn_five_text =  nombres_asignados[4];
        cMenuStepsPhase2Manager.string_btn_six_text =  nombres_asignados[5];
        cMenuStepsPhase2Manager.string_btn_seven_text =  nombres_asignados[6];
        cMenuStepsPhase2Manager.string_btn_eight_text =  nombres_asignados[7];

        cMenuStepsPhase2Manager.goBackToMenuPhases += GoToMenuPhasesEvaluationMode;

        //asignando las acciones para cada boton
        cMenuStepsPhase2Manager.goToActionBtnOne += acciones_asignadas[0];
        cMenuStepsPhase2Manager.goToActionBtnTwo += acciones_asignadas[1];
        cMenuStepsPhase2Manager.goToActionBtnThree += acciones_asignadas[2];
        cMenuStepsPhase2Manager.goToActionBtnFour += acciones_asignadas[3];
        cMenuStepsPhase2Manager.goToActionBtnFive += acciones_asignadas[4];
        cMenuStepsPhase2Manager.goToActionBtnSix += acciones_asignadas[5];
        cMenuStepsPhase2Manager.goToActionBtnSeven += acciones_asignadas[6];
        cMenuStepsPhase2Manager.goToActionBtnEight += acciones_asignadas[7];

        //asignando los numeros de fase correspondientes:
        cMenuStepsPhase2Manager.step_number_btn_one = numeros_fase [0];
        cMenuStepsPhase2Manager.step_number_btn_two = numeros_fase [1];
        cMenuStepsPhase2Manager.step_number_btn_three = numeros_fase [2];
        cMenuStepsPhase2Manager.step_number_btn_four = numeros_fase [3];
        cMenuStepsPhase2Manager.step_number_btn_five = numeros_fase [4];
        cMenuStepsPhase2Manager.step_number_btn_six = numeros_fase [5];
        cMenuStepsPhase2Manager.step_number_btn_seven = numeros_fase [6];
        cMenuStepsPhase2Manager.step_number_btn_eight = numeros_fase [7];

        //Se agrega el metodo que se debe ejecutar para notificarle al AppManager que ya se han organizado
        //los pasos correctamente: (ver metodo NotifyPhasesOrganized aqui en el AppManager)
        cMenuStepsPhase2Manager.NotifyStepsOrganized += NotifyStepsOrganizedPhase2;

        if (eval_mode_phase2_steps_organized) {

            //notificando al script que los pasos se van a organizar y activar/desactivar desde el AppManager
            cMenuStepsPhase2Manager.steps_organized_from_manager = true;

            //el boton del primer paso siempre estara activo por defecto porque se comienza por ahi:
            cMenuStepsPhase2Manager.step_btn_one_enable = true;
            cMenuStepsPhase2Manager.img_one_to_order = this.phaseTwo_img_step_one_no_text;

            //asignando imagenes a los demas pasos dependiendo de si van habilitados o no:
            Debug.Log ("Paso1 completado?: " + steps_p_two_eval_completed [0].step_completed);
            if (steps_p_two_eval_completed [0].step_completed) {
                cMenuStepsPhase2Manager.step_btn_two_enable = true;
                cMenuStepsPhase2Manager.img_two_to_order = this.phaseTwo_img_step_two_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_two_enable = false;
                cMenuStepsPhase2Manager.img_two_to_order = this.stepsPhaseTwo_img_two_gray_notxt;
            }

            Debug.Log ("Paso2 completado?: " + steps_p_two_eval_completed [1].step_completed);
            if (steps_p_two_eval_completed [1].step_completed) {
                cMenuStepsPhase2Manager.step_btn_three_enable = true;
                cMenuStepsPhase2Manager.img_three_to_order = this.phaseTwo_img_step_three_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_three_enable = false;
                cMenuStepsPhase2Manager.img_three_to_order = this.stepsPhaseTwo_img_three_gray_notxt;
            }

            Debug.Log ("Paso3 completado?: " + steps_p_two_eval_completed [2].step_completed);
            if (steps_p_two_eval_completed [2].step_completed) {
                cMenuStepsPhase2Manager.step_btn_four_enable = true;
                cMenuStepsPhase2Manager.img_four_to_order = this.phaseTwo_img_step_four_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_four_enable = false;
                cMenuStepsPhase2Manager.img_four_to_order = this.stepsPhaseTwo_img_four_gray_notxt;
            }

            Debug.Log ("Paso4 completado?: " + steps_p_two_eval_completed [3].step_completed);
            if (steps_p_two_eval_completed [3].step_completed) {
                cMenuStepsPhase2Manager.step_btn_five_enable = true;
                cMenuStepsPhase2Manager.img_five_to_order = this.phaseTwo_img_step_five_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_five_enable = false;
                cMenuStepsPhase2Manager.img_five_to_order = this.stepsPhaseTwo_img_five_gray_notxt;
            }

            Debug.Log ("Paso5 completado?: " + steps_p_two_eval_completed [4].step_completed);
            if (steps_p_two_eval_completed [4].step_completed) {
                cMenuStepsPhase2Manager.step_btn_six_enable = true;
                cMenuStepsPhase2Manager.img_six_to_order = this.phaseTwo_img_step_six_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_six_enable = false;
                cMenuStepsPhase2Manager.img_six_to_order = this.stepsPhaseTwo_img_six_gray_notxt;
            }

            Debug.Log ("Paso6 completado?: " + steps_p_two_eval_completed [5].step_completed);
            if (steps_p_two_eval_completed [5].step_completed) {
                cMenuStepsPhase2Manager.step_btn_seven_enable = true;
                cMenuStepsPhase2Manager.img_seven_to_order = this.phaseTwo_img_step_seven_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_seven_enable = false;
                cMenuStepsPhase2Manager.img_seven_to_order = this.stepsPhaseTwo_img_seven_gray_notxt;
            }

            Debug.Log ("Paso6 completado?: " + steps_p_two_eval_completed [6].step_completed);
            if (steps_p_two_eval_completed [6].step_completed) {
                cMenuStepsPhase2Manager.step_btn_eight_enable = true;
                cMenuStepsPhase2Manager.img_eight_to_order = this.phaseTwo_img_step_eight_no_text;
            } else {
                cMenuStepsPhase2Manager.step_btn_eight_enable = false;
                cMenuStepsPhase2Manager.img_eight_to_order = this.stepsPhaseTwo_img_eight_gray_notxt;
            }

            Debug.Log ("Paso7 completado?: " + steps_p_two_eval_completed [7].step_completed);
            //aca se debe validar que si se completan los pasos de la fase 1 entonces se puede iniciar
            //la fase 2. Cuando programe la parte de la fase 2 entonces habilito lo siguiente:
            //if(steps_p_one_eval_completed[5].step_completed){
            //habilitar AQUI LA FASE 3
            //}

            //Asignando textos
            cMenuStepsPhase2Manager.string_btn_one_text = this.menuStepsPhase2_button_uno_text_eval;
            cMenuStepsPhase2Manager.string_btn_two_text = this.menuStepsPhase2_button_dos_text_eval;
            cMenuStepsPhase2Manager.string_btn_three_text = this.menuStepsPhase2_button_tres_text_eval;
            cMenuStepsPhase2Manager.string_btn_four_text = this.menuStepsPhase2_button_cuatro_text_eval;
            cMenuStepsPhase2Manager.string_btn_five_text = this.menuStepsPhase2_button_cinco_text_eval;
            cMenuStepsPhase2Manager.string_btn_six_text = this.menuStepsPhase2_button_seis_text_eval;
            cMenuStepsPhase2Manager.string_btn_seven_text = this.menuStepsPhase2_button_siete_text_eval;
            cMenuStepsPhase2Manager.string_btn_eight_text = this.menuStepsPhase2_button_ocho_text_eval;

            //asignando las acciones para cada boton
            cMenuStepsPhase2Manager.goToActionBtnOne += acciones_disponibles [0];
            cMenuStepsPhase2Manager.goToActionBtnTwo += acciones_disponibles [1];
            cMenuStepsPhase2Manager.goToActionBtnThree += acciones_disponibles [2];
            cMenuStepsPhase2Manager.goToActionBtnFour += acciones_disponibles [3];
            cMenuStepsPhase2Manager.goToActionBtnFive += acciones_disponibles [4];
            cMenuStepsPhase2Manager.goToActionBtnSix += acciones_disponibles [5];
            cMenuStepsPhase2Manager.goToActionBtnSeven += acciones_disponibles [6];
            cMenuStepsPhase2Manager.goToActionBtnEight += acciones_disponibles [7];

            cMenuStepsPhase2Manager.step_number_btn_one = numeros_originales [0];
            cMenuStepsPhase2Manager.step_number_btn_two = numeros_originales [1];
            cMenuStepsPhase2Manager.step_number_btn_three = numeros_originales [2];
            cMenuStepsPhase2Manager.step_number_btn_four = numeros_originales [3];
            cMenuStepsPhase2Manager.step_number_btn_five = numeros_originales [4];
            cMenuStepsPhase2Manager.step_number_btn_six = numeros_originales [5];
            cMenuStepsPhase2Manager.step_number_btn_seven = numeros_originales [6];
            cMenuStepsPhase2Manager.step_number_btn_eight = numeros_originales [7];

            cMenuStepsPhase2Manager.OrganizarPasosOrdenCorrecto ();

        } else { //si el eval_mode_phase2_steps_organized es false
            //entonces se notifica al script MenuOfStepsPhaseOneManagerEval que los pasos no se organizaron desde el AppManager
            //y por tanto se pueden inhabilitar los pasos que sean necesarios cuando se terminan de organizar:
            cMenuStepsPhase2Manager.steps_organized_from_manager = false;
            cMenuStepsPhase2Manager.imgs_gray_random = imgs_gray_asignadas;

        }
        //La siguiente asignacion de imagenes es comun e independiente del orden de los pasos:
        //Asignando rutas a la imagenes de las fases para mostrarlos como guia para el estudiante en el encabezado de la interfaz:
        cMenuStepsPhase2Manager.image_phase1_path = phase1_with_text_image_gray_path;
        cMenuStepsPhase2Manager.image_phase2_path = phase2_with_text_image_path;
        cMenuStepsPhase2Manager.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuStepsPhase2Manager.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuStepsPhase2Manager.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuStepsPhase2Manager.image_phase6_path = phase6_with_text_image_gray_path;

        goBackFromOtherInterface = true;
        interfaceComingBackFrom = "Phase2";

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: IE3");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE3", "0", "-1","eval");
    }
Beispiel #23
0
    /// <summary>
    /// Goes to search capo coche. In RA mode from the Evaluation mode
    /// </summary>
    public void GoToSearchCapoCocheEvalMode()
    {
        Debug.Log ("Entra al metodo GoToSearchCapoCocheEvalMode... interfaz: "  + current_interface);
        if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP1_EV) {
            Destroy(ActivitiesForPhase1Step1_int_eval_instance);
        }

        //Verificar porque se estan quedando instanciadas las interfaces para evitar hacer estos dos llamados:
        DestroyInstancesWithTag ("MenuPhasesEvalMode");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseOneEval");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseTwoEval");
        DestroyInstancesWithTag ("ActivitiesForEachStep");
        DestroyInstancesWithTag ("LoginInterface");

        current_interface = CurrentInterface.AR_SEARCH_CAR_HOOD_EVAL;

        SearchCapoCarroEvaluationMode_instance = Instantiate (BuscarCapoCarroEvaluationMode);
        ControllerBlinkARModeEvaluation controller_blinking = SearchCapoCarroEvaluationMode_instance.GetComponent<ControllerBlinkARModeEvaluation> ();

        //Es iportante asignar esta variable para poder controlar los marcadores
        interfaceInstanceActive = SearchCapoCarroEvaluationMode_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker1");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();

        //asignando el texto que se debe mostrar al momento del feedback:
        controller_blinking.feedback_info_text_path = feedback_capo_text_path;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 1;
        controller_blinking.ordenes = order_in_process;

        //El llamado al siguiente metodo carga la informacion correspondiente en la interfaz:
        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationForEvaluationMode ();

        controller_blinking.interface_going_from = "Phase1Step1Eval";
        controller_blinking.onClickSelectBtn += OnClickSelectCapoCarroEvalMode;

        //asignando el texto que se debe mostrar de guia:
        controller_blinking.texto_guia_producto = "Busca el producto 1";

        //inicializando la variable que controla si estamos en el modo de evaluacion en RA:
        in_Evaluation_mode = true;

        //iniciando el proceso blinking:
        //blinkingMarker.should_be_blinking = true;

        //colocando en false la informacion adicional por si se le habia dado atras en algun momento en la interfaz:
        info_additional_displayed = false;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: IE15");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE15", "0", "-1","eval");

        Debug.LogError ("Finaliza el metodo GoToSearchCapoCocheEvalMode");
    }
Beispiel #24
0
        public override void ReadXml(System.Xml.XmlReader reader)
        {
            //Template could be either an attribute containing path or expressed inlined
            //as a Template Element
            using (System.Xml.XmlReader subTree = reader.ReadSubtree())
            {
                subTree.Read();

                string template = reader.GetAttribute("Template");
                string tmp      = subTree.ReadOuterXml();

                //Load template from path set as attribute in templated control
                if (string.IsNullOrEmpty(template))
                {
                    //seek for template tag first
                    using (XmlReader xr = new XmlTextReader(tmp, XmlNodeType.Element, null)) {
                        //load template first if inlined

                        xr.Read();                          //read first child
                        xr.Read();                          //skip root node

                        while (!xr.EOF)
                        {
                            if (!xr.IsStartElement())
                            {
                                xr.Read();
                                continue;
                            }
                            if (xr.Name == "ItemTemplate")
                            {
                                string dataType = "default", datas = "", itemTmp;
                                while (xr.MoveToNextAttribute())
                                {
                                    if (xr.Name == "DataType")
                                    {
                                        dataType = xr.Value;
                                    }
                                    else if (xr.Name == "Data")
                                    {
                                        datas = xr.Value;
                                    }
                                }
                                xr.MoveToElement();
                                itemTmp = xr.ReadInnerXml();

                                if (ItemTemplates == null)
                                {
                                    ItemTemplates = new Dictionary <string, ItemTemplate> ();
                                }

                                using (IMLReader iTmp = new IMLReader(null, itemTmp)) {
                                    ItemTemplates [dataType] =
                                        new ItemTemplate(iTmp.RootType, iTmp.GetLoader(), dataType, datas);
                                }
                                if (!string.IsNullOrEmpty(datas))
                                {
                                    ItemTemplates [dataType].CreateExpandDelegate(this);
                                }

                                continue;
                            }
                            if (xr.Name == "Template")
                            {
                                xr.Read();

                                Type t = Type.GetType("Crow." + xr.Name);
                                if (t == null)
                                {
                                    Assembly a = Assembly.GetEntryAssembly();
                                    foreach (Type expT in a.GetExportedTypes())
                                    {
                                        if (expT.Name == xr.Name)
                                        {
                                            t = expT;
                                        }
                                    }
                                }
                                GraphicObject go = (GraphicObject)Activator.CreateInstance(t);
                                (go as IXmlSerializable).ReadXml(xr);

                                loadTemplate(go);
                                continue;
                            }
                            xr.ReadInnerXml();
                        }
                    }
                }
                else
                {
                    loadTemplate(CurrentInterface.Load(template));
                }

                //if no template found, load default one
                if (this.child == null)
                {
                    loadTemplate();
                }

                //normal xml read
                using (XmlReader xr = new XmlTextReader(tmp, XmlNodeType.Element, null)) {
                    xr.Read();
                    base.ReadXml(xr);
                }
            }
        }
Beispiel #25
0
 public static bool IntersectingMouse()
 {
     return(CurrentInterface.IntersectingMouse());
 }
Beispiel #26
0
    /// <summary>
    /// Method that is called in order to start the AR mode for searching the tools of Phase 1 - Step4 (lija fina)
    /// </summary>
    public void GoToSearchLijaFinaPhase1Step4()
    {
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS) {
            Destroy(ToolsAndProductsPhase1Step4_interface_instance);
        }

        current_interface = CurrentInterface.AR_SEARCH_PHASE1_STEP4;

        //indica que entramos en la fase 2 del tutorial:
        inTutorialPhase2 = false;
        Debug.Log ("--> Iniciando modo RA en GoToSearchAguaPresionPhase1Step4");
        //indica que se ingresa al modo RA fuera de los tutoriales:
        in_RA_mode = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        AR_Mode_Search_interface_instance = Instantiate (AR_Mode_interface);
        ControllerBlinkingARGeneric blinking_search_phase1step4 = AR_Mode_Search_interface_instance.GetComponent<ControllerBlinkingARGeneric> ();

        Debug.Log ("Nueva Interfaz Instanciada en GoToSearchToolsPhase1Step4!!");

        //hay que asignar la interfaz activa tambien:
        interfaceInstanceActive = AR_Mode_Search_interface_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker45");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();
        controller_info_marker.image_marker_path = "Sprites/markers/frameMarker45_46_TwoOptions";
        controller_info_marker.image_marker_real_path = "Sprites/phase1step4/FrameMarker45_46_TwoOptionsImage";

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,false,true);

        Debug.LogError ("NOW: Start Blinking en GoToSearchToolsPhase1Step4");
        //asignando el texto para el feedback directamente a la interfaz:
        blinking_search_phase1step4.feedback_info_text_path = text_feedback_marker45_lija;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 7; //Buscando la lija fina - abrasivo de lijado
        blinking_search_phase1step4.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase1step4.interface_going_from = "Phase1Step4";  //la variable Phase1Step3 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase1step4.onClickSelectBtn += OnClickSelectLijaFina;

        //iniciando el proceso blinking:
        blinking_search_phase1step4.should_be_blinking = true;

        //registrando la navegacion de la interfaz:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I25");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I25", "3", "-1");
    }
Beispiel #27
0
    public void GoToSearchObjetoLimpiezaPhase2Step4()
    {
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS) {
            Destroy(ToolsAndProductsPhase2Step4_interface_instance);
        } else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4)
            Destroy (AR_Mode_Search_interface_instance);

        current_interface = CurrentInterface.AR_SEARCH_PHASE2_STEP4;

        //indica que entramos en la fase 2 del tutorial:
        inTutorialPhase2 = false;
        Debug.Log ("--> Iniciando modo RA en GoToSearchObjetoLimpiezaPhase2Step4");
        //indica que se ingresa al modo RA fuera de los tutoriales:
        in_RA_mode = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        AR_Mode_Search_interface_instance = Instantiate (AR_Mode_interface);
        ControllerBlinkingARGeneric blinking_search_phase2step4_second = AR_Mode_Search_interface_instance.GetComponent<ControllerBlinkingARGeneric> ();

        Debug.Log ("Nueva Interfaz Instanciada en GoToSearchObjetoLimpiezaPhase2Step4!!");

        //hay que asignar la interfaz activa tambien:
        interfaceInstanceActive = AR_Mode_Search_interface_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker25");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();
        //ATENCION: En este caso en particular se configuran otras imagenes al marcador 25 porque en este paso se
        //permite seleccionar varias opciones concretamente el marcador 25,24 y 23, por lo tanto se va a mostrar
        //una imagen compuesta y diferente  para que el estudiante sepa que puede seleccionar alguno de los elementos:
        controller_info_marker.image_marker_path = "Sprites/markers/frameMarker25_24_23_elemento_limpieza";
        controller_info_marker.image_marker_real_path = "Sprites/phase2step4/FrameMarker25_24_23_limpieza";

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,false,true);

        Debug.LogError ("NOW: Start Blinking en GoToSearchObjetoLimpiezaPhase2Step3");
        //asignando el texto para el feedback directamente a la interfaz:
        blinking_search_phase2step4_second.feedback_info_text_path = text_feedback_phase2step4;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 16; //Buscando objeto de limpieza paso 4 fase2

        blinking_search_phase2step4_second.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase2step4_second.interface_going_from = "Phase2Step4";  //la variable Phase1Step3 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase2step4_second.onClickSelectBtn += OnClickSelectObjetoLimpiezaPhase2Step4;

        //iniciando el proceso blinking:
        blinking_search_phase2step4_second.should_be_blinking = true;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I49");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I49", "10", "-1");
    }
Beispiel #28
0
    public void GoToSearchRotoOrbitalP2S5Eval()
    {
        Debug.Log ("Entra al metodo GoToSearchRotoOrbitalP2S5Eval... interfaz: "  + current_interface);
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_EVAL) {
            Destroy (ToolsAndProductsPhase2Step5_int_eval_instance);
        } else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP5_EV)
            Destroy (ARSearch_eval_mode_instance);

        //Verificar porque se estan quedando instanciadas las interfaces para evitar hacer estos dos llamados:
        DestroyInstancesWithTag ("MenuPhasesEvalMode");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseOneEval");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseTwoEval");

        current_interface = CurrentInterface.AR_SEARCH_PHASE2_STEP5_EV;

        ARSearch_eval_mode_instance = Instantiate (ARModeEvaluation);
        ControllerBlinkARModeEvaluation controller_blinking = ARSearch_eval_mode_instance.GetComponent<ControllerBlinkARModeEvaluation> ();

        //Es iportante asignar esta variable para poder controlar los marcadores
        interfaceInstanceActive = ARSearch_eval_mode_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker99");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();

        //asignando el texto que se debe mostrar al momento del feedback:
        controller_blinking.feedback_info_text_path = feedback_marker99_eval_mode_step5;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 17;
        controller_blinking.ordenes = order_in_process;

        //El llamado al siguiente metodo carga la informacion correspondiente en la interfaz:
        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationForEvaluationMode ();

        controller_blinking.interface_going_from = "Phase2Step5Eval";
        controller_blinking.onClickSelectBtn += OnClickSelectRotoOrbitalP2S5;

        //asignando el texto que se debe mostrar de guia:
        controller_blinking.texto_guia_producto = "Busca la herramienta 1:";

        //inicializando la variable que controla si estamos en el modo de evaluacion en RA:
        in_Evaluation_mode = true;

        //colocando en false la informacion adicional por si se le habia dado atras en algun momento en la interfaz:
        info_additional_displayed = false;
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE46");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE46", "11", "-1","eval");
    }
Beispiel #29
0
    public void GoToSelectionOfMode()
    {
        Debug.LogError ("AppManager: Llamado al metodo go to selection of mode");

        if (current_interface == CurrentInterface.CHALLENGE) {
            if (compact_mode)
                Destroy (challenge_interface_compact);
            else
                Destroy (challenge_interface);
        } else if (current_interface == CurrentInterface.MENU_PHASES)
            Destroy (menuProcessPhases_interface_instance);
        else if (current_interface == CurrentInterface.MENU_PHASES_EV)
            Destroy (menuProcessPhases_int_eval_instance);
        else if (current_interface == CurrentInterface.CONFIG_OPTIONS)
            Destroy (configuration_opts_interface_instance);

        DestroyInstancesWithTag ("MenuPhasesEvalMode");

        current_interface = CurrentInterface.SELECTION_OF_MODE;

        selectionOfMode_interface_instance = Instantiate (selectionOfMode);
        CanvasSelectionOfModeManager cSelectionModeManager = selectionOfMode_interface_instance.GetComponent<CanvasSelectionOfModeManager>();
        cSelectionModeManager.titulo = selectionMode_interface_title;
        cSelectionModeManager.introduction_text_path = selectionMode_interface_introduction_text_path;
        cSelectionModeManager.guidedMode_action += GoToMenuPhases;
        cSelectionModeManager.evaluationMode_action += GoToMenuPhasesEvaluationMode;
        cSelectionModeManager.informativeMode_action += GoToInformativeMode;
        cSelectionModeManager.configurationOptions_action += LoadConfigurationOptions;
        //definiendo si el boton de evaluacion debe aparecer habilitado o no:
        cSelectionModeManager.evaluation_mode_enab = this.evaluation_mode_enabled;

        //for debugging:
        /*
        TextAsset url_server = Resources.Load<TextAsset> ("Texts/00_server_base_path");
        string url_conexion = "";
        if (url_server != null)
            url_conexion = url_server.text;

        Debug.Log ("Click en el Metodo SelfAssessment!!!");
        var and_unity = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
        var current_act = and_unity.GetStatic<AndroidJavaObject>("currentActivity");
        Debug.Log("Se ha obtenido current activity...");
        // Accessing the class to call a static method on it
        var save_server = new AndroidJavaClass("edu.udg.bcds.pintura.arapp.SaveDatabaseData");
        //var jc = new AndroidJavaClass("edu.udg.bcds.pintura.tools.SelfAssessment");
        //var video_activity = new AndroidJavaClass("edu.udg.bcds.pintura.arapp.VideoActivity");
        Debug.Log ("Se ha obtenido StartActivity...");

        object[] parameters = new object[4];
        parameters [0] = current_act; //pasando el argumento de la actividad actual que se debe reproducir
        parameters [1] = "phases"; //definiendo el tipo de secuencia que se va a guardar
        parameters [2] = url_conexion; //definiendo ela URL del servidor:
        parameters [3] = this.codigo_estudiante; //enviando el codigo de estudiante
        Debug.Log ("Se va a llamar el metodo estatico SendSequencesToServer desde Unity");
        // Calling a Call method to which the current activity is passed
        save_server.CallStatic("SendSequencesToServer", parameters);
        */

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I2");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I2", "0", "-1");
    }
Beispiel #30
0
    /// <summary>
    /// Gos to sub menu steps lijado cantos. Metodo que configura la interfaz del sub-menu del lijado de cantos:
    /// </summary>
    public void GoToSubMenuStepsLijadoCantos()
    {
        Debug.LogError ("Llamado al metodo go to SubMenu LijadoCantos phase 2");

        if (current_interface == CurrentInterface.MENU_STEPS_PHASE2)
            Destroy (menuStepsPhaseTwo_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP3)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP3)
            Destroy (ActivitiesForPhase2Step3_interface_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP4)
            Destroy (ActivitiesForPhase2Step4_interface_instance);

        current_interface = CurrentInterface.MENU_SUB_STEPS_PHASE2;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase2");
        //DestroyInstancesWithTag ("BlinkingTutorialPhaseOne");

        menuSubStepsPhaseTwo_interface_instance = Instantiate (menuSubStepsPhase2);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuSubStepsPhaseTwo_interface_instance.name = "InterfaceMenuOfSubForStepsPhase2";
        //Obteniendo referencia al script
        MenuOfStepsMatizadoSubMenu cMenuSubStepsMatizado = menuSubStepsPhaseTwo_interface_instance.GetComponent<MenuOfStepsMatizadoSubMenu> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuStepsPhaseTwo_interface_title);
        cMenuSubStepsMatizado.titulo = menuSubStepsPhaseTwo_interface_title;
        //cMenuSubStepsMatizado.introduction_text_path = menuStepsPhaseTwo_introduction_text_path;
        //cMenuSubStepsMatizado.image_header_phase1 = menuStepsPhaseTwo_image_header;

        //definiendo cuales botones de los pasos se deben habilitar dependiendo de si el estudiante ya ha completado
        //las actividades anteriores:
        //por defecto el paso 1 se habilita inicialmente y con la imagen normal (este paso realmente corresponde al paso 9):
        //cMenuSubStepsMatizado.step_one_enabled = true; //esto habilita directamente
        //cMenuSubStepsMatizado.image_one_path = this.menuSubStepsPhaseTwo_int_button_uno_image;

        //Lo siguinte configura el header de la interfaz:

        //Aqui se indica a la interfaz cuales botones del menu deben ser visibles:
        cMenuSubStepsMatizado.step_one_btn_visible = true; //Lijado de cantos - Primera pasada
        cMenuSubStepsMatizado.step_two_btn_visible = true; //Lijado de cantos - Segunda pasada
        cMenuSubStepsMatizado.step_three_btn_visible = false;
        cMenuSubStepsMatizado.step_four_btn_visible = false;
        cMenuSubStepsMatizado.step_five_btn_visible = false;
        cMenuSubStepsMatizado.step_six_btn_visible = false;

        //ahora se habilitan las imagenes de los pasos que se deben mostrar en el header debajo de las imgs de las fases:
        cMenuSubStepsMatizado.sub_phase_one_visible = true;
        cMenuSubStepsMatizado.sub_phase_two_visible = true;
        cMenuSubStepsMatizado.sub_phase_three_visible = true;
        cMenuSubStepsMatizado.sub_phase_four_visible = true;
        cMenuSubStepsMatizado.sub_phase_five_visible = false;
        cMenuSubStepsMatizado.sub_phase_six_visible = false;

        //ahora se indican las rutas a las imagenes que se deben mostrar:
        cMenuSubStepsMatizado.image_subphase_one_path = menuStepsPhaseTwo_int_btn_uno_image_gray; //imagen en gris con texto embebido
        cMenuSubStepsMatizado.image_subphase_two_path = menuStepsPhaseTwo_int_btn_dos_image_gray;
        cMenuSubStepsMatizado.image_subphase_three_path = menuSubStepsPhaseTwo_int_btn_tres_imag; //esta imagen si tiene el texto embebido
        cMenuSubStepsMatizado.image_subphase_four_path = menuStepsPhaseTwo_int_btn_cuatro_image_gray;

        //Ahora se inicia el proceso para verificar si los pasos deben estar activos o no:
        //Aca en este caso debido a que es un submenu se activan dos botones de la interfaz:
        if (steps_phase_two_completed [1].step_completed) { //aca se pregunta si ya se ha completado el paso de proteccion de superficies (paso2)
            cMenuSubStepsMatizado.step_one_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
            cMenuSubStepsMatizado.image_one_path = this.menuSubStepsPhaseTwo_int_button_uno_image;
        } else {
            cMenuSubStepsMatizado.step_one_enabled = false;
            cMenuSubStepsMatizado.image_one_path = this.menuSubStepsPhaseTwo_int_button_uno_image_gray;
        }

        if (steps_phase_two_completed [2].step_completed) { //aca se pregunta si ya se ha completado el paso de primera pasada del lijado de cantos (paso 3)
            cMenuSubStepsMatizado.step_two_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
            cMenuSubStepsMatizado.image_two_path = this.menuSubStepsPhaseTwo_int_button_dos_image;
        } else {
            cMenuSubStepsMatizado.step_two_enabled = false;
            cMenuSubStepsMatizado.image_two_path = this.menuSubStepsPhaseTwo_int_button_dos_image_gray;
        }

        //aca se asignan los textos:
        cMenuSubStepsMatizado.button_one_text_string = this.menuSubStepsPhaseTwo_button_uno_text;
        cMenuSubStepsMatizado.button_two_text_string = this.menuSubStepsPhaseTwo_button_dos_text;

        //asignando las imagenes de las fases que se muestran en el header de la interfaz:
        cMenuSubStepsMatizado.image_phase1_path = phase1_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase2_path = phase2_with_text_image_path;
        cMenuSubStepsMatizado.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase6_path = phase6_with_text_image_gray_path;

        //Ahora se agregan las acciones de los botones:
        cMenuSubStepsMatizado.goBackToMenuPhases += GoToMenuStepsPhase2;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step1 += GoToActivitiesPhase2Step3;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step2 += GoToActivitiesPhase2Step4;
    }
Beispiel #31
0
    /// <summary>
    /// Starts the interface with the activity for taking pictures
    /// </summary>
    /// <param name="interface_from">Interface_from.</param>
    public void GoToTakePictures(string interface_from)
    {
        Debug.LogError ("Llamado al metodo GoToTakePictures!!");

        switch (interface_from) {
            case "Phase1Step6":
                Debug.Log("Ingresa al case Phase1Step6... Cargando Interfaz en GoToToolsAndProducts");
                if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6)
                    Destroy (ActivitiesForPhase1Step6_interface_instance);
                else if (current_interface == CurrentInterface.TAKE_AND_SEND_THE_PICTURE)
                    Destroy(TakePictureCamera_interface_instance);

                current_interface = CurrentInterface.TAKE_PICTURES;

                TakePicturesPhase1Step6_interface_instance = Instantiate (InterfaceTakePicturesInfo);
                CanvasTakePictureInterfaceManager cTakePicturesManagerP1S6 = TakePicturesPhase1Step6_interface_instance.GetComponent<CanvasTakePictureInterfaceManager> ();
                cTakePicturesManagerP1S6.image_header_path = "Sprites/tools_and_products/take_pictures";
                cTakePicturesManagerP1S6.title_header_text_path = "Texts/Phase1Step6/9_take_pict_title_header";
                cTakePicturesManagerP1S6.title_intro_content_text_path = "Texts/Phase1Step6/10_take_pict_intro_text";
                cTakePicturesManagerP1S6.tool_one_text_path = "Texts/Phase1Step6/11_take_pict_title_buttons";
                cTakePicturesManagerP1S6.btn_product_one_seguridad_enable = true;
                cTakePicturesManagerP1S6.ruta_img_product_one_seguridad = "Sprites/phase1step6/FichaDatosSeguridad";
                cTakePicturesManagerP1S6.btn_product_one_tecnica_enable = true;
                cTakePicturesManagerP1S6.ruta_img_product_one_tecnica = "Sprites/phase1step6/FichaDatosTecnicos";
                cTakePicturesManagerP1S6.goBackButtonAction += GoToActivitiesPhase1Step6;
                cTakePicturesManagerP1S6.goToPictureProdOne += TakePicturePhase1Step6Desengras;
                //cTakePicturesManagerP1S6.goToSearchProductsTools += GoToSearchDesengrasantePhase1Step6;
                //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
                cTakePicturesManagerP1S6.interfaceGoingBackFrom = interface_from;

                //asignando la interfaz activa para controlar el regreso:
                this.interfaceInstanceActive = TakePicturesPhase1Step6_interface_instance;
                string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: PFT1");
                NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "PFT1", "5", "-1");
            break;
        }
    }
Beispiel #32
0
 public static void RemoveElementAt(int index, bool front)
 {
     CurrentInterface.RemoveAt(index, front);
 }
Beispiel #33
0
 public static void PushToFront(Element element)
 {
     CurrentInterface.PushToFront(element);
 }
    public void GoToMenuPhasesInformativeMode()
    {
        Debug.LogError ("Llamado al metodo go to Menu Phases del INFORMATIVE MODE");

        if (current_interface == CurrentInterface.SELECTION_OF_MODE)
            Destroy (AppManager.manager.selectionOfMode_interface_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE1_IM)
            Destroy (menuStepsPhase1_int_im_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE2_IM)
            Destroy (menuSubStepsPhaseTwo_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL_IM)
            Destroy (TutorialPhaseTwoSearchProd_int_im_instance);

        current_interface = CurrentInterface.MENU_PHASES_IM;

        menuProcessPhases_int_im_instance = Instantiate (AppManager.manager.menuProcessPhases);
        CanvasProcessPhasesManager cProcessPhaseManager = menuProcessPhases_int_im_instance.GetComponent<CanvasProcessPhasesManager> ();
        cProcessPhaseManager.titulo = this.menuPhases_interface_title;
        //asignando imagenes a los botones de la interfaz
        cProcessPhaseManager.introduction_text_path = this.menuPhases_interface_introduction_text_path;
        cProcessPhaseManager.image_uno_limpieza = this.menuPhases_interface_button_uno_image;
        cProcessPhaseManager.image_dos_matizado = this.menuPhases_interface_button_dos_image;
        cProcessPhaseManager.image_tres_masillado = this.menuPhases_int_btn_tres_image_gray;
        cProcessPhaseManager.image_cuatro_aparejado = this.menuPhases_int_btn_cuatro_image_gray;
        cProcessPhaseManager.image_cinco_pintado = this.menuPhases_int_btn_cinco_image_gray;
        cProcessPhaseManager.image_seis_barnizado = this.menuPhases_int_btn_seis_image_gray;
        //asignando textos a los botones de la interfaz:
        cProcessPhaseManager.button_uno_text_limpieza = this.menuPhases_interface_button_uno_text;
        cProcessPhaseManager.button_dos_text_matizado = this.menuPhases_interface_button_dos_text;
        cProcessPhaseManager.button_tres_text_masillado = this.menuPhases_interface_button_tres_text;
        cProcessPhaseManager.button_cuatro_text_aparejado = this.menuPhases_interface_button_cuatro_text;
        cProcessPhaseManager.button_cinco_text_pintado = this.menuPhases_interface_button_cinco_text;
        cProcessPhaseManager.button_seis_text_barnizado = this.menuPhases_interface_button_seis_text;

        cProcessPhaseManager.goToMenuStepsOfPhase1_action += GoToMenuStepsPhase1InformativeMode;
        cProcessPhaseManager.goToMenuStepsOfPhase2_action += GoToMenuStepsPhase2InformativeMode;

        cProcessPhaseManager.goBackToSelectionOfMode += GoToSelectionModeFromInfoMode;

        //Activando las fases que se pueden consultar desde el modo informativo:
        cProcessPhaseManager.phase_one_button_enable = true;
        cProcessPhaseManager.phase_two_button_enable = true;
        cProcessPhaseManager.phase_three_button_enable = false;
        cProcessPhaseManager.phase_four_button_enable = false;
        cProcessPhaseManager.phase_five_button_enable = false;
        cProcessPhaseManager.phase_six_button_enable = false;
        //registrando la navegacion de la interfaz:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II1", "0", "-1","consulta");
    }
Beispiel #35
0
 public static void Draw(SpriteBatch sb)
 {
     CurrentInterface.Draw(sb);
 }
    /// <summary>
    /// Goes to menu steps phase1.
    /// Metodo que controla el menu de pasos de la fase 1:
    /// </summary>
    public void GoToMenuStepsPhase1InformativeMode()
    {
        Debug.LogError ("Llamado al metodo GoToMenuStepsPhase1InformativeMode INFORMATIVE!!");

        if (current_interface == CurrentInterface.MENU_PHASES_IM)
            Destroy (menuProcessPhases_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_CAR_HOOD_IM)
            Destroy (TurorialSearchCapoCarro_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_BAYETA_PRODUCT_TUTORIAL_IM)
            Destroy (TutorialTwoSearchBayeta_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL_IM)
            Destroy (TutorialPhaseTwoSearchProd_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP3_IM)
            Destroy (AR_Mode_Search_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4_IM)
            Destroy (AR_Mode_Search_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP5_IM)
            Destroy (AR_Mode_Search_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP1_IM)
            Destroy (ActivitiesForPhase1Step1_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP2_IM)
            Destroy (ActivitiesForPhase1Step2_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP3_IM)
            Destroy (ActivitiesForPhase1Step3_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP4_IM)
            Destroy (ActivitiesForPhase1Step4_int_im_instance);
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP5_IM)
            Destroy (ActivitiesForPhase1Step5_int_im_instance);
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6_IM)
            Destroy (ActivitiesForPhase1Step6_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4_IM)
            Destroy (AR_Mode_Search_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP6_IM)
            Destroy (AR_Mode_Search_int_im_instance);

        current_interface = CurrentInterface.MENU_STEPS_PHASE1_IM;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase1");

        menuStepsPhase1_int_im_instance = Instantiate (AppManager.manager.menuStepsPhase1);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuStepsPhase1_int_im_instance.name = "InterfaceMenuOfStepsPhase1";
        //Obteniendo referencia al script
        MenuOfStepsPhase1Manager cMenuStepsPhase1Manager = menuStepsPhase1_int_im_instance.GetComponent<MenuOfStepsPhase1Manager> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuStepsPhase1_interface_title);
        cMenuStepsPhase1Manager.titulo = menuStepsPhase1_interface_title;
        cMenuStepsPhase1Manager.introduction_text_path = menuStepsPhase1_introduction_text_path;
        cMenuStepsPhase1Manager.image_header_phase1 = menuStepsPhase1_image_header;
        //asignando imagenes:
        cMenuStepsPhase1Manager.image_uno_capo_carro = this.menuStepsPhase1_interface_button_uno_image;
        cMenuStepsPhase1Manager.image_dos_limpieza = this.menuStepsPhase1_interface_button_dos_image;
        cMenuStepsPhase1Manager.image_tres_secado = this.menuStepsPhase1_interface_button_tres_image;
        cMenuStepsPhase1Manager.image_cuatro_irregularidades = this.menuStepsPhase1_interface_button_cuatro_image;
        cMenuStepsPhase1Manager.image_cinco_corregir = this.menuStepsPhase1_interface_button_cinco_image;
        cMenuStepsPhase1Manager.image_seis_desengrasar = this.menuStepsPhase1_interface_button_seis_image;
        //Asignando textos
        cMenuStepsPhase1Manager.button_uno_text_capo_carro = this.menuStepsPhase1_button_uno_text;
        cMenuStepsPhase1Manager.button_dos_text_limpieza = this.menuStepsPhase1_button_dos_text;
        cMenuStepsPhase1Manager.button_tres_text_secado = this.menuStepsPhase1_button_tres_text;
        cMenuStepsPhase1Manager.button_cuatro_text_irregularidades = this.menuStepsPhase1_button_cuatro_text;
        cMenuStepsPhase1Manager.button_cinco_text_corregir = this.menuStepsPhase1_button_cinco_text;
        cMenuStepsPhase1Manager.button_seis_text_desengrasar = this.menuStepsPhase1_button_seis_text;
        //Asignando rutas a la imagenes de las fases para mostrarlos como guia para el estudiante en el encabezado de la interfaz:
        cMenuStepsPhase1Manager.image_phase1_path = phase1_with_text_image_path;
        cMenuStepsPhase1Manager.image_phase2_path = phase2_with_text_image_gray_path;
        cMenuStepsPhase1Manager.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuStepsPhase1Manager.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuStepsPhase1Manager.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuStepsPhase1Manager.image_phase6_path = phase6_with_text_image_gray_path;

        cMenuStepsPhase1Manager.goBackToMenuPhases += GoToMenuPhasesInformativeMode;

        cMenuStepsPhase1Manager.goToActivitiesPhase1Step1 += GoToActivitiesPhase1Step1Informative;
        cMenuStepsPhase1Manager.goToActivitiesPhase1Step2 += GoToActivitiesPhase1Step2Informative;
        cMenuStepsPhase1Manager.goToActivitiesPhase1Step3 += GoToActivitiesPhase1Step3Informative;
        cMenuStepsPhase1Manager.goToActivitiesPhase1Step4 += GoToActivitiesPhase1Step4Informative;
        cMenuStepsPhase1Manager.goToActivitiesPhase1Step5 += GoToActivitiesPhase1Step5Informative;
        cMenuStepsPhase1Manager.goToActivitiesPhase1Step6 += GoToActivitiesPhase1Step6Informative;

        //Activando los pasos de la fase 1 completamente:
        cMenuStepsPhase1Manager.step_one_enabled = true;
        cMenuStepsPhase1Manager.step_two_enabled = true;
        cMenuStepsPhase1Manager.step_three_enabled = true;
        cMenuStepsPhase1Manager.step_four_enabled = true;
        cMenuStepsPhase1Manager.step_five_enabled = true;
        cMenuStepsPhase1Manager.step_six_enabled = true;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II2", "0", "-1","consulta");

        //cMenuStepsPhase1Manager.LoadInformationIntoInterface ();
    }
Beispiel #37
0
    public void GoToToolsAndProductsEvalMode(string interface_from)
    {
        Debug.LogError ("Llamado al metodo go to tools and products!!");
        //Destruyendo posibles instancias de interfaces que se estan creando:
        DestroyInstancesWithTag ("LoginInterface");
        DestroyInstancesWithTag ("BuscarCapoCarroInterface");
        string fecha;
        switch (interface_from) {
            case "Phase1Step2Eval":
                Debug.Log ("Ingresa al case Phase1Step2Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
                if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP2_EV)
                    Destroy (ActivitiesForPhase1Step2_int_eval_instance);
                else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP2_EV)
                    Destroy (ARSearch_eval_mode_instance);

                current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

                ToolsAndProductsPhase1Step2_int_eval_instance = Instantiate (ToolsAndProductsInterface);
                CanvasToolsAndProductsManager cToolsAndProductsManagerP1S2_eval = ToolsAndProductsPhase1Step2_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
                cToolsAndProductsManagerP1S2_eval.image_header_path = "Sprites/tools_and_products/tools";
                cToolsAndProductsManagerP1S2_eval.title_header_text_path = "Texts/EvalMode/Phase1Step2/2_title_header_tools_products";
                cToolsAndProductsManagerP1S2_eval.title_intro_content_text_path = "Texts/EvalMode/Phase1Step2/3_introduction_text";
                cToolsAndProductsManagerP1S2_eval.tool_one_text_path = "Texts/EvalMode/Phase1Step2/4_tool_text_one";
                cToolsAndProductsManagerP1S2_eval.tool_two_text_path = "Texts/EvalMode/Phase1Step2/5_tool_text_two";
                cToolsAndProductsManagerP1S2_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
                cToolsAndProductsManagerP1S2_eval.ruta_img_two_tool_path = "Sprites/phase1step1_eval/question_mark";
                cToolsAndProductsManagerP1S2_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
                cToolsAndProductsManagerP1S2_eval.footer_search_text_path = "Texts/EvalMode/Phase1Step2/6_ending_search_text";
                cToolsAndProductsManagerP1S2_eval.goBackButtonAction += GoToActivitiesPhase1Step2EvalMode;
                cToolsAndProductsManagerP1S2_eval.goToSearchProductsTools += GoToSearchAguaPresionP1S2Eval;
                cToolsAndProductsManagerP1S2_eval.interfaceGoingBackFrom = interface_from;
                //asignando la interfaz activa para controlar el regreso:
                this.interfaceInstanceActive = ToolsAndProductsPhase1Step2_int_eval_instance;
                fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
                Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE10");
                NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE10", "1", "-1","eval");

            break;
        case "Phase1Step3Eval":
            Debug.Log ("Ingresa al case Phase1Step3Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP3_EV)
                Destroy (ActivitiesForPhase1Step3_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP3_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase1Step3_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S3_eval = ToolsAndProductsPhase1Step3_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S3_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S3_eval.title_header_text_path = "Texts/EvalMode/phase1step3/2_title_header_tools_products";
            cToolsAndProductsManagerP1S3_eval.title_intro_content_text_path = "Texts/EvalMode/phase1step3/3_introduction_text";
            cToolsAndProductsManagerP1S3_eval.tool_one_text_path = "Texts/EvalMode/phase1step3/4_tool_text_one";
            cToolsAndProductsManagerP1S3_eval.tool_two_text_path = "Texts/EvalMode/phase1step3/5_tool_text_two";
            cToolsAndProductsManagerP1S3_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S3_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S3_eval.footer_search_text_path = "Texts/EvalMode/phase1step3/6_ending_search_text";
            cToolsAndProductsManagerP1S3_eval.goBackButtonAction += GoToActivitiesPhase1Step3EvalMode;
            cToolsAndProductsManagerP1S3_eval.goToSearchProductsTools += GoToSearchAguaPresionP1S3Eval;
            cToolsAndProductsManagerP1S3_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase1Step3_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE11");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE11", "2", "-1","eval");
            break;
        case "Phase1Step4Eval":
            Debug.Log ("Ingresa al case Phase1Step4Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP4_EV)
                Destroy (ActivitiesForPhase1Step4_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase1Step4_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S4_eval = ToolsAndProductsPhase1Step4_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S4_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S4_eval.title_header_text_path = "Texts/EvalMode/phase1step4/2_title_header_tools_products";
            cToolsAndProductsManagerP1S4_eval.title_intro_content_text_path = "Texts/EvalMode/phase1step4/3_introduction_text";
            cToolsAndProductsManagerP1S4_eval.tool_one_text_path = "Texts/EvalMode/phase1step4/4_tool_text_one";
            cToolsAndProductsManagerP1S4_eval.tool_two_text_path = "Texts/EvalMode/phase1step4/5_tool_text_two";
            cToolsAndProductsManagerP1S4_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S4_eval.footer_search_text_path = "Texts/EvalMode/phase1step4/6_ending_search_text";
            cToolsAndProductsManagerP1S4_eval.goBackButtonAction += GoToActivitiesPhase1Step4EvalMode;
            cToolsAndProductsManagerP1S4_eval.goToSearchProductsTools += GoToSearchEsponjaP1S4Eval;
            cToolsAndProductsManagerP1S4_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase1Step4_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE12");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE12", "3", "-1","eval");
            break;
        case "Phase1Step5Eval":
            Debug.Log ("Ingresa al case Phase1Step5Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP5_EV)
                Destroy (ActivitiesForPhase1Step5_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP5_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase1Step5_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S5_eval = ToolsAndProductsPhase1Step5_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S5_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S5_eval.title_header_text_path = "Texts/EvalMode/phase1step5/2_title_header_tools_products";
            cToolsAndProductsManagerP1S5_eval.title_intro_content_text_path = "Texts/EvalMode/phase1step5/3_introduction_text";
            cToolsAndProductsManagerP1S5_eval.tool_one_text_path = "Texts/EvalMode/phase1step5/4_tool_text_one";
            cToolsAndProductsManagerP1S5_eval.tool_two_text_path = "Texts/EvalMode/phase1step5/5_tool_text_two";
            cToolsAndProductsManagerP1S5_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S5_eval.footer_search_text_path = "Texts/EvalMode/phase1step5/6_ending_search_text";
            cToolsAndProductsManagerP1S5_eval.goBackButtonAction += GoToActivitiesPhase1Step5EvalMode;
            cToolsAndProductsManagerP1S5_eval.goToSearchProductsTools += GoToSearchMartilloP1S5Eval;
            cToolsAndProductsManagerP1S5_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase1Step5_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE13");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE13", "4", "-1","eval");
            break;
        case "Phase1Step6Eval":
            Debug.Log ("Ingresa al case Phase1Step6Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6_EV)
                Destroy (ActivitiesForPhase1Step6_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP6_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase1Step6_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S6_eval = ToolsAndProductsPhase1Step6_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S6_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S6_eval.title_header_text_path = "Texts/EvalMode/phase1step6/2_title_header_tools_products";
            cToolsAndProductsManagerP1S6_eval.title_intro_content_text_path = "Texts/EvalMode/phase1step6/3_introduction_text";
            cToolsAndProductsManagerP1S6_eval.tool_one_text_path = "Texts/EvalMode/phase1step6/4_tool_text_one";
            cToolsAndProductsManagerP1S6_eval.tool_two_text_path = "Texts/EvalMode/phase1step6/5_tool_text_two";
            cToolsAndProductsManagerP1S6_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S6_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP1S6_eval.footer_search_text_path = "Texts/EvalMode/phase1step6/6_ending_search_text";
            cToolsAndProductsManagerP1S6_eval.goBackButtonAction += GoToActivitiesPhase1Step6EvalMode;
            cToolsAndProductsManagerP1S6_eval.goToSearchProductsTools += GoToSearchDesengrasanteP1S6Eval;
            cToolsAndProductsManagerP1S6_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase1Step6_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE14");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE14", "5", "-1","eval");
            break;
        case "Phase2Step2Eval":
            Debug.Log ("Ingresa al case Phase2Step2Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP2_EV)
                Destroy (ActivitiesForPhase2Step2_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP2_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step2_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S2_eval = ToolsAndProductsPhase2Step2_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S2_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S2_eval.title_header_text_path = "Texts/EvalMode/phase2step2/2_title_header_tools_products";
            cToolsAndProductsManagerP2S2_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step2/3_introduction_text";
            cToolsAndProductsManagerP2S2_eval.tool_one_text_path = "Texts/EvalMode/phase2step2/4_tool_text_one";
            cToolsAndProductsManagerP2S2_eval.tool_two_text_path = "Texts/EvalMode/phase2step2/5_tool_text_two";
            cToolsAndProductsManagerP2S2_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S2_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S2_eval.footer_search_text_path = "Texts/EvalMode/phase1step6/6_ending_search_text";
            cToolsAndProductsManagerP2S2_eval.goBackButtonAction += GoToActivitiesPhase2Step2EvalMode;
            cToolsAndProductsManagerP2S2_eval.goToSearchProductsTools += GoToSearchCintaEnmasP2S2Eval;
            cToolsAndProductsManagerP2S2_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step2_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE33");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE33", "7", "-1","eval");
            break;
        case "Phase2Step3Eval":
            Debug.Log ("Ingresa al case Phase2Step3Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP3_EV)
                Destroy (ActivitiesForPhase2Step3_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP3_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step3_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S3_eval = ToolsAndProductsPhase2Step3_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S3_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S3_eval.title_header_text_path = "Texts/EvalMode/phase2step3/2_title_header_tools_products";
            cToolsAndProductsManagerP2S3_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step3/3_introduction_text";
            cToolsAndProductsManagerP2S3_eval.tool_one_text_path = "Texts/EvalMode/phase2step3/4_tool_text_one";
            cToolsAndProductsManagerP2S3_eval.tool_two_text_path = "Texts/EvalMode/phase2step3/5_tool_text_two";
            cToolsAndProductsManagerP2S3_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S3_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S3_eval.footer_search_text_path = "Texts/EvalMode/phase2step3/6_ending_search_text";
            cToolsAndProductsManagerP2S3_eval.goBackButtonAction += GoToActivitiesPhase2Step3EvalMode;
            cToolsAndProductsManagerP2S3_eval.goToSearchProductsTools += GoToSearchEsponjaP320P2S3Eval;
            cToolsAndProductsManagerP2S3_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step3_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE34");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE34", "9", "-1","eval");
            break;
        case "Phase2Step4Eval":
            Debug.Log ("Ingresa al case Phase2Step4Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP4_EV)
                Destroy (ActivitiesForPhase2Step4_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step4_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S4_eval = ToolsAndProductsPhase2Step4_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S4_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S4_eval.title_header_text_path = "Texts/EvalMode/phase2step4/2_title_header_tools_products";
            cToolsAndProductsManagerP2S4_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step4/3_introduction_text";
            cToolsAndProductsManagerP2S4_eval.tool_one_text_path = "Texts/EvalMode/phase2step4/4_tool_text_one";
            cToolsAndProductsManagerP2S4_eval.tool_two_text_path = "Texts/EvalMode/phase2step4/5_tool_text_two";
            cToolsAndProductsManagerP2S4_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S4_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S4_eval.footer_search_text_path = "Texts/EvalMode/phase2step4/6_ending_search_text";
            cToolsAndProductsManagerP2S4_eval.goBackButtonAction += GoToActivitiesPhase2Step4EvalMode;
            cToolsAndProductsManagerP2S4_eval.goToSearchProductsTools += GoToSearchEsponjaP400P2S4Eval;
            cToolsAndProductsManagerP2S4_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step4_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE35");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE35", "10", "-1","eval");
            break;
        case "Phase2Step5Eval":
            Debug.Log ("Ingresa al case Phase2Step5Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP5_EV)
                Destroy (ActivitiesForPhase2Step5_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP5_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step5_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S5_eval = ToolsAndProductsPhase2Step5_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S5_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S5_eval.title_header_text_path = "Texts/EvalMode/phase2step5/2_title_header_tools_products";
            cToolsAndProductsManagerP2S5_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step5/3_introduction_text";
            cToolsAndProductsManagerP2S5_eval.tool_one_text_path = "Texts/EvalMode/phase2step5/4_tool_text_one";
            cToolsAndProductsManagerP2S5_eval.tool_two_text_path = "Texts/EvalMode/phase2step5/5_tool_text_two";
            cToolsAndProductsManagerP2S5_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S5_eval.ruta_img_two_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S5_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S5_eval.footer_search_text_path = "Texts/EvalMode/phase2step5/6_ending_search_text";
            cToolsAndProductsManagerP2S5_eval.goBackButtonAction += GoToActivitiesPhase2Step5EvalMode;
            cToolsAndProductsManagerP2S5_eval.goToSearchProductsTools += GoToSearchRotoOrbitalP2S5Eval;
            cToolsAndProductsManagerP2S5_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step5_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE36");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE36", "11", "-1","eval");
            break;
        case "Phase2Step6Eval":
            Debug.Log ("Ingresa al case Phase2Step6Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP6_EV)
                Destroy (ActivitiesForPhase2Step6_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP6_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step6_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S6_eval = ToolsAndProductsPhase2Step6_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S6_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S6_eval.title_header_text_path = "Texts/EvalMode/phase2step6/2_title_header_tools_products";
            cToolsAndProductsManagerP2S6_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step6/3_introduction_text";
            cToolsAndProductsManagerP2S6_eval.tool_one_text_path = "Texts/EvalMode/phase2step6/4_tool_text_one";
            cToolsAndProductsManagerP2S6_eval.tool_two_text_path = "Texts/EvalMode/phase2step6/5_tool_text_two";
            cToolsAndProductsManagerP2S6_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S6_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S6_eval.footer_search_text_path = "Texts/EvalMode/phase2step6/6_ending_search_text";
            cToolsAndProductsManagerP2S6_eval.goBackButtonAction += GoToActivitiesPhase2Step6EvalMode;
            cToolsAndProductsManagerP2S6_eval.goToSearchProductsTools += GoToSearchDiscoP150P2S6Eval;
            cToolsAndProductsManagerP2S6_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step6_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE37");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE37", "12", "-1","eval");
            break;
        case "Phase2Step7Eval":
            Debug.Log ("Ingresa al case Phase2Step7Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP7_EV)
                Destroy (ActivitiesForPhase2Step7_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP7_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step7_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S7_eval = ToolsAndProductsPhase2Step7_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S7_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S7_eval.title_header_text_path = "Texts/EvalMode/phase2step7/2_title_header_tools_products";
            cToolsAndProductsManagerP2S7_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step7/3_introduction_text";
            cToolsAndProductsManagerP2S7_eval.tool_one_text_path = "Texts/EvalMode/phase2step7/4_tool_text_one";
            cToolsAndProductsManagerP2S7_eval.tool_two_text_path = "Texts/EvalMode/phase2step7/5_tool_text_two";
            cToolsAndProductsManagerP2S7_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S7_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S7_eval.footer_search_text_path = "Texts/EvalMode/phase2step7/6_ending_search_text";
            cToolsAndProductsManagerP2S7_eval.goBackButtonAction += GoToActivitiesPhase2Step7EvalMode;
            cToolsAndProductsManagerP2S7_eval.goToSearchProductsTools += GoToSearchDiscoP240P2S7Eval;
            cToolsAndProductsManagerP2S7_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step7_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE38");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE38", "13", "-1","eval");
            break;
        case "Phase2Step8Eval":
            Debug.Log ("Ingresa al case Phase2Step8Eval... Cargando Interfaz en GoToToolsAndProductsEvalMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP8_EV)
                Destroy (ActivitiesForPhase2Step8_int_eval_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP8_EV)
                Destroy (ARSearch_eval_mode_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_EVAL;

            ToolsAndProductsPhase2Step8_int_eval_instance = Instantiate (ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S8_eval = ToolsAndProductsPhase2Step8_int_eval_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S8_eval.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S8_eval.title_header_text_path = "Texts/EvalMode/phase2step8/2_title_header_tools_products";
            cToolsAndProductsManagerP2S8_eval.title_intro_content_text_path = "Texts/EvalMode/phase2step8/3_introduction_text";
            cToolsAndProductsManagerP2S8_eval.tool_one_text_path = "Texts/EvalMode/phase2step7/4_tool_text_one";
            cToolsAndProductsManagerP2S8_eval.tool_two_text_path = "Texts/EvalMode/phase2step7/5_tool_text_two";
            cToolsAndProductsManagerP2S8_eval.ruta_img_one_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S8_eval.ruta_img_four_tool_path = "Sprites/phase1step1_eval/question_mark";
            cToolsAndProductsManagerP2S8_eval.footer_search_text_path = "Texts/EvalMode/phase2step7/6_ending_search_text";
            cToolsAndProductsManagerP2S8_eval.goBackButtonAction += GoToActivitiesPhase2Step8EvalMode;
            cToolsAndProductsManagerP2S8_eval.goToSearchProductsTools += GoToSearchDiscoP320P2S8Eval;
            cToolsAndProductsManagerP2S8_eval.interfaceGoingBackFrom = interface_from;
            //asignando la interfaz activa para controlar el regreso:
            this.interfaceInstanceActive = ToolsAndProductsPhase2Step8_int_eval_instance;
            fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE39");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE39", "14", "-1","eval");
            break;
        }//cierra switch-case
    }
    /// <summary>
    /// Gos to menu steps phase1.
    /// Method that is called for loading the interface of steps for phase 2 (MATIZADO):
    /// </summary>
    public void GoToMenuStepsPhase2InformativeMode()
    {
        Debug.LogError ("Llamado al metodo go to Menu steps phase 2 - ModoInformativo");

        if (current_interface == CurrentInterface.MENU_PHASES_IM)
            Destroy (menuProcessPhases_int_im_instance);
        else if (current_interface == CurrentInterface.MENU_SUB_STEPS_PHASE2_IM)
            Destroy (menuSubStepsPhaseTwo_int_im_instance);
        else if (current_interface == CurrentInterface.MENU_SUB_STEPS_INTERIORES_PHASE2_IM)
            Destroy (menuSubStepsPhaseTwoInterior_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP1_IM)
            Destroy (ActivitiesForPhase2Step1_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP2_IM)
            Destroy (ActivitiesForPhase2Step2_int_im_instance);
        /*
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP4)
            Destroy (ActivitiesForPhase1Step4_interface_instance);
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP5)
            Destroy (ActivitiesForPhase1Step5_interface_instance);
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6)
            Destroy (ActivitiesForPhase1Step6_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_CAR_HOOD)
            Destroy (TurorialSearchCapoCarro_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL)
            Destroy (TutorialPhaseTwoSearchProd_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_BAYETA_PRODUCT_TUTORIAL)
            Destroy (TutorialTwoSearchBayeta_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP3)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP5)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP6)
            Destroy (AR_Mode_Search_interface_instance);
        */

        current_interface = CurrentInterface.MENU_STEPS_PHASE2_IM;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase2");
        DestroyInstancesWithTag ("BlinkingTutorialPhaseOne");

        menuStepsPhaseTwo_int_im_instance = Instantiate (AppManager.manager.menuStepsPhase2);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuStepsPhaseTwo_int_im_instance.name = "InterfaceMenuOfStepsPhase2InfoMode";
        //Obteniendo referencia al script
        MenuOfStepsMatizadoManager cMenuStepsMatizadoManager = menuStepsPhaseTwo_int_im_instance.GetComponent<MenuOfStepsMatizadoManager> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuStepsPhaseTwo_interface_title);
        cMenuStepsMatizadoManager.titulo = menuStepsPhaseTwo_interface_title;
        cMenuStepsMatizadoManager.introduction_text_path = menuStepsPhaseTwo_introduction_text_path;
        cMenuStepsMatizadoManager.image_header_phase1 = menuStepsPhaseTwo_image_header;

        //definiendo cuales botones de los pasos se deben habilitar dependiendo de si el estudiante ya ha completado
        //las actividades anteriores:
        //por defecto el paso 1 se habilita inicialmente y con la imagen normal:
        cMenuStepsMatizadoManager.step_one_enabled = true;
        cMenuStepsMatizadoManager.image_one_path = this.menuStepsPhaseTwo_interface_button_uno_image;

        //Aqui se indica a la interfaz cuales botones deben ser visibles:
        cMenuStepsMatizadoManager.step_one_btn_visible = true;
        cMenuStepsMatizadoManager.step_two_btn_visible = true;
        cMenuStepsMatizadoManager.step_three_btn_visible = true;
        cMenuStepsMatizadoManager.step_four_btn_visible = true;
        cMenuStepsMatizadoManager.step_five_btn_visible = false;
        cMenuStepsMatizadoManager.step_six_btn_visible = false;

        cMenuStepsMatizadoManager.step_two_enabled = true;
        cMenuStepsMatizadoManager.image_two_path = this.menuStepsPhaseTwo_interface_button_dos_image;

        cMenuStepsMatizadoManager.step_three_enabled = true;
        cMenuStepsMatizadoManager.image_three_path = this.menuStepsPhaseTwo_interface_button_tres_image;

        cMenuStepsMatizadoManager.step_four_enabled = true;
        cMenuStepsMatizadoManager.image_four_path = this.menuStepsPhaseTwo_interface_button_cuatro_image;

        //Asignando textos
        cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhaseTwo_button_uno_text;
        cMenuStepsMatizadoManager.button_two_text_string = this.menuStepsPhaseTwo_button_dos_text;
        cMenuStepsMatizadoManager.button_three_text_string = this.menuStepsPhaseTwo_button_tres_text;
        cMenuStepsMatizadoManager.button_four_text_string = this.menuStepsPhaseTwo_button_cuatro_text;
        //cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhase1_button_cinco_text;
        //cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhase1_button_seis_text;
        //Asignando rutas a la imagenes de las fases para mostrarlos como guia para el estudiante en el encabezado de la interfaz:
        cMenuStepsMatizadoManager.image_phase1_path = phase1_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase2_path = phase2_with_text_image_path;
        cMenuStepsMatizadoManager.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase6_path = phase6_with_text_image_gray_path;

        cMenuStepsMatizadoManager.goBackToMenuPhases += GoToMenuPhasesInformativeMode;
        cMenuStepsMatizadoManager.goToActionButtoOne += GoToActivitiesPhase2Step1Informative;
        cMenuStepsMatizadoManager.goToActionButtoTwo += GoToActivitiesPhase2Step2Informative;
        cMenuStepsMatizadoManager.goToActionButtoThree += GoToSubMenuStepsLijadoCantosInfoMode;
        cMenuStepsMatizadoManager.goToActionButtoFour += GoToSubMenuStepsLijadoInterioresInfoMode;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II3", "0", "-1","consulta");
    }
Beispiel #39
0
    public void GoToSearchDiscoP150P2S6Eval()
    {
        Debug.Log ("Entra al metodo GoToSearchDiscoP150P2S6Eval... interfaz: "  + current_interface);
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_EVAL) {
            Destroy (ToolsAndProductsPhase2Step6_int_eval_instance);
        } else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP6_EV)
            Destroy (ARSearch_eval_mode_instance);

        //Verificar porque se estan quedando instanciadas las interfaces para evitar hacer estos dos llamados:
        DestroyInstancesWithTag ("MenuPhasesEvalMode");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseOneEval");
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhaseTwoEval");

        current_interface = CurrentInterface.AR_SEARCH_PHASE2_STEP6_EV;

        ARSearch_eval_mode_instance = Instantiate (ARModeEvaluation);
        ControllerBlinkARModeEvaluation controller_blinking = ARSearch_eval_mode_instance.GetComponent<ControllerBlinkARModeEvaluation> ();

        //Es iportante asignar esta variable para poder controlar los marcadores
        interfaceInstanceActive = ARSearch_eval_mode_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker33");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();
        if (last_marker_id_evalmode == 32) {
            Debug.Log ("-->SEQUENCE:: Se va a cargar la informacion del DISCO P180 y el last_marker es:" + last_marker_id_evalmode);
            controller_info_marker.image_real_help_path = marker33_32_hint_image;
        } else {
            Debug.Log ("--> SEQUENCE: El last marker scanned fue: " + last_marker_id_evalmode);
            controller_info_marker.image_real_help_path = marker33_32_hint_image;
        }

        //asignando el texto que se debe mostrar al momento del feedback:
        controller_blinking.feedback_info_text_path = feedback_marker33_34eval_mode_step6;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 20;
        controller_blinking.ordenes = order_in_process;

        //El llamado al siguiente metodo carga la informacion correspondiente en la interfaz:
        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationForEvaluationMode ();

        //NOTA: Especialmente para este marcador se va a habilitar la validacion de secuencia:
        controller_blinking.validate_sequence_of_markers = true;
        controller_blinking.previous_marker_id = this.last_marker_id_evalmode;
        if (this.last_marker_id_evalmode == 30)
            controller_blinking.next_marker_id = 33;
        else
            controller_blinking.next_marker_id = 34;

        Debug.LogError ("NOW: Start Blinking en GoToSearchDiscoP150P2S6Eval");
        //asignando el texto para el feedback directamente a la interfaz:
        if(last_marker_id_evalmode == 32)
            controller_blinking.feedback_info_text_path = text_feedback_phase2step6_eval_p180;
        else controller_blinking.feedback_info_text_path = text_feedback_phase2step6_eval;

        controller_blinking.interface_going_from = "Phase2Step6Eval";
        controller_blinking.onClickSelectBtn += OnClickSelectDiscoP150P2S6;

        //asignando el texto que se debe mostrar de guia:
        controller_blinking.texto_guia_producto = "Busca el producto 1:";

        //inicializando la variable que controla si estamos en el modo de evaluacion en RA:
        in_Evaluation_mode = true;

        //colocando en false la informacion adicional por si se le habia dado atras en algun momento en la interfaz:
        info_additional_displayed = false;
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:IE49");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (this.codigo_estudiante, fecha, "IE49", "12", "-1","eval");
    }
    /// <summary>
    /// Goes to search capo coche. Metodo que inicia el modo RA para buscar el capo del carro y que incluye la fase 1 del tutorial
    /// </summary>
    public void GoToSearchCapoCocheInformative()
    {
        Debug.Log ("Entra al metodo GoToSearchCapoCocheInformative en InformativeMode... interfaz: "  + current_interface);
        if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP1_IM) {
            Destroy(ActivitiesForPhase1Step1_int_im_instance);
        }

        current_interface = CurrentInterface.AR_SEARCH_CAR_HOOD_IM;

        TurorialSearchCapoCarro_int_im_instance = Instantiate (AppManager.manager.TutorialSearchCapoCarroInterface);
        ControllerBlinkingMarker blinkingMarker = TurorialSearchCapoCarro_int_im_instance.GetComponent<ControllerBlinkingMarker> ();

        //Es iportante asignar esta variable para poder controlar los marcadores
        AppManager.manager.interfaceInstanceActive = TurorialSearchCapoCarro_int_im_instance;

        //definiendo que estamos en tutorial fase 1:
        AppManager.manager.inTutorialPhase1 = true;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker1");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();
        controller_info_marker.onClickSelectButton_tut1 += onClickSelectCapoCarroSearchInformative;

        //asignando el texto que se debe mostrar al momento del feedback:
        blinkingMarker.feedback_info_text_path = feedback_text_path;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 1;
        blinkingMarker.ordenes = order_in_process;

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (true, false, false);

        Debug.LogError ("NOW: Start Blinking");
        //iniciando el proceso blinking:
        blinkingMarker.should_be_blinking = true;

        //colocando en false la informacion adicional por si se le habia dado atras en algun momento en la interfaz:
        //info_additional_displayed = false;
        AppManager.manager.info_additional_displayed = false;
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II30", "0", "-1","consulta");
    }
Beispiel #41
0
    public void GoToSearchBayetaPhase1Step2()
    {
        if (current_interface == CurrentInterface.AR_SEARCH_AGUA_JABON_PRODUCT_TUTORIAL) {
            Destroy(TutorialPhaseTwoSearchProd_interface_instance);
        }

        DestroyInstancesWithTag ("TutorialPhaseTwo");

        current_interface = CurrentInterface.AR_SEARCH_BAYETA_PRODUCT_TUTORIAL;

        //indica que entramos en la fase 2 del tutorial:
        inTutorialPhase2 = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        TutorialTwoSearchBayeta_interface_instance = Instantiate (TutorialSearchProductsPhase2);
        ControllerBlinkingAddInfo blinking_search_phase_two = TutorialTwoSearchBayeta_interface_instance.GetComponent<ControllerBlinkingAddInfo> ();

        Debug.Log ("Nueva Interfaz Instanciada!!");

        //hay que asignar la interfaz activa tambien:
        interfaceInstanceActive = TutorialTwoSearchBayeta_interface_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker21");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,true,false);

        Debug.LogError ("NOW: Start Blinking en GoToSearchBayetaPhase1Step2");
        //asignando el texto para el feedback directamente a la interfaz:
        blinking_search_phase_two.feedback_info_text_path = text_feedback_bayeta;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 4; //Buscando la bayeta
        blinking_search_phase_two.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase_two.interface_going_from = "Phase1Step2";  //la variable Phase1Step2 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase_two.onClickSelectBtn += OnClickSelectBayetaSearch;

        //iniciando el proceso blinking:
        blinking_search_phase_two.should_be_blinking = true;

        //registrando la navegacion de la interfaz:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I22");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I22", "1", "-1");
    }
Beispiel #42
0
 partial void disconnectButtonClicked(AppKit.NSButton sender)
 {
     CurrentInterface?.Disassociate();
     UpdateInfoTab();
 }
Beispiel #43
0
 /// <summary>
 /// Goes to informative mode.
 /// This method starts de informative mode
 /// </summary>
 public void GoToInformativeMode()
 {
     Debug.Log ("Se va a iniciar el MODO INFORMATIVO... en AppManager.GoToInformativeMode");
     in_informative_mode = true;
     current_interface = CurrentInterface.INFORMATIVE_MODE;
     informative_mode = new InformativeMode ();
     informative_mode.GoToMenuPhasesInformativeMode ();
 }
    public void GoToSearchRotoOrbitalPhase2Step5Informative()
    {
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_IM) {
            Destroy(ToolsAndProductsPhase2Step5_int_im_instance);
        } else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP5_IM)
            Destroy (AR_Mode_Search_int_im_instance);

        current_interface = CurrentInterface.AR_SEARCH_PHASE2_STEP5_IM;

        //indica que entramos en la fase 2 del tutorial:
        AppManager.manager.inTutorialPhase2 = false;
        Debug.Log ("--> Iniciando modo RA en GoToSearchRotoOrbitalPhase2Step5");
        //indica que se ingresa al modo RA fuera de los tutoriales:
        AppManager.manager.in_RA_mode = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        AR_Mode_Search_int_im_instance = Instantiate (AppManager.manager.AR_Mode_interface);
        ControllerBlinkingARGeneric blinking_search_phase2step5 = AR_Mode_Search_int_im_instance.GetComponent<ControllerBlinkingARGeneric> ();

        Debug.Log ("Nueva Interfaz Instanciada en GoToSearchRotoOrbitalPhase2Step5!!");

        //hay que asignar la interfaz activa tambien:
        AppManager.manager.interfaceInstanceActive = AR_Mode_Search_int_im_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker99");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,false,true);

        Debug.LogError ("NOW: Start Blinking en GoToSearchObjetoLimpiezaPhase2Step3");
        //asignando el texto para el feedback directamente a la interfaz:
        blinking_search_phase2step5.feedback_info_text_path = text_feedback_phase2step5;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 17;
        blinking_search_phase2step5.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase2step5.interface_going_from = "Phase2Step5";  //la variable Phase1Step3 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase2step5.onClickSelectBtn += OnClickSelectRotoOrbitalPhase2Step5Infom;

        //iniciando el proceso blinking:
        blinking_search_phase2step5.should_be_blinking = true;
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II47", "11", "-1","consulta");
    }
Beispiel #45
0
    /// <summary>
    /// Gos to menu steps phase1.
    /// Method that is called for loading the interface of steps for phase 2 (MATIZADO):
    /// </summary>
    public void GoToMenuStepsPhase2()
    {
        Debug.LogError ("Llamado al metodo go to Menu steps phase 2");

        if (current_interface == CurrentInterface.MENU_PHASES)
            Destroy (menuProcessPhases_interface_instance);
        else if (current_interface == CurrentInterface.MENU_SUB_STEPS_PHASE2)
            Destroy (menuSubStepsPhaseTwo_interface_instance);
        else if (current_interface == CurrentInterface.MENU_SUB_STEPS_INTERIORES_PHASE2)
            Destroy (menuSubStepsPhaseTwoInterior_interf_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP1)
            Destroy (ActivitiesForPhase2Step1_interface_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP2)
            Destroy (ActivitiesForPhase2Step2_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP2)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP3)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4)
            Destroy (AR_Mode_Search_interface_instance);
        /*
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP5)
            Destroy (ActivitiesForPhase1Step5_interface_instance);
        else if(current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6)
            Destroy (ActivitiesForPhase1Step6_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_CAR_HOOD)
            Destroy (TurorialSearchCapoCarro_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL)
            Destroy (TutorialPhaseTwoSearchProd_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_BAYETA_PRODUCT_TUTORIAL)
            Destroy (TutorialTwoSearchBayeta_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP3)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP5)
            Destroy (AR_Mode_Search_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP6)
            Destroy (AR_Mode_Search_interface_instance);
        */

        processOrder = 0;

        current_interface = CurrentInterface.MENU_STEPS_PHASE2;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase2");
        DestroyInstancesWithTag ("AR_Mode_Generic_interface");

        menuStepsPhaseTwo_interface_instance = Instantiate (menuStepsPhase2);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuStepsPhaseTwo_interface_instance.name = "InterfaceMenuOfStepsPhase2";
        //Obteniendo referencia al script
        MenuOfStepsMatizadoManager cMenuStepsMatizadoManager = menuStepsPhaseTwo_interface_instance.GetComponent<MenuOfStepsMatizadoManager> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuStepsPhaseTwo_interface_title);
        cMenuStepsMatizadoManager.titulo = menuStepsPhaseTwo_interface_title;
        cMenuStepsMatizadoManager.introduction_text_path = menuStepsPhaseTwo_introduction_text_path;
        cMenuStepsMatizadoManager.image_header_phase1 = menuStepsPhaseTwo_image_header;

        //definiendo cuales botones de los pasos se deben habilitar dependiendo de si el estudiante ya ha completado
        //las actividades anteriores:
        //por defecto el paso 1 se habilita inicialmente y con la imagen normal:
        cMenuStepsMatizadoManager.step_one_enabled = true;
        cMenuStepsMatizadoManager.image_one_path = this.menuStepsPhaseTwo_interface_button_uno_image;

        Debug.Log ("Las actividades del paso 2: completado=" + steps_phase_two_completed [1].step_completed);
        Debug.Log ("Las actividades del paso 2: herramientas=" + steps_phase_two_completed [1].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 2: videos=" + steps_phase_two_completed [1].videos_about_process);
        Debug.Log ("Las actividades del paso 2: assessment=" + steps_phase_two_completed [1].selfevaluation);

        Debug.Log ("Las actividades del paso 3: completado=" + steps_phase_two_completed [2].step_completed);
        Debug.Log ("Las actividades del paso 3: herramientas=" + steps_phase_two_completed [2].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 3: videos=" + steps_phase_two_completed [2].videos_about_process);
        Debug.Log ("Las actividades del paso 3: assessment=" + steps_phase_two_completed [2].selfevaluation);

        Debug.Log ("Las actividades del paso 4: completado=" + steps_phase_two_completed [3].step_completed);
        Debug.Log ("Las actividades del paso 4: herramientas=" + steps_phase_two_completed [3].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 4: videos=" + steps_phase_two_completed [3].videos_about_process);
        Debug.Log ("Las actividades del paso 4: assessment=" + steps_phase_two_completed [3].selfevaluation);

        Debug.Log ("Las actividades del paso 5: completado=" + steps_phase_two_completed [4].step_completed);
        Debug.Log ("Las actividades del paso 5: herramientas=" + steps_phase_two_completed [4].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 5: videos=" + steps_phase_two_completed [4].videos_about_process);
        Debug.Log ("Las actividades del paso 5: assessment=" + steps_phase_two_completed [4].selfevaluation);

        Debug.Log ("Las actividades del paso 6: completado=" + steps_phase_two_completed [5].step_completed);
        Debug.Log ("Las actividades del paso 6: herramientas=" + steps_phase_two_completed [5].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 6: videos=" + steps_phase_two_completed [5].videos_about_process);
        Debug.Log ("Las actividades del paso 6: assessment=" + steps_phase_two_completed [5].selfevaluation);
        Debug.Log ("Las actividades del paso 6: FichaTecnica:" + steps_phase_two_completed [5].take_photo_ficha_tecnica);
        Debug.Log ("Las actividades del paso 6: FichaSeguridad:" + steps_phase_two_completed [5].take_photo_ficha_seguridad);

        Debug.Log ("Las actividades del paso 7: completado=" + steps_phase_two_completed [6].step_completed);
        Debug.Log ("Las actividades del paso 7: herramientas=" + steps_phase_two_completed [6].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 7: videos=" + steps_phase_two_completed [6].videos_about_process);
        Debug.Log ("Las actividades del paso 7: assessment=" + steps_phase_two_completed [6].selfevaluation);
        Debug.Log ("Las actividades del paso 7: FichaTecnica:" + steps_phase_two_completed [6].take_photo_ficha_tecnica);
        Debug.Log ("Las actividades del paso 7: FichaSeguridad:" + steps_phase_two_completed [6].take_photo_ficha_seguridad);

        Debug.Log ("Las actividades del paso 8: completado=" + steps_phase_two_completed [7].step_completed);
        Debug.Log ("Las actividades del paso 8: herramientas=" + steps_phase_two_completed [7].activity_tools_and_products);
        Debug.Log ("Las actividades del paso 8: videos=" + steps_phase_two_completed [7].videos_about_process);
        Debug.Log ("Las actividades del paso 8: assessment=" + steps_phase_two_completed [7].selfevaluation);
        Debug.Log ("Las actividades del paso 8: FichaTecnica:" + steps_phase_two_completed [7].take_photo_ficha_tecnica);
        Debug.Log ("Las actividades del paso 8: FichaSeguridad:" + steps_phase_two_completed [7].take_photo_ficha_seguridad);

        //Aqui se indica a la interfaz cuales botones deben ser visibles:
        cMenuStepsMatizadoManager.step_one_btn_visible = true;
        cMenuStepsMatizadoManager.step_two_btn_visible = true;
        cMenuStepsMatizadoManager.step_three_btn_visible = true;
        cMenuStepsMatizadoManager.step_four_btn_visible = true;
        cMenuStepsMatizadoManager.step_five_btn_visible = false;
        cMenuStepsMatizadoManager.step_six_btn_visible = false;

        //habilitando el paso 2:
        if (steps_phase_two_completed [0].step_completed) {
            cMenuStepsMatizadoManager.step_two_enabled = true;
            cMenuStepsMatizadoManager.image_two_path = this.menuStepsPhaseTwo_interface_button_dos_image;
        } else {
            cMenuStepsMatizadoManager.step_two_enabled = false;
            cMenuStepsMatizadoManager.image_two_path = this.menuStepsPhaseTwo_int_btn_dos_image_gray;
        }

        //habilitando el paso 3: Voy a dejar el paso 3 siempre habilitado porque realmente dentro hay dos subpasos mas
        //if (steps_phase_one_completed [1].step_completed) {
            cMenuStepsMatizadoManager.step_three_enabled = true;
            cMenuStepsMatizadoManager.image_three_path = this.menuStepsPhaseTwo_interface_button_tres_image;
        //} else {
        //	cMenuStepsMatizadoManager.step_three_enabled = false;
        //	cMenuStepsMatizadoManager.image_three_path = this.menuStepsPhaseTwo_int_btn_tres_image_gray;
        //}

        //habilitando el paso 4:
        //if (steps_phase_one_completed [2].step_completed) {
            cMenuStepsMatizadoManager.step_four_enabled = true;
            cMenuStepsMatizadoManager.image_four_path = this.menuStepsPhaseTwo_interface_button_cuatro_image;
        //} else {
        //	cMenuStepsMatizadoManager.step_four_enabled = false;
        //	cMenuStepsMatizadoManager.image_four_path = this.menuStepsPhaseTwo_int_btn_cuatro_image_gray;
        //}

        /*
        //habilitando el paso 5:
        if (steps_phase_one_completed [3].step_completed) {
            cMenuStepsMatizadoManager.step_five_enabled = true;
            cMenuStepsMatizadoManager.image_cinco_corregir = this.menuStepsPhase1_interface_button_cinco_image;
        } else {
            cMenuStepsMatizadoManager.step_five_enabled = false;
            cMenuStepsMatizadoManager.image_cinco_corregir = this.menuStepsPhase1_int_btn_cinco_image_gray;
        }
        //habilitando el paso 6:
        if (steps_phase_one_completed [4].step_completed) {
            cMenuStepsMatizadoManager.step_six_enabled = true;
            cMenuStepsMatizadoManager.image_seis_desengrasar = this.menuStepsPhase1_interface_button_seis_image;
        } else {
            cMenuStepsMatizadoManager.step_six_enabled = false;
            cMenuStepsMatizadoManager.image_seis_desengrasar = this.menuStepsPhase1_int_btn_seis_image_gray;
        }

        //Habilitnado siguiente FASE 2:
        //si el paso  (ultimo paso de esta fase) ya se ha completado entonces se notifica para habilitar la siguiente fase del proceso:
        if (steps_phase_one_completed [5].step_completed)
            phase_two_enable = true;
        */

        //Asignando textos
        cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhaseTwo_button_uno_text;
        cMenuStepsMatizadoManager.button_two_text_string = this.menuStepsPhaseTwo_button_dos_text;
        cMenuStepsMatizadoManager.button_three_text_string = this.menuStepsPhaseTwo_button_tres_text;
        cMenuStepsMatizadoManager.button_four_text_string = this.menuStepsPhaseTwo_button_cuatro_text;
        //cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhase1_button_cinco_text;
        //cMenuStepsMatizadoManager.button_one_text_string = this.menuStepsPhase1_button_seis_text;
        //Asignando rutas a la imagenes de las fases para mostrarlos como guia para el estudiante en el encabezado de la interfaz:
        cMenuStepsMatizadoManager.image_phase1_path = phase1_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase2_path = phase2_with_text_image_path;
        cMenuStepsMatizadoManager.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuStepsMatizadoManager.image_phase6_path = phase6_with_text_image_gray_path;

        cMenuStepsMatizadoManager.goBackToMenuPhases += GoToMenuPhases;
        cMenuStepsMatizadoManager.goToActionButtoOne += GoToActivitiesPhase2Step1;
        cMenuStepsMatizadoManager.goToActionButtoTwo += GoToActivitiesPhase2Step2;
        cMenuStepsMatizadoManager.goToActionButtoThree += GoToSubMenuStepsLijadoCantos;
        cMenuStepsMatizadoManager.goToActionButtoFour += GoToSubMenuStepsLijadoInteriores;

        //cMenuStepsPhase1Manager.LoadInformationIntoInterface ();

        goBackFromOtherInterface = true;
        interfaceComingBackFrom = "Phase2";

        //registrando la navegacion de la interfaz:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I7");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I7", "0", "-1");

        //Guardando los datos porque cuando se llama a esta interfaz en la mayoria de los casos es porque ya se ha completado
        //un paso del proceso
        SaveDataForStudent ();
    }
    /// <summary>
    /// Gos to sub menu steps lijado cantos. Metodo que configura el sub-menu de pasos del lijado de interiores
    /// </summary>
    public void GoToSubMenuStepsLijadoInterioresInfoMode()
    {
        Debug.LogError ("Llamado al metodo go to SubMenu LijadoInteriores phase 2");

        if (current_interface == CurrentInterface.MENU_STEPS_PHASE2_IM)
            Destroy (menuStepsPhaseTwo_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP5_IM)
            Destroy (ActivitiesForPhase2Step5_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP6_IM)
            Destroy (ActivitiesForPhase2Step6_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP7_IM)
            Destroy (ActivitiesForPhase2Step7_int_im_instance);
        else if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP8_IM)
            Destroy (ActivitiesForPhase2Step8_int_im_instance);

        current_interface = CurrentInterface.MENU_SUB_STEPS_INTERIORES_PHASE2_IM;

        //Llamado al metodo para destruir instancias existentes de esta interfaz para evitar duplicidad:
        //esto se hace antes de instanciar la nueva interfaz mas adelante
        DestroyInstancesWithTag ("InterfaceMenuOfStepsPhase2");
        //DestroyInstancesWithTag ("BlinkingTutorialPhaseOne");

        menuSubStepsPhaseTwoInterior_int_im_instance = Instantiate (AppManager.manager.menuSubStepsPhase2);
        //Es importante asignarle un nombre a la interfaz para despues poder destruir todas las instancias
        //de esa interfaz:
        menuSubStepsPhaseTwoInterior_int_im_instance.name = "InterfaceMenuOfSubForStepsPhase2_InterioresInfoMode";
        //Obteniendo referencia al script
        MenuOfStepsMatizadoSubMenu cMenuSubStepsMatizado = menuSubStepsPhaseTwoInterior_int_im_instance.GetComponent<MenuOfStepsMatizadoSubMenu> ();
        Debug.Log ("El titulo de la interfaz desde el AppManager es: " + menuSubStepsPhaseTwo_interior_int_title);
        cMenuSubStepsMatizado.titulo = menuSubStepsPhaseTwo_interior_int_title;

        //Lo siguinte configura el header de la interfaz:

        //Aqui se indica a la interfaz cuales botones del menu deben ser visibles:
        cMenuSubStepsMatizado.step_one_btn_visible = true; //Lijado de cantos - Primera pasada
        cMenuSubStepsMatizado.step_two_btn_visible = true; //Lijado de cantos - Segunda pasada
        cMenuSubStepsMatizado.step_three_btn_visible = true;
        cMenuSubStepsMatizado.step_four_btn_visible = true;
        cMenuSubStepsMatizado.step_five_btn_visible = false;
        cMenuSubStepsMatizado.step_six_btn_visible = false;

        //ahora se habilitan las imagenes de los pasos que se deben mostrar en el header debajo de las imgs de las fases:
        cMenuSubStepsMatizado.sub_phase_one_visible = true;
        cMenuSubStepsMatizado.sub_phase_two_visible = true;
        cMenuSubStepsMatizado.sub_phase_three_visible = true;
        cMenuSubStepsMatizado.sub_phase_four_visible = true;
        cMenuSubStepsMatizado.sub_phase_five_visible = false;
        cMenuSubStepsMatizado.sub_phase_six_visible = false;

        //ahora se indican las rutas a las imagenes que se deben mostrar:
        cMenuSubStepsMatizado.image_subphase_one_path = menuStepsPhaseTwo_int_btn_uno_image_gray; //imagen en gris con texto embebido
        cMenuSubStepsMatizado.image_subphase_two_path = menuStepsPhaseTwo_int_btn_dos_image_gray;
        cMenuSubStepsMatizado.image_subphase_three_path = menuStepsPhaseTwo_int_btn_tres_image_gray; //esta imagen si tiene el texto embebido
        cMenuSubStepsMatizado.image_subphase_four_path = menuStepsPhaseTwo_int_btn_cuatro_color;

        cMenuSubStepsMatizado.step_one_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
        cMenuSubStepsMatizado.image_one_path = this.menuSubStepsP2_int_btn_uno_image;

        cMenuSubStepsMatizado.step_two_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
        cMenuSubStepsMatizado.image_two_path = this.menuSubStepsP2_int_btn_dos_image;

        cMenuSubStepsMatizado.step_three_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
        cMenuSubStepsMatizado.image_three_path = this.menuSubStepsP2_int_btn_tres_image;

        cMenuSubStepsMatizado.step_four_enabled = true; //ojo aca SI es el btn one porque es el primer boton del submenu
        cMenuSubStepsMatizado.image_four_path = this.menuSubStepsP2_int_btn_cuatro_image;

        //aca se asignan los textos:
        cMenuSubStepsMatizado.button_one_text_string = this.menuSubStepsInteriores_btn_uno_text;
        cMenuSubStepsMatizado.button_two_text_string = this.menuSubStepsInteriores_btn_dos_text;
        cMenuSubStepsMatizado.button_three_text_string = this.menuSubStepsInteriores_btn_tres_text;
        cMenuSubStepsMatizado.button_four_text_string = this.menuSubStepsInteriores_btn_cuatro_text;

        //asignando las imagenes de las fases que se muestran en el header de la interfaz:
        cMenuSubStepsMatizado.image_phase1_path = phase1_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase2_path = phase2_with_text_image_path;
        cMenuSubStepsMatizado.image_phase3_path = phase3_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase4_path = phase4_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase5_path = phase5_with_text_image_gray_path;
        cMenuSubStepsMatizado.image_phase6_path = phase6_with_text_image_gray_path;

        //Ahora se agregan las acciones de los botones:
        cMenuSubStepsMatizado.goBackToMenuPhases += GoToMenuStepsPhase2InformativeMode;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step1 += GoToActivitiesPhase2Step5Informative;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step2 += GoToActivitiesPhase2Step6Informative;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step3 += GoToActivitiesPhase2Step7Informative;
        cMenuSubStepsMatizado.goToActivitiesPhase1Step4 += GoToActivitiesPhase2Step8Informative;
    }
Beispiel #47
0
 public static void TransferElementToBack(Element element)
 {
     CurrentInterface.Transfer(element, false);
 }
    /// <summary>
    /// Goes to tools and products info mode.
    /// Method for loading tools and products intefaces in the Informtive Mode
    /// </summary>
    /// <param name="interface_from">Interface_from.</param>
    public void GoToToolsAndProductsInfoMode(string interface_from)
    {
        Debug.LogError ("Llamado al metodo go to tools and products en INFORMATIVE MODE!!");
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        switch (interface_from) {
        case "Phase1Step2":
            Debug.Log("InformativeMODE: Ingresa al case Phase1Step2... Cargando Interfaz en GoToToolsAndProductsInfoMode");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP2_IM)
                Destroy (ActivitiesForPhase1Step2_int_im_instance);
            else if(current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL_IM)
                Destroy(TutorialPhaseTwoSearchProd_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_BAYETA_PRODUCT_TUTORIAL_IM)
                Destroy (TutorialTwoSearchBayeta_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase1Step2_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManager = ToolsAndProductsPhase1Step2_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManager.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManager.title_header_text_path = "Texts/Phase1Step2/1_title_header_text";
            cToolsAndProductsManager.title_intro_content_text_path = "Texts/Phase1Step2/2_introduction_text";
            cToolsAndProductsManager.tool_one_text_path = "Texts/Phase1Step2/3_tool_one_text";
            cToolsAndProductsManager.tool_two_text_path = "Texts/Phase1Step2/4_tool_two_text";
            cToolsAndProductsManager.ruta_img_one_tool_path = "Sprites/phase1step2/FrameMarker16_maquina_agua_icon";
            cToolsAndProductsManager.ruta_img_two_tool_path = "Sprites/phase1step2/FrameMarker19_agua_jabon_icon";
            cToolsAndProductsManager.ruta_img_four_tool_path = "Sprites/phase1step2/FrameMarker21_baieta_neteja_icon";
            cToolsAndProductsManager.footer_search_text_path = "Texts/Phase1Step2/5_ending_search_text";
            cToolsAndProductsManager.goBackButtonAction += GoToActivitiesPhase1Step2Informative;
            cToolsAndProductsManager.goToSearchProductsTools += GoToSearchObjectsTutorialPhase2InfoMode;
            cToolsAndProductsManager.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase1Step2_int_im_instance;

            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II18", "1", "-1","consulta");

            break;
        case "Phase1Step3":
            Debug.Log("InformativeMode: Ingresa al case Phase1Step3... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP3_IM)
                Destroy (ActivitiesForPhase1Step3_int_im_instance);
             else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP3_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase1Step3_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S3 = ToolsAndProductsPhase1Step3_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S3.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S3.title_header_text_path = "Texts/Phase1Step3/1_title_header_text";
            cToolsAndProductsManagerP1S3.title_intro_content_text_path = "Texts/Phase1Step3/2_introduction_text";
            cToolsAndProductsManagerP1S3.tool_one_text_path = "Texts/Phase1Step3/3_tool_one_text";
            cToolsAndProductsManagerP1S3.tool_two_text_path = "Texts/Phase1Step3/4_tool_two_text";
            cToolsAndProductsManagerP1S3.ruta_img_one_tool_path = "Sprites/phase1step3/FrameMarker16_maquina_agua_icon";
            cToolsAndProductsManagerP1S3.ruta_img_four_tool_path = "Sprites/phase1step3/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP1S3.footer_search_text_path = "Texts/Phase1Step3/5_ending_search_text";
            cToolsAndProductsManagerP1S3.goBackButtonAction += GoToActivitiesPhase1Step3Informative;
            cToolsAndProductsManagerP1S3.goToSearchProductsTools += GoToSearchAguaPresionPhase1Step3InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP1S3.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase1Step3_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II19", "2", "-1","consulta");
            break;
        case "Phase1Step4":

            Debug.Log("InformativeMode: Ingresa al case Phase1Step4... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP4_IM)
                Destroy (ActivitiesForPhase1Step4_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP4_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase1Step4_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S4 = ToolsAndProductsPhase1Step4_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S4.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S4.title_header_text_path = "Texts/Phase1Step4/1_title_header_text";
            cToolsAndProductsManagerP1S4.title_intro_content_text_path = "Texts/Phase1Step4/2_introduction_text";
            cToolsAndProductsManagerP1S4.tool_one_text_path = "Texts/Phase1Step4/3_tool_one_text";
            //cToolsAndProductsManagerP1S4.tool_two_text_path = "Texts/Phase1Step4/4_tool_two_text";
            cToolsAndProductsManagerP1S4.ruta_img_one_tool_path = "Sprites/phase1step4/FrameMarker45_esponja_p320_icon";
            cToolsAndProductsManagerP1S4.ruta_img_four_tool_path = "Sprites/phase1step3/FrameMarker46_esponja_p400_icon";
            cToolsAndProductsManagerP1S4.footer_search_text_path = "Texts/Phase1Step4/5_ending_search_text";
            cToolsAndProductsManagerP1S4.goBackButtonAction += GoToActivitiesPhase1Step4Informative;
            cToolsAndProductsManagerP1S4.goToSearchProductsTools += GoToSearchLijaFinaPhase1Step4InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP1S4.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase1Step4_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II20", "3", "-1","consulta");
            break;
        case "Phase1Step5":
            Debug.Log("InformativeMode: Ingresa al case Phase1Step5... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP5_IM)
                Destroy (ActivitiesForPhase1Step5_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP5_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase1Step5_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S5 = ToolsAndProductsPhase1Step5_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S5.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S5.title_header_text_path = "Texts/Phase1Step5/1_title_header_text";
            cToolsAndProductsManagerP1S5.title_intro_content_text_path = "Texts/Phase1Step5/2_introduction_text";
            cToolsAndProductsManagerP1S5.tool_one_text_path = "Texts/Phase1Step5/3_tool_one_text";
            //cToolsAndProductsManagerP1S4.tool_two_text_path = "Texts/Phase1Step4/4_tool_two_text";
            cToolsAndProductsManagerP1S5.ruta_img_one_tool_path = "Sprites/phase1step5/FrameMarker100_martillo_repasar_icon";
            //cToolsAndProductsManagerP1S4.ruta_img_four_tool_path = "Sprites/phase1step3/papel_absorbente";
            cToolsAndProductsManagerP1S5.footer_search_text_path = "Texts/Phase1Step5/5_ending_search_text";
            cToolsAndProductsManagerP1S5.goBackButtonAction += GoToActivitiesPhase1Step5Informative;
            cToolsAndProductsManagerP1S5.goToSearchProductsTools += GoToSearchMartilloPhase1Step5InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP1S5.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase1Step5_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II21", "4", "-1","consulta");
            break;

        case "Phase1Step6":
            Debug.Log("InformativeMode: Ingresa al case Phase1Step6... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE1_STEP6_IM)
                Destroy (ActivitiesForPhase1Step6_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE1_STEP6_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase1Step6_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP1S6 = ToolsAndProductsPhase1Step6_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP1S6.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP1S6.title_header_text_path = "Texts/Phase1Step6/1_title_header_text";
            cToolsAndProductsManagerP1S6.title_intro_content_text_path = "Texts/Phase1Step6/2_introduction_text";
            cToolsAndProductsManagerP1S6.tool_one_text_path = "Texts/Phase1Step6/3_tool_one_text";
            cToolsAndProductsManagerP1S6.tool_two_text_path = "Texts/Phase1Step6/4_tool_two_text";
            cToolsAndProductsManagerP1S6.ruta_img_one_tool_path = "Sprites/phase1step6/FrameMarker26_desengrasante_icon";
            cToolsAndProductsManagerP1S6.ruta_img_four_tool_path = "Sprites/phase1step6/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP1S6.footer_search_text_path = "Texts/Phase1Step6/5_ending_search_text";
            cToolsAndProductsManagerP1S6.goBackButtonAction += GoToActivitiesPhase1Step6Informative;
            cToolsAndProductsManagerP1S6.goToSearchProductsTools += GoToSearchDesengrasantePhase1Step6InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP1S6.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase1Step6_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II22", "5", "-1","consulta");
        break;
        case "Phase2Step2":
            Debug.Log("Ingresa al case Phase2Step2... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP2_IM)
                Destroy (ActivitiesForPhase2Step2_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP2_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step2_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S2 = ToolsAndProductsPhase2Step2_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S2.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S2.title_header_text_path = "Texts/Phase2Step2/1_title_header_text";
            cToolsAndProductsManagerP2S2.title_intro_content_text_path = "Texts/Phase2Step2/0_introduction_text";
            cToolsAndProductsManagerP2S2.tool_one_text_path = "Texts/Phase2Step2/2_tool_one_text";
            cToolsAndProductsManagerP2S2.tool_two_text_path = "Texts/Phase2Step2/3_tool_two_text";
            cToolsAndProductsManagerP2S2.ruta_img_one_tool_path = "Sprites/phase2step2/FrameMarker65_cinta_enmascarar_icon";
            cToolsAndProductsManagerP2S2.ruta_img_four_tool_path = "Sprites/phase2step2/FrameMarker69_papel_enmascarar_icon";
            cToolsAndProductsManagerP2S2.footer_search_text_path = "Texts/Phase2Step2/4_ending_search_text";
            cToolsAndProductsManagerP2S2.goBackButtonAction += GoToActivitiesPhase2Step2Informative;
            cToolsAndProductsManagerP2S2.goToSearchProductsTools += GoToSearchCintaEnmascPhase2Step2InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S2.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step2_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II23", "7", "-1","consulta");
            break;
        case "Phase2Step3":
            Debug.Log("Ingresa al case Phase2Step3... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP3_IM)
                Destroy (ActivitiesForPhase2Step3_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP3_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step3_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S3 = ToolsAndProductsPhase2Step3_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S3.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S3.title_header_text_path = "Texts/Phase2Step3/1_title_header_text";
            cToolsAndProductsManagerP2S3.title_intro_content_text_path = "Texts/Phase2Step3/2_introduction_text";
            cToolsAndProductsManagerP2S3.tool_one_text_path = "Texts/Phase2Step3/3_tool_one_text";
            cToolsAndProductsManagerP2S3.tool_two_text_path = "Texts/Phase2Step3/4_tool_two_text";
            cToolsAndProductsManagerP2S3.ruta_img_one_tool_path = "Sprites/phase2step3/FrameMarker45_esponja_p320_icon";
            cToolsAndProductsManagerP2S3.ruta_img_four_tool_path = "Sprites/phase2step3/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S3.ruta_img_five_tool_path = "Sprites/phase2step3/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S3.ruta_img_six_tool_path = "Sprites/phase2step3/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S3.footer_search_text_path = "Texts/Phase2Step3/5_ending_search_text";
            cToolsAndProductsManagerP2S3.goBackButtonAction += GoToActivitiesPhase2Step3Informative;
            cToolsAndProductsManagerP2S3.goToSearchProductsTools += GoToSearchEsponjaP320Phase2Step3InfoMode;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S3.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step3_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II24", "9", "-1","consulta");
            break;
        case "Phase2Step4":
            Debug.Log("Ingresa al case Phase2Step4... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP4_IM)
                Destroy (ActivitiesForPhase2Step4_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP4_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step4_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S4 = ToolsAndProductsPhase2Step4_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S4.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S4.title_header_text_path = "Texts/Phase2Step4/1_title_header_text";
            cToolsAndProductsManagerP2S4.title_intro_content_text_path = "Texts/Phase2Step4/2_introduction_text";
            cToolsAndProductsManagerP2S4.tool_one_text_path = "Texts/Phase2Step4/3_tool_one_text";
            cToolsAndProductsManagerP2S4.tool_two_text_path = "Texts/Phase2Step4/4_tool_two_text";
            cToolsAndProductsManagerP2S4.ruta_img_one_tool_path = "Sprites/phase2step4/FrameMarker46_esponja_p400_icon";
            cToolsAndProductsManagerP2S4.ruta_img_four_tool_path = "Sprites/phase2step4/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S4.ruta_img_five_tool_path = "Sprites/phase2step4/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S4.ruta_img_six_tool_path = "Sprites/phase2step4/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S4.footer_search_text_path = "Texts/Phase2Step4/5_ending_search_text";
            cToolsAndProductsManagerP2S4.goBackButtonAction += GoToActivitiesPhase2Step4Informative;
            cToolsAndProductsManagerP2S4.goToSearchProductsTools += GoToSearchEsponjaP400Phase2Step4Informative;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S4.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step4_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II25", "10", "-1","consulta");
            break;
        case "Phase2Step5":
            Debug.Log("Ingresa al case Phase2Step5... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP5_IM)
                Destroy (ActivitiesForPhase2Step5_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP5_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step5_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S5 = ToolsAndProductsPhase2Step5_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S5.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S5.title_header_text_path = "Texts/Phase2Step5/1_title_header_text";
            cToolsAndProductsManagerP2S5.title_intro_content_text_path = "Texts/Phase2Step5/2_introduction_text_tools";
            cToolsAndProductsManagerP2S5.tool_one_text_path = "Texts/Phase2Step5/3_tool_one_text";
            cToolsAndProductsManagerP2S5.tool_two_text_path = "Texts/Phase2Step5/4_tool_two_text";
            cToolsAndProductsManagerP2S5.ruta_img_one_tool_path = "Sprites/phase2step5/FrameMarker99_roto_orbital_icon";
            cToolsAndProductsManagerP2S5.ruta_img_two_tool_path = "Sprites/phase2step5/FrameMarker30_disco_p80_icon";
            cToolsAndProductsManagerP2S5.ruta_img_three_tool_path = "Sprites/phase2step5/FrameMarker32_disco_p120_icon";
            cToolsAndProductsManagerP2S5.ruta_img_four_tool_path = "Sprites/phase2step5/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S5.ruta_img_five_tool_path = "Sprites/phase2step5/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S5.ruta_img_six_tool_path = "Sprites/phase2step5/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S5.footer_search_text_path = "Texts/Phase2Step5/5_ending_search_text";
            cToolsAndProductsManagerP2S5.goBackButtonAction += GoToActivitiesPhase2Step5Informative;
            cToolsAndProductsManagerP2S5.goToSearchProductsTools += GoToSearchRotoOrbitalPhase2Step5Informative;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S5.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step5_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II26", "11", "-1","consulta");
            break;
        case "Phase2Step6":
            Debug.Log("Ingresa al case Phase2Step6... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP6_IM)
                Destroy (ActivitiesForPhase2Step6_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP6_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step6_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S6 = ToolsAndProductsPhase2Step6_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S6.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S6.title_header_text_path = "Texts/Phase2Step6/1_title_header_text";
            cToolsAndProductsManagerP2S6.title_intro_content_text_path = "Texts/Phase2Step6/2_introduction_text_tools";
            cToolsAndProductsManagerP2S6.tool_one_text_path = "Texts/Phase2Step6/3_tool_one_text";
            cToolsAndProductsManagerP2S6.tool_two_text_path = "Texts/Phase2Step6/4_tool_two_text";
            if(AppManager.manager.last_markerid_scanned == 30)
                cToolsAndProductsManagerP2S6.ruta_img_one_tool_path = "Sprites/phase2step6/FrameMarker33_disco_p150";
            else
                cToolsAndProductsManagerP2S6.ruta_img_one_tool_path = "Sprites/phase2step6/FrameMarker34_disco_p180";
            cToolsAndProductsManagerP2S6.ruta_img_four_tool_path = "Sprites/phase2step6/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S6.ruta_img_five_tool_path = "Sprites/phase2step6/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S6.ruta_img_six_tool_path = "Sprites/phase2step6/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S6.footer_search_text_path = "Texts/Phase2Step6/5_ending_search_text";
            cToolsAndProductsManagerP2S6.goBackButtonAction += GoToActivitiesPhase2Step6Informative;
            cToolsAndProductsManagerP2S6.goToSearchProductsTools += GoToSearchDiscoP150Phase2Step6Informative;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S6.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step6_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II27", "12", "-1","consulta");
            break;
        case "Phase2Step7":
            Debug.Log("Ingresa al case Phase2Step7... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP7_IM)
                Destroy (ActivitiesForPhase2Step7_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP7_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step7_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S7 = ToolsAndProductsPhase2Step7_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S7.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S7.title_header_text_path = "Texts/Phase2Step7/1_title_header_text";
            cToolsAndProductsManagerP2S7.title_intro_content_text_path = "Texts/Phase2Step7/2_introduction_text_tools";
            cToolsAndProductsManagerP2S7.tool_one_text_path = "Texts/Phase2Step7/3_tool_one_text";
            cToolsAndProductsManagerP2S7.tool_two_text_path = "Texts/Phase2Step7/4_tool_two_text";
            cToolsAndProductsManagerP2S7.ruta_img_one_tool_path = "Sprites/phase2step7/FrameMarker36_disco_p240_icon";
            cToolsAndProductsManagerP2S7.ruta_img_four_tool_path = "Sprites/phase2step7/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S7.ruta_img_five_tool_path = "Sprites/phase2step7/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S7.ruta_img_six_tool_path = "Sprites/phase2step7/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S7.footer_search_text_path = "Texts/Phase2Step7/5_ending_search_text";
            cToolsAndProductsManagerP2S7.goBackButtonAction += GoToActivitiesPhase2Step7Informative;
            cToolsAndProductsManagerP2S7.goToSearchProductsTools += GoToSearchDiscoP240Phase2Step7Informative;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S7.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step7_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II28", "13", "-1","consulta");
            break;
        case "Phase2Step8":
            Debug.Log("Ingresa al case Phase2Step8... Cargando Interfaz en GoToToolsAndProducts");
            if (current_interface == CurrentInterface.ACTIVITIES_PHASE2_STEP8_IM)
                Destroy (ActivitiesForPhase2Step8_int_im_instance);
            else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP8_IM)
                Destroy(AR_Mode_Search_int_im_instance);

            current_interface = CurrentInterface.TOOLS_AND_PRODUCTS_IM;

            ToolsAndProductsPhase2Step8_int_im_instance = Instantiate (AppManager.manager.ToolsAndProductsInterface);
            CanvasToolsAndProductsManager cToolsAndProductsManagerP2S8 = ToolsAndProductsPhase2Step8_int_im_instance.GetComponent<CanvasToolsAndProductsManager> ();
            cToolsAndProductsManagerP2S8.image_header_path = "Sprites/tools_and_products/tools";
            cToolsAndProductsManagerP2S8.title_header_text_path = "Texts/Phase2Step8/1_title_header_text";
            cToolsAndProductsManagerP2S8.title_intro_content_text_path = "Texts/Phase2Step8/2_introduction_text_tools";
            cToolsAndProductsManagerP2S8.tool_one_text_path = "Texts/Phase2Step8/3_tool_one_text";
            cToolsAndProductsManagerP2S8.tool_two_text_path = "Texts/Phase2Step8/4_tool_two_text";
            cToolsAndProductsManagerP2S8.ruta_img_one_tool_path = "Sprites/phase2step8/FrameMarker38_disco_p320";
            cToolsAndProductsManagerP2S8.ruta_img_four_tool_path = "Sprites/phase2step8/FrameMarker23_pistola_aire_icon";
            cToolsAndProductsManagerP2S8.ruta_img_five_tool_path = "Sprites/phase2step8/FrameMarker24_paper_neteja_icon";
            cToolsAndProductsManagerP2S8.ruta_img_six_tool_path = "Sprites/phase2step8/FrameMarker25_papel_dc3430_icon";
            cToolsAndProductsManagerP2S8.footer_search_text_path = "Texts/Phase2Step8/5_ending_search_text";
            cToolsAndProductsManagerP2S8.goBackButtonAction += GoToActivitiesPhase2Step8Informative;
            cToolsAndProductsManagerP2S8.goToSearchProductsTools += GoToSearchDiscoP320Phase2Step8Informative;
            //Atencion: Es muy importante definir esta variable para poder ir hacia atras:
            cToolsAndProductsManagerP2S8.interfaceGoingBackFrom = interface_from;

            //asignando la interfaz activa para controlar el regreso:
            AppManager.manager.interfaceInstanceActive = ToolsAndProductsPhase2Step8_int_im_instance;
            Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
            NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II29", "14", "-1","consulta");
            break;

        case "":
            Debug.Log("-->ERROR INFORMATIVE MODE: La interfaz de la cual se pretende retornar viene vacia");
            break;
        }
    }
Beispiel #49
0
 public static void RemoveElement(Element element)
 {
     CurrentInterface.Remove(element);
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="InformativeMode"/> class.
 /// Constructor
 /// </summary>
 public InformativeMode()
 {
     Debug.Log ("Llamado al constructor de la clase InformativeMode");
     current_interface = CurrentInterface.SELECTION_OF_MODE;
 }
Beispiel #51
0
 public static void PushToBack(Element element)
 {
     CurrentInterface.PushToBack(element);
 }
    //Metodo que instancia la interfaz del Phase1 - Step 1 (buscar capo del carro)
    public void GoToActivitiesPhase1Step1Informative()
    {
        Debug.Log ("InformativeMode: Llamado al metodo GoToActivitiesPhase1Step1Informative - Capo del Carro");

        if (current_interface == CurrentInterface.MENU_STEPS_PHASE1_IM)
            Destroy (menuStepsPhase1_int_im_instance);
         else if (current_interface == CurrentInterface.AR_SEARCH_CAR_HOOD_IM)
            Destroy (TurorialSearchCapoCarro_int_im_instance);

        current_interface = CurrentInterface.ACTIVITIES_PHASE1_STEP1_IM;
        //Ojo con lo siguiente estoy destruyendo todas las instancias que hayan de la interfaz de actividades por cada paso
        DestroyInstancesWithTag ("ActivitiesForEachStep");

        if (AppManager.manager.BuscarCapoCarro == null)
            Debug.LogError ("BuscarCapoCarro no esta definido en el AppManager invocando desde InformativeMode!!");

        ActivitiesForPhase1Step1_int_im_instance = Instantiate (AppManager.manager.BuscarCapoCarro);
        CanvasBuscarCapoCocheManager cBuscarCapoCoche = ActivitiesForPhase1Step1_int_im_instance.GetComponent<CanvasBuscarCapoCocheManager> ();
        cBuscarCapoCoche.image_header_buscar_capo = image_buscar_capo_path;
        cBuscarCapoCoche.image_content_capo_carro_marker = image_content_marker;
        cBuscarCapoCoche.titulo_buscar_capo_carro = title_phase1_step1;
        cBuscarCapoCoche.introduction_text_path_1 = introduction_text_phase1Step1_path_one;
        cBuscarCapoCoche.introduction_text_path_2 = introduction_text_phase1Step1_path_two;
        cBuscarCapoCoche.goBackToMenuActivities += GoToMenuStepsPhase1InformativeMode;
        cBuscarCapoCoche.goToSearchCapoCarro += GoToSearchCapoCocheInformative;
        cBuscarCapoCoche.text_btn_continuar = "Buscar"; //asignando el texto que se debe mostrar en el boton
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II4", "1", "-1","consulta");
    }
Beispiel #53
0
 public static void Update()
 {
     KeyList.Update();
     CurrentInterface.Update();
 }
    //Metodo que instancia la interfaz del Phase2 - Step 1 (Introduccion al Matizado)
    public void GoToActivitiesPhase2Step1Informative()
    {
        if (current_interface == CurrentInterface.MENU_STEPS_PHASE2_IM)
            Destroy (menuStepsPhaseTwo_int_im_instance);

        current_interface = CurrentInterface.ACTIVITIES_PHASE2_STEP1_IM;
        //Ojo con lo siguiente estoy destruyendo todas las instancias que hayan de la interfaz de actividades por cada paso
        //DestroyInstancesWithTag ("ActivitiesForEachStep");

        if (AppManager.manager.BuscarCapoCarro == null)
            Debug.LogError ("GoToActivitiesPhase2Step1Informative: BuscarCapoCarro no esta definido para ser usado como interfaz de introduccion al matizado en el AppManager!!");

        ActivitiesForPhase2Step1_int_im_instance = Instantiate (AppManager.manager.BuscarCapoCarro);
        CanvasBuscarCapoCocheManager cBuscarCapoCoche = ActivitiesForPhase2Step1_int_im_instance.GetComponent<CanvasBuscarCapoCocheManager> ();
        cBuscarCapoCoche.image_header_buscar_capo = image_intro_matizado_header_path;
        cBuscarCapoCoche.image_content_capo_carro_marker = image_intro_matizado_header_path;
        cBuscarCapoCoche.titulo_buscar_capo_carro = title_phase2_step1;
        cBuscarCapoCoche.introduction_text_path_1 = introduction_text_phase2Step1_path_one;
        cBuscarCapoCoche.introduction_text_path_2 = introduction_text_phase2Step1_path_two;
        cBuscarCapoCoche.text_btn_continuar = "Continuar"; //texto que se mustra en el btn de la parte inferior de la interfaz
        cBuscarCapoCoche.goBackToMenuActivities += GoToMenuStepsPhase2InformativeMode;
        cBuscarCapoCoche.goToSearchCapoCarro += GoToMenuStepsPhase2InformativeMode; //Aunque dice goToSearchCapoCarro realmente este metodo se ejecuta cuando se hace click sobre el boton

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II10", "0", "-1","consulta");
    }
Beispiel #55
0
    public void GoToMenuPhases()
    {
        Debug.LogError ("Llamado al metodo go to Menu Phases en AppManager");
        //validando que no vamos a iniciar el modo informativo:
        in_informative_mode = false;

        if (current_interface == CurrentInterface.SELECTION_OF_MODE)
            Destroy (selectionOfMode_interface_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE1)
            Destroy (menuStepsPhase1_interface_instance);
        else if (current_interface == CurrentInterface.MENU_STEPS_PHASE2)
            Destroy (menuStepsPhaseTwo_interface_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL)
            Destroy (TutorialPhaseTwoSearchProd_interface_instance);

        current_interface = CurrentInterface.MENU_PHASES;

        menuProcessPhases_interface_instance = Instantiate (menuProcessPhases);
        CanvasProcessPhasesManager cProcessPhaseManager = menuProcessPhases_interface_instance.GetComponent<CanvasProcessPhasesManager> ();
        cProcessPhaseManager.titulo = this.menuPhases_interface_title;
        //asignando imagenes a los botones de la interfaz
        cProcessPhaseManager.introduction_text_path = this.menuPhases_interface_introduction_text_path;
        //verificando si se debe mostrar la imagen normal del boton o la imagen en gris dependiendo de si el boton
        //estaria activo o no:
        if (phase_one_enable)
            cProcessPhaseManager.image_uno_limpieza = this.menuPhases_interface_button_uno_image;
        else
            cProcessPhaseManager.image_uno_limpieza = this.menuPhases_int_btn_uno_image_gray;

        if (phase_two_enable)
            cProcessPhaseManager.image_dos_matizado = this.menuPhases_interface_button_dos_image;
        else
            cProcessPhaseManager.image_dos_matizado = this.menuPhases_int_btn_dos_image_gray;

        if (phase_three_enable)
            cProcessPhaseManager.image_tres_masillado = this.menuPhases_interface_button_tres_image;
        else
            cProcessPhaseManager.image_tres_masillado = this.menuPhases_int_btn_tres_image_gray;

        if (phase_four_enable)
            cProcessPhaseManager.image_cuatro_aparejado = this.menuPhases_interface_button_cuatro_image;
        else
            cProcessPhaseManager.image_cuatro_aparejado = this.menuPhases_int_btn_cuatro_image_gray;

        if (phase_five_enable)
            cProcessPhaseManager.image_cinco_pintado = this.menuPhases_interface_button_cinco_image;
        else
            cProcessPhaseManager.image_cinco_pintado = this.menuPhases_int_btn_cinco_image_gray;

        if (phase_six_enable)
            cProcessPhaseManager.image_seis_barnizado = this.menuPhases_interface_button_seis_image;
        else
            cProcessPhaseManager.image_seis_barnizado = this.menuPhases_int_btn_seis_image_gray;

        //Asignando los valores booleanos que indican si el boton se debe habilitar o no:
        cProcessPhaseManager.phase_one_button_enable = this.phase_one_enable;
        cProcessPhaseManager.phase_two_button_enable = this.phase_two_enable;
        cProcessPhaseManager.phase_three_button_enable = this.phase_three_enable;
        cProcessPhaseManager.phase_four_button_enable = this.phase_four_enable;
        cProcessPhaseManager.phase_five_button_enable = this.phase_five_enable;
        cProcessPhaseManager.phase_six_button_enable = this.phase_six_enable;

        //asignando textos a los botones de la interfaz:
        cProcessPhaseManager.button_uno_text_limpieza = this.menuPhases_interface_button_uno_text;
        cProcessPhaseManager.button_dos_text_matizado = this.menuPhases_interface_button_dos_text;
        cProcessPhaseManager.button_tres_text_masillado = this.menuPhases_interface_button_tres_text;
        cProcessPhaseManager.button_cuatro_text_aparejado = this.menuPhases_interface_button_cuatro_text;
        cProcessPhaseManager.button_cinco_text_pintado = this.menuPhases_interface_button_cinco_text;
        cProcessPhaseManager.button_seis_text_barnizado = this.menuPhases_interface_button_seis_text;

        cProcessPhaseManager.goToMenuStepsOfPhase1_action += GoToMenuStepsPhase1;
        cProcessPhaseManager.goToMenuStepsOfPhase2_action += GoToMenuStepsPhase2;

        cProcessPhaseManager.goBackToSelectionOfMode += GoToSelectionOfMode;

        interfaceComingBackFrom = "MenuPhases";
        goBackFromOtherInterface = true;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I3");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I3", "0", "-1");
        //NavigationControllerObject.navigation.imprimir_lista ();
    }
    /// <summary>
    /// Goes to activities phase2 step2. (Actividades de Proteccion de la Superficie (Fase Matizado))
    /// </summary>
    public void GoToActivitiesPhase2Step2Informative()
    {
        if (current_interface == CurrentInterface.MENU_STEPS_PHASE2_IM)
            Destroy (menuStepsPhaseTwo_int_im_instance);
        else if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_IM)
            Destroy (ToolsAndProductsPhase2Step2_int_im_instance);
        else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP2_IM)
            Destroy (AR_Mode_Search_int_im_instance);

        current_interface = CurrentInterface.ACTIVITIES_PHASE2_STEP2_IM;

        //Ojo con lo siguiente estoy destruyendo todas las instancias que hayan de la interfaz de actividades por cada paso
        DestroyInstancesWithTag ("ActivitiesForEachStep");
        DestroyInstancesWithTag ("AR_Mode_Generic_interface");

        ActivitiesForPhase2Step2_int_im_instance = Instantiate (AppManager.manager.ActivitiesForEachStep);
        CanvasActivitiesForEachStepHeaders cActivitiesForStep = ActivitiesForPhase2Step2_int_im_instance.GetComponent<CanvasActivitiesForEachStepHeaders> ();
        cActivitiesForStep.titulo_current_step = title_phase2_step2;
        cActivitiesForStep.introduction_text_path = introduction_text_phase2Step2_path;

        //agregando imagenes que se cargan en el header para el conjunto de fases del proceso:
        cActivitiesForStep.image_phase_one_header = phase1_with_text_image_gray_path;
        cActivitiesForStep.image_phase_two_header = phase2_with_text_image_path; //imagen activa que no va en gris
        cActivitiesForStep.image_phase_three_header = phase3_with_text_image_gray_path;
        cActivitiesForStep.image_phase_four_header = phase4_with_text_image_gray_path;
        cActivitiesForStep.image_phase_five_header = phase5_with_text_image_gray_path;
        cActivitiesForStep.image_phase_six_header = phase6_with_text_image_gray_path;

        //agregando imagenes que se cargan en el header para el conjunto de pasos de la fase correspondiente:
        cActivitiesForStep.image_step_one_header = image_phase2step1_with_text_gray;
        cActivitiesForStep.image_step_two_header = image_phase2step2_with_text; //esta imagen se muestra activa NO en gris porque es el paso correspondiente
        cActivitiesForStep.image_step_three_header = image_phase2step3_with_text_gray;
        cActivitiesForStep.image_step_four_header = image_phase2step4_with_text_gray;
        cActivitiesForStep.image_step_five_header = image_phase2step5_with_text_gray;
        cActivitiesForStep.image_step_six_header = image_phase2step6_with_text_gray;

        //agregando las imagenes a los botones
        cActivitiesForStep.image_uno_tools_and_products = image_uno_tools_and_products;
        cActivitiesForStep.image_dos_videos = image_dos_videos;
        cActivitiesForStep.image_tres_self_assessment = image_tres_self_assessment_gray;
        cActivitiesForStep.image_cuatro_simulations = image_cuatro_fotos_gray;
        cActivitiesForStep.image_cinco_personal_notes = image_cinco_personal_notes_gray;
        cActivitiesForStep.image_seis_frequently_questions = image_seis_frequently_questions_gray;
        cActivitiesForStep.image_siete_ask_your_teacher = image_siete_ask_your_teacher_gray;
        cActivitiesForStep.goToToolsAndProd += GoToToolsAndProductsInfoMode;
        cActivitiesForStep.interfaceCallingGoToTools = "Phase2Step2";
        cActivitiesForStep.goToMenuSteps += GoBackToMenuOfStepsFromActivInformative;
        cActivitiesForStep.interfaceGoingBackFrom = "Phase2Step2";
        cActivitiesForStep.goToVideosForStep += GoToVideoOfEachStepInformativeMode;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II11", "7", "-1","consulta");
    }
    public void GoToSearchDiscoP150Phase2Step6Informative()
    {
        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_IM) {
            Destroy(ToolsAndProductsPhase2Step6_int_im_instance);
        } else if (current_interface == CurrentInterface.AR_SEARCH_PHASE2_STEP6_IM)
            Destroy (AR_Mode_Search_int_im_instance);

        current_interface = CurrentInterface.AR_SEARCH_PHASE2_STEP6_IM;

        //indica que entramos en la fase 2 del tutorial:
        AppManager.manager.inTutorialPhase2 = false;
        Debug.Log ("--> Iniciando modo RA en GoToSearchDiscoP150Phase2Step6");
        //indica que se ingresa al modo RA fuera de los tutoriales:
        AppManager.manager.in_RA_mode = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        AR_Mode_Search_int_im_instance = Instantiate (AppManager.manager.AR_Mode_interface);
        ControllerBlinkingARGeneric blinking_search_phase2step6 = AR_Mode_Search_int_im_instance.GetComponent<ControllerBlinkingARGeneric> ();

        Debug.Log ("Nueva Interfaz Instanciada en GoToSearchDiscoP150Phase2Step6!!");
        //hay que asignar la interfaz activa tambien:
        AppManager.manager.interfaceInstanceActive = AR_Mode_Search_int_im_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker33");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();
        if (AppManager.manager.last_markerid_scanned == 32) {
            Debug.Log ("-->SEQUENCE:: Se va a cargar la informacion del DISCO P180 y el last_marker es:" + AppManager.manager.last_markerid_scanned);
            controller_info_marker.image_marker_path = "Sprites/markers/frameMarker34_disco_p180";
            controller_info_marker.image_marker_real_path = "Sprites/phase2step6/FrameMarker34_disco_p180";
        } else {
            Debug.Log ("--> SEQUENCE: El last marker scanned fue: " + AppManager.manager.last_markerid_scanned);
            controller_info_marker.image_marker_path = "Sprites/markers/frameMarker33_disco_p150";
            controller_info_marker.image_marker_real_path = "Sprites/phase2step6/FrameMarker33_disco_p150";
        }
        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,false,true);

        //NOTA: Especialmente para este marcador se va a habilitar la validacion de secuencia:
        blinking_search_phase2step6.validate_sequence_of_markers = true;
        blinking_search_phase2step6.previous_marker_id = AppManager.manager.last_markerid_scanned;
        if (AppManager.manager.last_markerid_scanned == 30)
            blinking_search_phase2step6.next_marker_id = 33;
        else
            blinking_search_phase2step6.next_marker_id = 34;

        Debug.LogError ("NOW: Start Blinking en GoToSearchDiscoP150Phase2Step6");
        //asignando el texto para el feedback directamente a la interfaz:
        if(AppManager.manager.last_markerid_scanned == 32)
            blinking_search_phase2step6.feedback_info_text_path = text_feedback_phase2step6_p180;
        else blinking_search_phase2step6.feedback_info_text_path = text_feedback_phase2step6;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 20;
        blinking_search_phase2step6.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase2step6.interface_going_from = "Phase2Step6";  //la variable Phase1Step3 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase2step6.onClickSelectBtn += OnClickSelectDiscoP150Phase2Step6Infom;

        //iniciando el proceso blinking:
        blinking_search_phase2step6.should_be_blinking = true;
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II50", "12", "-1","consulta");
    }
Beispiel #58
0
    /// <summary>
    /// Loads the config options interface. This method is called from the SelectionOfModeInterface
    /// </summary>
    public void LoadConfigurationOptions()
    {
        if(current_interface == CurrentInterface.SELECTION_OF_MODE)
            Destroy (selectionOfMode_interface_instance);

        current_interface = CurrentInterface.CONFIG_OPTIONS;

        configuration_opts_interface_instance = Instantiate (ConfigurationOptions);
        ControllerConfigurationOptions controller_config_opts = configuration_opts_interface_instance.GetComponent<ControllerConfigurationOptions> ();
        controller_config_opts.intro_text_path_config_opts = "Texts/6_configuration_text_intro";
        controller_config_opts.ActionGoBackSelectionMode += GoToSelectionOfMode;
        controller_config_opts.ActionRestartGuidedMode += RestartGuidedMode;
        controller_config_opts.ActionRestartEvaluationMode += RestartEvaluationMode;
    }
    /// <summary>
    /// Goes to search objects tutorial phase2.
    /// Method that is called in order to start tutorial phase 2 - Searching Agua y Jabon
    /// </summary>
    public void GoToSearchObjectsTutorialPhase2InfoMode()
    {
        Debug.Log ("InformativeMode: Llamado al metodo GoToSearchObjectsTutorialPhase2InfoMode ");

        if (current_interface == CurrentInterface.TOOLS_AND_PRODUCTS_IM) {
            Destroy(ToolsAndProductsPhase1Step2_int_im_instance);
        }

        current_interface = CurrentInterface.AR_SEARCH_PRODUCTS_TUTORIAL_IM;

        //Destruyendo las demas interfaces que pueda haber en memoria en caso de que las haya para
        //evitar problemas con interfaces que se solapan:
        DestroyInstancesWithTag ("TutorialPhaseTwo");

        //indica que entramos en la fase 2 del tutorial:
        AppManager.manager.inTutorialPhase2 = true;

        //ahora aqui debo instanciar la interfaz del tutorial 2 y asignarle todas las propiedades:
        TutorialPhaseTwoSearchProd_int_im_instance = Instantiate (AppManager.manager.TutorialSearchProductsPhase2);
        ControllerBlinkingAddInfo blinking_search_phase_two = TutorialPhaseTwoSearchProd_int_im_instance.GetComponent<ControllerBlinkingAddInfo> ();

        //hay que asignar la interfaz activa tambien:
        AppManager.manager.interfaceInstanceActive = TutorialPhaseTwoSearchProd_int_im_instance;

        //localizando el marcador que se debe buscar en esta fase del proceso y cargando datos respectivos:
        markerInScene = GameObject.Find ("FrameMarker16");
        ControllerAddInfoInMarker controller_info_marker = markerInScene.GetComponent<ControllerAddInfoInMarker> ();

        //NOTA: antes de hacer esto es importante que la variable interfaceInstanceActive este asignada:
        //tambien es importante haber asignado la variable inTutorialPhase1
        controller_info_marker.LoadInformationToInterface (false,true,false);

        Debug.LogError ("NOW: Start Blinking");
        //asignando el texto para el feedback directamente a la interfaz:
        blinking_search_phase_two.feedback_info_text_path = text_feedback;

        //definiendo los ordenes que controlara esta interfaz:
        order_in_process = new int[1];
        order_in_process [0] = 2;
        blinking_search_phase_two.ordenes = order_in_process;

        //Asignando el metodo que se debe ejecutar cuando se hace click sobre el btn Select de la interfaz
        blinking_search_phase_two.interface_going_from = "Phase1Step2";  //la variable Phase1Step2 permite obtener la interfaz para obtenerla en OnBackButtonTapped
        blinking_search_phase_two.onClickSelectBtn += OnClickSelectAguaPressioSearchInfoMode;

        //iniciando el proceso blinking:
        blinking_search_phase_two.should_be_blinking = true;

        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion:");
        NavigationControllerObject.navigation.RegistrarInterfazModoEvalConsult (AppManager.manager.codigo_estudiante, fecha, "II31", "1", "-1","consulta");
    }
Beispiel #60
0
    public void GoToChallengeInterface()
    {
        if (current_interface == CurrentInterface.SELECTION_OF_MODE)
            Destroy (selectionOfMode_interface_instance);

        if (compact_mode) {
            challenge_interface_compact = Instantiate(challenge_compact);
            CanvasChallengeInterfaceCompact cChallengeCompact = challenge_interface_compact.GetComponent<CanvasChallengeInterfaceCompact>();
            cChallengeCompact.titulo= this.challenge_interface_title;
            cChallengeCompact.introduction_text_path = this.challenge_interface_introduction_text_path;
            cChallengeCompact.image_header_path = this.challenge_interface_image_header_path;
            cChallengeCompact.continue_button_action += GoToSelectionOfMode;
        } else {
            challenge_interface = Instantiate (challenge);
            CanvasChallengeInterfaceManager cChallengeInterface = challenge_interface.GetComponent<CanvasChallengeInterfaceManager> ();
            cChallengeInterface.titulo = this.challenge_interface_title;
            cChallengeInterface.introduction_text_path = this.challenge_interface_introduction_text_path;
            cChallengeInterface.continue_text_path = this.challenge_interface_text_continue_path;
            cChallengeInterface.image_header_path = this.challenge_interface_image_header_path;
            cChallengeInterface.continue_button_action += GoToSelectionOfMode;

        }

        //asignando la interfaz actual:
        current_interface = CurrentInterface.CHALLENGE;

        LoadDataForStudent ();
        //Debido a que en este punto ya se han cargado los datos del estudiante entonces se puede
        //asignar el codigo de estudiante a la interfaz de control de navegacion
        //NavigationControllerObject.navigation.student_code = this.codigo_estudiante;
        NavigationControllerObject.navigation.student_code = this.codigo_estudiante;
        //obteniendo la fecha en la que se carga la interfaz:
        string fecha = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        Debug.Log ("Se va a registrar la interfaz con el controlador de navegacion: I1");
        NavigationControllerObject.navigation.RegistrarInterfazModoGuiado (this.codigo_estudiante, fecha, "I1", "0", "-1");
    }