Ejemplo n.º 1
0
    public void ResetColorCurIDX()
    {
        GameObject gameObject = this.partObjs[this.animIndexBK].csParts.gameObject;
        GUIListPartsMissionSelect component = gameObject.GetComponent <GUIListPartsMissionSelect>();

        if (component != null)
        {
            component.SetBGColor(false);
        }
    }
Ejemplo n.º 2
0
 public void RefreshBadge()
 {
     for (int i = 0; i < this.partObjs.Count; i++)
     {
         if (this.partObjs[i].csParts != null)
         {
             GUIListPartsMissionSelect guilistPartsMissionSelect = (GUIListPartsMissionSelect)this.partObjs[i].csParts;
             if (guilistPartsMissionSelect != null)
             {
                 guilistPartsMissionSelect.RefreshBadge();
             }
         }
     }
 }
Ejemplo n.º 3
0
    public bool SetCellAnim(int selectedIndex, bool resetNew = true)
    {
        if (selectedIndex == this.animIndexBK)
        {
            return(false);
        }
        if (this.partObjs[selectedIndex].csParts == null)
        {
            return(false);
        }
        GUIListPartsMissionSelect guilistPartsMissionSelect = (GUIListPartsMissionSelect)this.partObjs[selectedIndex].csParts;

        if (guilistPartsMissionSelect != null)
        {
            if (resetNew)
            {
                guilistPartsMissionSelect.ResetNew();
            }
            this.animationMoving = true;
            GUICollider.DisableAllCollider("GUISelectPanelMissionSelect::SetCellAnim");
            GameObject gameObject = this.partObjs[selectedIndex].csParts.gameObject;
            if (!this.getAllButton.gameObject.activeSelf)
            {
                this.getAllButton.transform.SetParent(base.transform);
                this.getAllButton.transform.localPosition = new Vector3(-250f, this.getAllButton.transform.localPosition.y, this.getAllButton.transform.localPosition.z);
                this.getAllButton.gameObject.SetActive(true);
                iTween.MoveTo(this.getAllButton, iTween.Hash(new object[]
                {
                    "x",
                    2.0,
                    "time",
                    0.4,
                    "islocal",
                    true
                }));
            }
            if (gameObject.activeSelf)
            {
                iTween.MoveTo(gameObject, iTween.Hash(new object[]
                {
                    "x",
                    this.selectPartsAnimX,
                    "time",
                    0.4,
                    "islocal",
                    true
                }));
            }
            else
            {
                gameObject.transform.localPosition = new Vector3(this.selectPartsAnimX, gameObject.transform.localPosition.y, gameObject.transform.localPosition.z);
            }
            guilistPartsMissionSelect.SetBGColor(true);
            if (this.animIndexBK != -1 && this.partObjs[this.animIndexBK].csParts != null)
            {
                GameObject gameObject2 = this.partObjs[this.animIndexBK].csParts.gameObject;
                GUIListPartsMissionSelect component = gameObject2.GetComponent <GUIListPartsMissionSelect>();
                if (component != null)
                {
                    component.SetBGColor(false);
                }
                if (gameObject2.activeSelf)
                {
                    iTween.MoveTo(gameObject2, iTween.Hash(new object[]
                    {
                        "x",
                        0,
                        "time",
                        0.4,
                        "islocal",
                        true,
                        "oncomplete",
                        "complete",
                        "oncompletetarget",
                        base.gameObject
                    }));
                }
                else
                {
                    gameObject2.transform.localPosition = new Vector3(0f, gameObject2.transform.localPosition.y, gameObject2.transform.localPosition.z);
                    base.Invoke("complete", 0.1f);
                }
            }
            else
            {
                base.Invoke("complete", 0.1f);
            }
            this.animIndexBK = selectedIndex;
            return(true);
        }
        return(false);
    }