コード例 #1
0
        public void SetUI(FinalGameEndItemVo itemData)
        {
            //string owerFlag = (itemData.getIsMain ()) ? "(房主)" : "";
            if (itemData.GetIsMain())
            {
                mainImgFlag.SetActive(true);
            }
            else
            {
                mainImgFlag.SetActive(false);
            }

            nickName.text = itemData.GetNickname();
            ID.text       = "ID:" + itemData.uuid + "";
            if (itemData.GetIsWiner() && itemData.scores > 0)
            {
                winer.SetActive(true);
            }

            if (itemData.GetIsPaoshou() && itemData.dianpao > 0)
            {
                paoshou.SetActive(true);
            }

            zimoCount.text     = itemData.zimo + "";
            jiepaoCount.text   = itemData.jiepao + "";
            dianpaoCount.text  = itemData.dianpao + "";
            angangCount.text   = itemData.angang + "";
            minggangCount.text = itemData.minggang + "";
            finalScore.text    = itemData.scores + "";
            headIcon           = itemData.GetIcon();
            StartCoroutine(LoadImg());
        }
コード例 #2
0
        public void setUI(FinalGameEndItemVo itemData)
        {
            if (itemData.getIsMain())
            {
                mainImgFlag.SetActive(true);
            }
            else
            {
                mainImgFlag.SetActive(false);
            }
            nickName.text = itemData.getNickname();
            ID.text       = "ID:" + itemData.uuid.ToString();
            if (itemData.getIsWiner() && itemData.scores > 0)
            {
                winer.SetActive(true);
            }
            if (itemData.getIsPaoshou() && itemData.dianpao > 0)
            {
                paoshou.SetActive(true);
            }

            zimoCount.text     = itemData.zimo.ToString();
            jiepaoCount.text   = itemData.jiepao.ToString();
            dianpaoCount.text  = itemData.dianpao.ToString();
            angangCount.text   = itemData.angang.ToString();
            minggangCount.text = itemData.minggang.ToString();
            finalScore.text    = itemData.scores.ToString();
            headIcon           = itemData.getIcon();
            StartCoroutine(LoadImg());
        }
コード例 #3
0
ファイル: finalOverItem.cs プロジェクト: YLancer/DN
        public void setUI_pdk_final(FinalGameEndItemVo itemData)
        {
            if (itemData.getIsMain())
            {
                fangzhu.gameObject.SetActive(true);
            }
            else
            {
                fangzhu.gameObject.SetActive(false);
            }
            MyDebug.Log("--setUI--------------------Panel_Final_Item-------显示----------------");
            nickName.text = itemData.getNickname();
            ID.text       = "ID:" + itemData.uuid + "";
            if (itemData.getIsWiner() && itemData.scores > 0)
            {
                winer.SetActive(true);
            }


            highScoreText.text   = itemData.highScore.ToString();
            zhadanTimesText.text = itemData.zhadan.ToString();
            shengfuText.text     = itemData.shengju.ToString() + "胜" + itemData.fuju.ToString() + "负";
            finalScore.text      = itemData.scores + "";
            headIcon             = itemData.getIcon();
            StartCoroutine(LoadImg());
        }
コード例 #4
0
ファイル: finalOverItem.cs プロジェクト: sangjiexun/client
        public void setUI(FinalGameEndItemVo itemData)
        {
            MyDebug.Log("--setUI--------------------Panel_Final_Item--------进入-----------------");


            if (itemData.getIsMain())
            {
                fangzhu.gameObject.SetActive(true);
            }
            else
            {
                fangzhu.gameObject.SetActive(false);
            }
            MyDebug.Log("--setUI--------------------Panel_Final_Item-------显示----------------");
            nickName.text = itemData.getNickname();
            ID.text       = "ID:" + itemData.uuid + "";
            if (itemData.getIsWiner() && itemData.scores > 0)
            {
                winer.SetActive(true);
            }
            if (itemData.getIsPaoshou() && itemData.dianpao > 0)
            {
                paoshou.SetActive(true);
            }

            zimoCount.text     = itemData.zimo + "";
            jiepaoCount.text   = itemData.jiepao + "";
            dianpaoCount.text  = itemData.dianpao + "";
            angangCount.text   = itemData.angang + "";
            minggangCount.text = itemData.minggang + "";
            finalScore.text    = itemData.scores + "";
            headIcon           = itemData.getIcon();
            StartCoroutine(LoadImg());
            MyDebug.Log("--setUI--------------------Panel_Final_Item-------赋值完毕----------------");
        }
コード例 #5
0
        public void setUI(FinalGameEndItemVo itemData)
        {
            string owerFlag = (itemData.getIsMain()) ? "(房主)" : "";

            if (itemData.getIsMain())
            {
                mainImgFlag.SetActive(true);
            }
            else
            {
                mainImgFlag.SetActive(false);
            }
            nickName.text = itemData.getNickname();
            ID.text       = "ID:" + itemData.uuid + "";
            if (itemData.getIsWiner() && itemData.scores > 0)
            {
                winer.SetActive(true);
            }
            if (itemData.getIsPaoshou() && itemData.dianpao > 0)
            {
                //paoshou.SetActive (true);
            }

            zimoCount.text     = itemData.zimo + "";
            jiepaoCount.text   = itemData.jiepao + "";
            dianpaoCount.text  = itemData.dianpao + "";
            angangCount.text   = itemData.angang + "";
            minggangCount.text = itemData.minggang + "";
            finalScore.text    = itemData.scores + "";
            headIcon           = itemData.getIcon();
            Sprite tempSp;

            if (string.IsNullOrEmpty(headIcon) == false)
            {
                if (GlobalDataScript.imageMap.TryGetValue(headIcon, out tempSp))
                {
                    icon.sprite = tempSp;
                }
                else
                {
                    StartCoroutine(LoadImg());
                }
            }
        }