Esempio n. 1
0
 protected void UpdateMap(int iconID, List <int> coordinate)
 {
     ResourceManager.SetTexture(this.DarkTrialUIMapBG, GameDataUtils.GetIconName(iconID));
     if (coordinate.get_Count() > 1)
     {
         this.DarkTrialUIMapBG.get_transform().set_localPosition(new Vector3((float)coordinate.get_Item(0), (float)coordinate.get_Item(1), this.DarkTrialUIMapBG.get_transform().get_localPosition().z));
     }
 }
Esempio n. 2
0
    public string GetAcTypeLeftPictureName(int type)
    {
        KaiFuHuoDong kaiFuHuoDong = DataReader <KaiFuHuoDong> .Get(type);

        if (kaiFuHuoDong != null)
        {
            return(GameDataUtils.GetIconName(kaiFuHuoDong.picture));
        }
        return(string.Empty);
    }
Esempio n. 3
0
 private void Add2FaceSuit(Face dataFace)
 {
     for (int i = 0; i < this.FaceSuits.get_Count(); i++)
     {
         if (this.FaceSuits.get_Item(i).num == dataFace.num)
         {
             this.FaceSuits.get_Item(i).icons.Add(GameDataUtils.GetIconName(dataFace.icon));
             return;
         }
     }
     ChatManager.FaceSuit faceSuit = new ChatManager.FaceSuit();
     faceSuit.num = dataFace.num;
     faceSuit.icons.Add(GameDataUtils.GetIconName(dataFace.icon));
     this.FaceSuits.Add(faceSuit);
 }
Esempio n. 4
0
    public void UpdateBtn(int bossId)
    {
        if (this.bossId != bossId)
        {
            BossBiaoQian bossBiaoQian = DataReader <BossBiaoQian> .Get(bossId);

            if (bossBiaoQian != null)
            {
                this.m_TextName.set_text(GameDataUtils.GetChineseContent(bossBiaoQian.nameId, false));
                this.m_TextTime.set_text(string.Empty);
                this.m_TextLevel.set_text(bossBiaoQian.step.ToString() + GameDataUtils.GetChineseContent(517516, false));
                string iconName = GameDataUtils.GetIconName(bossBiaoQian.icon);
                ResourceManager.SetSprite(this.m_BtnBossImage, ResourceManager.GetIconSprite(iconName));
            }
            this.bossId = bossId;
            this.EndCountDown();
        }
    }
Esempio n. 5
0
    private void RandomBG()
    {
        List <JiaZaiJieMianPeiTu> dataList = DataReader <JiaZaiJieMianPeiTu> .DataList;

        if (dataList.get_Count() == 0)
        {
            Debug.LogError("GameData.JiaZaiJieMianPeiTu count = 0");
            return;
        }
        int num = Random.Range(0, dataList.get_Count());

        if (num >= 0 && num < dataList.get_Count())
        {
            string iconName = GameDataUtils.GetIconName(dataList.get_Item(num).loadingPic);
            if (ResourceManager.IsTextureExist(iconName))
            {
                ResourceManager.SetTexture(this.m_Bg, iconName);
            }
        }
    }
Esempio n. 6
0
 protected void SetIcon(int iconID)
 {
     ResourceManager.SetTexture(this.DarkTrialUIMissionUnitIcon, GameDataUtils.GetIconName(iconID));
 }
Esempio n. 7
0
    public void RefreshUI(FuBenJiChuPeiZhi ic, bool isLock, int instanceIndex, int starNum)
    {
        this.instanceID = ic.id;
        string iconName = GameDataUtils.GetIconName(DataReader <ZhuXianPeiZhi> .Get(this.instanceID).icon);

        ResourceManager.SetSprite(this.ImageIcon1, ResourceManager.GetIconSprite(iconName));
        ResourceManager.SetSprite(this.ImageIcon2, ResourceManager.GetIconSprite(iconName));
        this.Text1.set_text(GameDataUtils.GetChineseContent(505085, false) + (instanceIndex + 1).ToString());
        this.Text2.set_text(GameDataUtils.GetChineseContent(505085, false) + (instanceIndex + 1).ToString());
        if (isLock)
        {
            this.Image1.get_gameObject().SetActive(true);
            this.Image2.get_gameObject().SetActive(false);
            this.Text1.get_gameObject().SetActive(true);
            this.Text2.get_gameObject().SetActive(false);
            this.Stars.get_gameObject().SetActive(false);
            this.ImageQue.get_gameObject().SetActive(true);
            this.ImageIcon1.get_gameObject().SetActive(true);
            this.ImageIcon2.get_gameObject().SetActive(false);
        }
        else
        {
            this.Image1.get_gameObject().SetActive(false);
            this.Image2.get_gameObject().SetActive(true);
            this.Text1.get_gameObject().SetActive(false);
            this.Text2.get_gameObject().SetActive(true);
            if (ic.type == 103)
            {
                this.Stars.get_gameObject().SetActive(false);
            }
            else
            {
                this.Stars.get_gameObject().SetActive(true);
            }
            this.ImageQue.get_gameObject().SetActive(false);
            this.ImageIcon1.get_gameObject().SetActive(false);
            this.ImageIcon2.get_gameObject().SetActive(true);
            if (starNum == 0)
            {
                this.ImageStar1_2.get_gameObject().SetActive(false);
                this.ImageStar2_2.get_gameObject().SetActive(false);
                this.ImageStar3_2.get_gameObject().SetActive(false);
            }
            else if (starNum == 1)
            {
                this.ImageStar1_2.get_gameObject().SetActive(true);
                this.ImageStar2_2.get_gameObject().SetActive(false);
                this.ImageStar3_2.get_gameObject().SetActive(false);
            }
            else if (starNum == 2)
            {
                this.ImageStar1_2.get_gameObject().SetActive(true);
                this.ImageStar2_2.get_gameObject().SetActive(true);
                this.ImageStar3_2.get_gameObject().SetActive(false);
            }
            else if (starNum == 3)
            {
                this.ImageStar1_2.get_gameObject().SetActive(true);
                this.ImageStar2_2.get_gameObject().SetActive(true);
                this.ImageStar3_2.get_gameObject().SetActive(true);
            }
        }
    }