예제 #1
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.id.text         = model.id;
        view.facenumber.text = model.facenumber;
        view.street.text     = model.street;
        view.house.text      = model.house;
        //view.surname.text = model.surname;
        view.name.text  = model.name;
        view.text.text  = model.text;
        view.date.text  = model.date;
        view.title.text = model.title;
        //view.status.text = model.status;
        //view.clickButton.GetComponentInChildren<Text>().text = model.id;
        //view.clickButton.GetComponentInChildren<Text>().text = model.facenumber;
        view.clickButton.onClick.AddListener(() =>
        {
            //Debug.Log(view.id.text + " is clicked!");
            PlayerPrefs.SetString("id_order", view.id.text);
            Web5.Web5idorder       = view.id.text;
            Web5chat.yk_facenumber = view.facenumber.text;
            SceneManager.LoadScene("Web5chat");
        }
                                             );
    }
예제 #2
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        //view.id.text = model.id;
        //view.idadm.text = model.idadm;
        //view.facenumber.text = model.facenumber;
        //view.street.text = model.street;
        //view.house.text = model.house;
        view.surname.text = model.surname;
        view.name.text    = model.name;
        //view.title.text = model.title;
        view.text.text = model.text;
        view.date.text = model.date;
        //view.clickButton.GetComponentInChildren<Text>().text = model.buttonText;
        //view.clickButton.onClick.AddListener(
        //()=>
        //{
        //Debug.Log(view.titleText.text + " is clicked!");
        //StartCoroutine(DeletPromo(view.id.text));
        //PlayerPrefs.SetString("id_servic", view.id.text);
        //SceneManager.LoadScene("WebPromo");

        //}
        //);
    }
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.clickbutton.GetComponentInChildren <Text>().text = model.buttonText;
        view.clickbutton.onClick.AddListener(
            () =>
        {
            contentOutput.text = model.PersonInfo;
            if (lastSelectedButton != null)
            {
                if (view.clickbutton != lastSelectedButton)
                {
                    lastSelectedButton.image.color = Color.white;
                    view.clickbutton.image.color   = new Color32(255, 183, 18, 255);
                    lastSelectedButton             = view.clickbutton;
                }
                else
                {
                    return;
                }
            }
            else
            {
                view.clickbutton.image.color = new Color32(255, 183, 18, 255);
                lastSelectedButton           = view.clickbutton;
            }
        }
            );
    }
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.titleText.text       = model.title;
        view.descriptionText.text = model.description;
        view.priceText.text       = model.price;
    }
예제 #5
0
    private void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.labelText.text          = model.label;
        view.countOfProductText.text = "x" + model.countOfProduct;
        view.priceText.text          = model.price;
    }
예제 #6
0
    TestItemView InitializeItemView(GameObject view_gameobject, TestItemModel model)
    {
        TestItemView view = new TestItemView(view_gameobject.transform);

        view._title_text.text = model._title;
        view_gameobject.name  = model._title;
        return(view);
    }
예제 #7
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.pos.text   = position.ToString();
        view.name.text  = model.name;
        view.time.text  = model.time;
        view.store.text = model.store;
    }
예제 #8
0
    void InitializeItemView(GameObject viewGameObject, GameObject Image, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);
        int          len  = model.title.Length;

        view.titleText.text = model.title.Substring(2, len - 2);//.Substring(1, 4);//model.title.Length
        if (model.title.Substring(0, 1) == "0")
        {
            Image.SetActive(true);
        }
    }
예제 #9
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.titleText.text = model.title;
        view.clickButton.GetComponentInChildren <Text>().text = model.buttonText;
        view.clickButton.onClick.AddListener(
            () =>
        {
            Debug.Log(view.titleText.text + " is clicked!");
        }
            );
    }
예제 #10
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model) // передаем значения типа Item № и Button № на сцене
    {
        TestItemView view = new TestItemView(viewGameObject.transform);     //данные с сервера применяем к обна сцене

        view.titleText.text = model.title;
        view.clickButton.GetComponentInChildren <Text>().text = model.buttonText;
        view.clickButton.onClick.AddListener(
            () =>
        {
            Debug.Log(view.titleText.text + " is clicked!");
        }
            );
    }
예제 #11
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.name.text = model.name;


        // ВОТ ЗДЕСЬ ВСЯ БЕДА или в JsonHELPER

        //if(model.img.Length > 100){
        //byte[] Bytes = System.Convert.FromBase64String (model.img);
        //Texture2D texture = new Texture2D(1,1);
        //texture.LoadImage (Bytes);
        //view.img.texture = texture;}
    }
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.titleText.text = model.title;
        view.clickButton.GetComponentInChildren <Text>().text = model.buttonText;
        view.clickButton.onClick.AddListener(
            () =>
        {
            Debug.Log(view.titleText.text + " is clicked!");
            PlayerPrefs.SetString("id_order", view.titleText.text);
            SceneManager.LoadScene("Morderchat");
        }
            );
    }
예제 #13
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.id.text     = model.id;
        view.street.text = "ул." + model.street;
        view.text.text   = model.text;
        view.date.text   = model.date;
        view.title.text  = model.title;
        //view.clickButton.GetComponentInChildren<Text>().text = model.buttonText;
        //view.clickButton.onClick.AddListener(()=> {
        //Debug.Log(view.titleText.text + " is clicked!");
        //PlayerPrefs.SetString("id_servic", view.id.text);
        //SceneManager.LoadScene("Mserviczapros");});
    }
예제 #14
0
    // Write data using TestItemView
    private async void InitializePanView(GameObject viewPrefab, UnityGoogleDrive.Data.File file, bool isDownloaded)
    {
        TestItemView view = new TestItemView(viewPrefab.transform);

        view.titleText.text        = file.Name.Remove(file.Name.IndexOf('.'));
        view.imageThumbnail.sprite = await DownloadThumbnail(file.ThumbnailLink);

        if (isDownloaded)
        {
            view.downloadButton.gameObject.SetActive(false);
        }
        view.downloadButton.GetComponent <Button>().onClick.AddListener(
            () =>
        {
            tempName = file.Name.Remove(file.Name.IndexOf('.'));
            DownloadTexture(file.Id);
        }
            );
    }
예제 #15
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        //view.id.text = model.id;
        view.surname.text = model.surname;
        view.name.text    = model.name;
        view.text.text    = model.text;
        view.date.text    = model.date;
        //view.title.text = model.title;
        //view.clickButton.GetComponentInChildren<Text>().text = model.buttonText;
        //view.clickButton.onClick.AddListener(
        //()=>
        //{
        //Debug.Log(view.titleText.text + " is clicked!");
        //PlayerPrefs.SetString("id_order", view.id.text);
        //SceneManager.LoadScene("Morderchat");

        //}
        //);
    }
예제 #16
0
    void InitializeItemView(GameObject viewGameObject, TestItemModel model)
    {
        TestItemView view = new TestItemView(viewGameObject.transform);

        view.id.text         = model.id;
        view.street.text     = model.street;
        view.house.text      = model.house;
        view.flat.text       = model.flat;
        view.phone.text      = model.phone;
        view.email.text      = model.email;
        view.facenumber.text = model.facenumber;
        view.kod.text        = model.kod;
        view.surname.text    = model.surname;
        view.name.text       = model.name;
        view.otch.text       = model.otch;
        view.nachisl.text    = model.nachisl;
        view.debd.text       = model.debd;
        view.mesdebd.text    = model.mesdebd;
        view.xbc.text        = model.xbc;
        view.datexbc.text    = model.datexbc;
        view.gbc.text        = model.gbc;
        view.dategbc.text    = model.dategbc;
        view.lastxbc.text    = model.lastxbc;
        view.lastgbc.text    = model.lastgbc;
        //view.clickButton.GetComponentInChildren<Text>().text = model.buttonText;
        view.clickButton.onClick.AddListener(
            () =>
        {
            //Debug.Log(view.titleText.text + " is clicked!");
            //StartCoroutine(DeletPromo(view.id.text));
            //PlayerPrefs.SetString("id_servic", view.id.text);
            yk_facenumber = view.facenumber.text;
            yk_id         = view.id.text;
            //yk_id = model.id;
            SceneManager.LoadScene("Web1.1");
        }
            );
    }