Exemple #1
0
        //初始化怪物卡牌
        public void InitMonsterCard(MonsterTemplate _monster)
        {
            Parent = selfTransform.FindChild("Parent");
            Image Boss_Image = Parent.FindChild("Boss_Image").GetComponent <Image>();

            CardNameText      = Parent.FindChild("Name_txt").GetComponent <Text>();
            _CardLevelText    = Parent.FindChild("Level_txt");
            CardImage         = Parent.FindChild("Icon_Img").GetComponent <Image>();
            CardStar          = _monster.getMonsterstar();
            maxStar           = _monster.getMonstermaxstar();
            CardLevel         = _monster.getMonsterlevel();
            CardName          = GameUtils.getString(_monster.getMonstername());
            CardNameText.text = CardName;//名称
            InterfaceControler.GetInst().AddLevelNum(CardLevel.ToString(), _CardLevelText, url);
            _Artresourcedata = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(_monster.getArtresources());
            Sprite _img = UIResourceMgr.LoadSprite(common.defaultPath + _Artresourcedata.getHeadiconresource());

            CardImage.sprite = _img;//图片

            for (int i = 0; i < 5; i++)
            {
                Image temp = Parent.FindChild("Star_Image").GetChild(i).GetComponent <Image>();
                temp.enabled = i < maxStar;

                temp         = Parent.FindChild("Star_Image").GetChild(i + 5).GetComponent <Image>();
                temp.enabled = i < CardStar;
            }

            Boss_Image.enabled = _monster.getMonstertype() == 2 ? true : false;
        }
Exemple #2
0
        public void onShowSkillName(string name)
        {
            //Debug.Log("Skill name is " + name);
            RectTransform skillTrans = mSkillImage.gameObject.GetComponent <RectTransform>();
            Object        resobj     = UIResourceMgr.LoadSprite(common.defaultPath + name);

            if (resobj != null)
            {
                mSkillImage.overrideSprite = Instantiate(resobj) as Sprite;
            }
            mSkillImage.SetNativeSize();
            mSkillImage.gameObject.SetActive(true);
            mSkillImage.transform.localScale    = new Vector3(1, 0, 1);
            mSkillImage.transform.localPosition = new Vector3(mInitSkillNamePosition.x, mInitSkillNamePosition.y, mInitSkillNamePosition.z);

            Sequence mySequence = DOTween.Sequence();

            mySequence.Append(mSkillImage.transform.DOScaleY(1, 0.5f).SetEase(Ease.OutElastic));
            //mySequence.AppendInterval(0.1f);
            mySequence.Append(mSkillImage.transform.DOScale(new Vector3(1.5f, 0, 0), 0.1f).SetEase(Ease.OutQuad));
            mySequence.AppendCallback(onShowNameEnd);

            float y = mSkillImage.transform.localPosition.y + 10;

            mSkillImage.transform.DOLocalMoveY(y, 0.5f);
        }
Exemple #3
0
        // 3: 选中某个服务器列表项
        private void OnSelectedServer(GameEvent e)
        {
            ServerListConfig config = (ServerListConfig)e.data;

            if (config.GsID != string.Empty)
            {
                ServerListConfig nServerList = ConfigsManager.Inst.GetServerList(config.GsID);
                if (nServerList != null)
                {
                    string[] _str = nServerList.ServerName.Split('#');
                    if (_str.Length >= 2)
                    {
                        serverName.text = "  " + _str[0] + "   " + _str[1];
                        if (config.ServerStatus != 4)
                        {
                            serverStatus.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0208");
                        }
                        else
                        {
                            serverStatus.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0209");
                        }
                    }
                }
            }
            isEmptyServer = false;
        }
Exemple #4
0
        public void ShowRune(ItemTemplate _temp_rune, bool nativeSize = true)
        {
            //符文
            RuneIcon  = selfTransform.FindChild("RuneIconItem").gameObject;
            mNorBg    = selfTransform.FindChild("RuneIconItem/RuneIconList/bg").GetComponent <Image>();
            mSpecBg   = selfTransform.FindChild("RuneIconItem/RuneIconList/bg1").GetComponent <Image>();
            RuneImage = selfTransform.FindChild("RuneIconItem/RuneIconList/icon").GetComponent <Image>();
            this.star = transform.FindChild("star").GetComponent <UIHeroStar>();
            mTypeObjs = new GameObject[4];
            for (int i = 0; i < 4; i++)
            {
                mTypeObjs[i] = transform.FindChild("RuneIconItem/RuneIconList/bg/type" + (i + 1)).gameObject;
            }

            string _tempIconNam_2 = _temp_rune.getIcon();

            RuneImage.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _tempIconNam_2);
            if (nativeSize)
            {
                RuneImage.SetNativeSize();
            }

            bool isSpecial = RuneModule.IsSpecialRune(_temp_rune);

            SetIsSpecial(isSpecial);
            SetRuneType(_temp_rune.getRune_type());

            this.star.gameObject.SetActive(true);
            int star    = _temp_rune.getRune_quality();
            int maxStar = 5;

            this.star.Set(star, maxStar);
        }
Exemple #5
0
        //初始化掉落英雄
        public void InitHero(HeroTemplate _herodata)
        {
            GoodImage = selfTransform.FindChild("Good_Image").GetComponent <Image>();
            GoodName  = selfTransform.FindChild("Good_Name").GetComponent <Text>();
            GoodNums  = selfTransform.FindChild("Good_Nums").GetComponent <Text>();
            Stars     = selfTransform.FindChild("Star_Image").gameObject;
            Stars.SetActive(true);
            GoodName.enabled = true;
            GoodNums.enabled = false;
            ArtresourceTemplate _Artresourcedata = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(_herodata.getArtresources());
            Sprite _img = UIResourceMgr.LoadSprite(common.defaultPath + _Artresourcedata.getHeadiconresource());

            GoodImage.sprite = _img;
            ChsTextTemplate chs = (ChsTextTemplate)DataTemplate.GetInstance().m_ChsTextTable.getTableData(_herodata.getTitleID());

            GoodName.text = chs.languageMap["Chinese"];
            int starNum = _herodata.getQuality();
            int maxStar = _herodata.getMaxQuality();

            //for (int i = 5; i < 5 + starNum; ++i)
            //{
            //    Stars.transform.GetChild(i).GetComponent<Image>().enabled = true;
            //}
            for (int i = 0; i < 5; i++)
            {
                Stars.transform.GetChild(i).GetComponent <Image>().enabled     = i < maxStar;
                Stars.transform.GetChild(i + 5).GetComponent <Image>().enabled = i < starNum;
            }
        }
Exemple #6
0
        //初始化掉落符文和道具(叠加)
        public void InitRunes(ItemTemplate item, int Num)
        {
            mItem     = item;
            GoodImage = selfTransform.FindChild("Good_Image").GetComponent <Image>();
            GoodName  = selfTransform.FindChild("Good_Name").GetComponent <Text>();
            GoodNums  = selfTransform.FindChild("Good_Nums").GetComponent <Text>();
            //mSelfBtn = transform.GetComponent<Button>();
            //mSelfBtn.onClick.AddListener(new UnityEngine.Events.UnityAction(OnClickSelf));
            Stars = selfTransform.FindChild("Star_Image").gameObject;
            Stars.SetActive(false);
            GoodName.enabled = false;
            if (Num == 1)
            {
                GoodNums.enabled = false;
            }
            else
            {
                GoodNums.enabled = true;
                GoodNums.text    = "X" + Num.ToString();
            }
            //Debug.Log(item.getIcon());
            Sprite _img = UIResourceMgr.LoadSprite(common.defaultPath + item.getIcon());

            GoodImage.sprite = _img;
        }
Exemple #7
0
        // 2:初始化UI显示内容
        public override void InitUIView()
        {
            base.InitUIView();


            string ServerID = ConfigsManager.Inst.GetClientConfig(ClientConfigs.ServerID);

            if (ServerID != string.Empty)
            {
                ServerListConfig nServerList = ConfigsManager.Inst.GetServerList(ServerID);
                if (nServerList != null)
                {
                    string[] _str = nServerList.ServerName.Split('#');
                    if (_str.Length >= 2)
                    {
                        serverName.text = "  " + _str[0] + "   " + _str[1];
                        foreach (var listData in serverListData)
                        {
                            if (byte.Parse(ServerID) == byte.Parse(listData.Value.GsID))
                            {
                                if (listData.Value.ServerStatus != 4)
                                {
                                    serverStatus.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0208");
                                }
                                else
                                {
                                    serverStatus.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0209");
                                }
                            }
                        }
                    }
                    isEmptyServer = false;
                }
            }
            else
            {
                serverName.text = GameUtils.getString("login_content1");//"请选择服务器"
                isEmptyServer   = true;
            }

            _comps = transform.GetComponentsInChildren <Component>();
            //全透明 [6/19/2015 Zmy]
            foreach (Component item in _comps)
            {
                if (item is Graphic)
                {
                    Graphic _aphic = item as Graphic;
                    if (_aphic != null)
                    {
                        _aphic.color = new Color(_aphic.color.r, _aphic.color.g, _aphic.color.b, 0f);
                    }
                }
            }

            //ShowAnnounceUI();
        }
Exemple #8
0
 //初始话英雄搭配卡牌信息
 public void InitHeroMatchCardData(HeroTemplate carddata, ObjectCard card)
 {
     CardImage         = this.transform.FindChild("Icon_Img").GetComponent <Image>();
     CardNameText      = this.transform.FindChild("Name_txt").GetComponent <Text>();
     _Herodata         = carddata;
     _Artresourcedata  = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(carddata.getArtresources());
     CardImage.sprite  = UIResourceMgr.LoadSprite(common.defaultPath + _Artresourcedata.getHeadartresource());
     CardName          = GameUtils.getString(_Herodata.getTitleID());
     CardNameText.text = CardName;//名称
 }
Exemple #9
0
 void OnMarital()
 {
     SetSelect(2);
     m_Bt_Noramls[0].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0000");
     m_Bt_Noramls[1].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0011");
     m_Bt_Noramls[2].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0003");
     m_Bt_Noramls[3].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0004");
     UI_ItemsManage._instance.SelectItem(EM_SORT_COMMON_ITEM.EM_SORT_COMMON_ITEM_MATERIAL);
     ResetSize();
 }
Exemple #10
0
 void OnConslum()
 {
     SetSelect(1);
     m_Bt_Noramls[0].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0000");
     m_Bt_Noramls[1].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0010");
     m_Bt_Noramls[2].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0002");
     m_Bt_Noramls[3].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0004");
     UI_ItemsManage._instance.SelectItem(EM_SORT_COMMON_ITEM.EM_SORT_COMMON_ITEM_CONSUME);
     ResetSize();
 }
Exemple #11
0
        //显示基础属性
        private void SetBaseInfo(int lv)
        {
            CardName          = GameUtils.getString(_Herodata.getTitleID());
            CardNameText.text = CardName;//名称
            CardLevel         = lv;
            InterfaceControler.GetInst().AddLevelNum(CardLevel.ToString(), _CardLevelText, url);
            _Artresourcedata = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(HeroObject.GetHeroData().GetHeroViewID());
            CardImage.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _Artresourcedata.getHeadiconresource());

            InterfaceControler.GetInst().AddSharLevel(Parent.FindChild("Star_Image"), _Herodata);
        }
Exemple #12
0
        void OnFragment()
        {
            SetSelect(3);
            m_Bt_Noramls[0].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0000");
            m_Bt_Noramls[1].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0011");
            m_Bt_Noramls[2].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0002");
            m_Bt_Noramls[3].sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_DJBB_0005");

            UI_ItemsManage._instance.SelectItem(EM_SORT_COMMON_ITEM.EM_SORT_COMMON_ITEM_FRAGMENT);
            ResetSize();
        }
Exemple #13
0
        public void InitIcon()
        {
            HeroTemplate ht = (HeroTemplate)DataTemplate.GetInstance().m_HeroTable.getTableData(heroId);

            this.skillId = ht.getSkill1ID();
            mSkillInfo   = (SkillTemplate)DataTemplate.GetInstance().m_SkillTable.getTableData(skillId);

            ArtresourceTemplate at = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(ht.getArtresources());

            mMaxCoolDownTime = mSkillInfo.getCooldown() / 1000.0f;

            GameEventDispatcher.Inst.addEventListener(GameEventID.F_FightStateUpdate, SetSkillStatus);

            // GameObject button = transform.FindChild("Icon").gameObject;
            transform.GetComponent <Button>().onClick.AddListener(new UnityEngine.Events.UnityAction(OnSkillClick));
            //button.AddComponent<Button>().onClick.AddListener(new UnityEngine.Events.UnityAction(OnSkillClick));

            m_HeroIcon        = transform.FindChild("touxiang/Image(heroicon)").gameObject.GetComponent <Image>();
            m_HeroIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + at.getHeadiconresource());
            //hero.SetNativeSize();

            m_SkillIcon        = transform.FindChild("Image(skillicon)").GetComponent <Image>();
            m_SkillIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + mSkillInfo.getSkillIcon());

            //int groupPostion= ObjectSelf.GetInstance().Teams.GetGroupPosByHeroGuid(mHero.GetGuid());
            //if (groupPostion != -1)
            //{
            //    if (groupPostion == 1)
            //    {
            //       m_FormPostion.sprite= UIResourceMgr.LoadSprite(common.defaultPath + "ui_zhenxing_02");
            //    }
            //    else if (groupPostion == 2)
            //    {
            //        m_FormPostion.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "ui_zhenxing_01");
            //    }
            //}
            //iconImg.SetNativeSize();

            //Transform cdObj = iconImg.transform.FindChild("CD");
            //cdIcon = cdObj.GetComponent<Image>();

            //// 设置星级
            //int istart = ht.getQuality();

            //for (int idx = 0; idx < GlobalMembers.HeroMaxStar; idx++)
            //{
            //    mStarTrans.GetChild(idx).gameObject.SetActive(idx<istart);
            //}
            // set skill level
            // 设置英雄等级
            //mLevel.text = (mSkillInfo.getSkillCostNum1()/30).ToString();
            mLevel.text = mHero.GetHeroData().Level.ToString();
        }
Exemple #14
0
 public override void InitUIData()
 {
     base.InitUIData();
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/0"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/1"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/2"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/3"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/4"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/5"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/6"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/7"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/8"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_monster/9"));
 }
Exemple #15
0
 //英雄种族等信息
 private void InitHeroTypes()
 {
     if (_HeroItem.getClientSignType()[0] == 0 && _HeroItem.getClientSignType()[1] == 0)//近战物理
     {
         AttackTypeTipsText.text = GameUtils.getString("hero_info_tip1");
         AttackTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_06");
     }
     if (_HeroItem.getClientSignType()[0] == 0 && _HeroItem.getClientSignType()[1] == 1)//近战法术
     {
         AttackTypeTipsText.text = GameUtils.getString("hero_info_tip3");
         AttackTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_05");
     }
     if (_HeroItem.getClientSignType()[0] == 1 && _HeroItem.getClientSignType()[1] == 0)//远程物理
     {
         AttackTypeTipsText.text = GameUtils.getString("hero_info_tip2");
         AttackTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_04");
     }
     if (_HeroItem.getClientSignType()[0] == 1 && _HeroItem.getClientSignType()[1] == 1)//远程法术
     {
         AttackTypeTipsText.text = GameUtils.getString("hero_info_tip4");
         AttackTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_07");
     }
     if (_HeroItem.getClientSignType()[2] == 0)//肉盾
     {
         JobTypeTipsText.text = GameUtils.getString("hero_info_tip7");
         JobTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_02");
     }
     if (_HeroItem.getClientSignType()[2] == 1)//输出
     {
         JobTypeTipsText.text = GameUtils.getString("hero_info_tip5");
         JobTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_03");
     }
     if (_HeroItem.getClientSignType()[2] == 2)//辅助
     {
         JobTypeTipsText.text = GameUtils.getString("hero_info_tip6");
         JobTypeImg.sprite    = UIResourceMgr.LoadSprite(common.defaultPath + "UI_clientSignType_01");
     }
     if (_HeroItem.getCamp() == 1)//生灵
     {
         RaceTypeImg.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "UI_Zhongzu_01");
     }
     if (_HeroItem.getCamp() == 2)//神抵
     {
         RaceTypeImg.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "UI_Zhongzu_03");
     }
     if (_HeroItem.getCamp() == 3)//恶魔
     {
         RaceTypeImg.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "UI_Zhongzu_02");
     }
 }
Exemple #16
0
 public override void InitUIData()
 {
     base.InitUIData();
     num_flag1 = UIResourceMgr.LoadSprite("UI/Number/hurt_hero/-");
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/0"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/1"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/2"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/3"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/4"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/5"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/6"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/7"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/8"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/hurt_hero/9"));
 }
Exemple #17
0
 public override void InitUIData()
 {
     base.InitUIData();
     num_flag1 = UIResourceMgr.LoadSprite("UI/Number/heal/+");
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/0"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/1"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/2"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/3"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/4"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/5"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/6"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/7"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/8"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heal/9"));
 }
Exemple #18
0
 void SetSelect(int index)
 {
     for (int i = 0; i < m_Buttons.Length; i++)
     {
         if (index == i)
         {
             m_Buttons[i].GetComponent <Image>().sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0013");
         }
         else
         {
             m_Buttons[i].GetComponent <Image>().sprite = UIResourceMgr.LoadSprite(common.defaultPath + "img_TY_0012");
         }
         m_Buttons[i].image.SetNativeSize();
     }
 }
Exemple #19
0
 public override void InitUIData()
 {
     base.InitUIData();
     num_flag1 = UIResourceMgr.LoadSprite("UI/Number/heavy/flag");
     //num_flag1 = UIResourceMgr.LoadSprite("UI/Number/heavy/flag");
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/0"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/1"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/2"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/3"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/4"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/5"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/6"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/7"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/8"));
     mNums.Add(UIResourceMgr.LoadSprite("UI/Number/heavy/9"));
 }
        // 创建bufficon结构
        private void onCreateBuffIcon(BuffTemplate info)
        {
            int        buffid = info.GetID();
            GameObject obj    = new GameObject("BuffIcon");

            obj.transform.SetParent(transform, false);

            UI_BuffIcon icon = obj.AddComponent <UI_BuffIcon>();

            //buff icon路径
            //string filepath = "";// info.m_buffIconBig;
            string filepath = info.getBuffIconSmall();//m_buffIconSmall;

            if (string.IsNullOrEmpty(filepath))
            {
                Debug.LogError("找不到资源:" + info.getDES());
                return;
            }
            filepath = common.defaultPath + filepath;
            //string filepath = common.defaultPath + "Battle_Buff04";
            //LogManager.LogError("Should use table filepath ...");
            if (UIResourceMgr.LoadSprite(filepath) == null)
            {
                return;
            }
            Sprite sprite = Instantiate(UIResourceMgr.LoadSprite(filepath), Vector3.zero, Quaternion.identity) as Sprite;

            icon.onImageInit(sprite);

            BuffIcon buffIcon = new BuffIcon(icon, buffid);

            mBuffList.Add(buffIcon);

            // buff/debuff 排序
            if (info.getConduce() != 0)
            {
                // buff 排在debuff前
                obj.transform.SetSiblingIndex(iDebuffIdx);
                iDebuffIdx++;
            }
            else
            {
                // debuff 排在队尾
                // 所以不处理
            }
        }
Exemple #21
0
            void Awake()
            {
                m2 = transform.FindChild("2").GetComponent <Image>();
                m1 = transform.FindChild("1").GetComponent <Image>();
                m1.gameObject.SetActive(false);
                m2.gameObject.SetActive(false);
                //m2.gameObject.SetActive(false);

                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7011"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7012"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7013"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7014"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7015"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7016"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7017"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7018"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7019"));
                mNums.Add(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7020"));
            }
Exemple #22
0
        //初始化技能信息
        private void InitSkillInfo()
        {
            int Skill1id = CurCard.GetHeroData().SpellDataList[0].SpellID;

            Gskilltemp = (SkillTemplate)DataTemplate.GetInstance().m_SkillTable.getTableData(Skill1id);
            Sprite _img1 = UIResourceMgr.LoadSprite(common.defaultPath + Gskilltemp.getSkillIcon());

            Skill1Image.sprite = _img1;
            Skill1Lv.text      = Gskilltemp.getSkillLevel().ToString();

            int Skill2id = CurCard.GetHeroData().SpellDataList[1].SpellID;

            Pskilltemp = (SkillTemplate)DataTemplate.GetInstance().m_SkillTable.getTableData(Skill2id);
            Sprite _img2 = UIResourceMgr.LoadSprite(common.defaultPath + Pskilltemp.getSkillIcon());

            Skill2Image.sprite = _img2;
            Skill2Lv.text      = Pskilltemp.getSkillLevel().ToString();

            //int Skill3id = CurCard.GetHeroData().SpellDataList[2].SpellID;
            //Askilltemp = (SkillTemplate)DataTemplate.GetInstance().m_SkillTable.m_Data[Skill3id];
            //Sprite _img3 = UIResourceMgr.LoadSprite(common.defaultPath + Askilltemp.getSkillIcon());
            //Skill3Image.sprite = _img3;
            //Skill3Lv.text = Askilltemp.getSkillLevel().ToString();

            //判断技能是否开启
            if (!InterfaceControler.GetInst().IsOpenSkill(CurCard.GetHeroRow(), Gskilltemp.getSkillNo()))
            {
                GameUtils.SetImageGrayState(Skill1Image, true);
            }
            else
            {
                GameUtils.SetImageGrayState(Skill1Image, false);
            }
            if (!InterfaceControler.GetInst().IsOpenSkill(CurCard.GetHeroRow(), Pskilltemp.getSkillNo()))
            {
                GameUtils.SetImageGrayState(Skill2Image, true);
            }
            else
            {
                GameUtils.SetImageGrayState(Skill2Image, false);
            }
        }
Exemple #23
0
        //显示战斗掉落物品
        public void InitFightAreaGoodItem(string name, int num)
        {
            GoodImage  = selfTransform.FindChild("Good_Image").GetComponent <Image>();
            Bg_Image   = selfTransform.FindChild("BG_Image").gameObject;
            Num        = selfTransform.FindChild("BG_Image/Num").GetComponent <Text>();
            Rand_Image = selfTransform.FindChild("Rand_Image").gameObject;
            Sprite _img = UIResourceMgr.LoadSprite(common.defaultPath + name);

            GoodImage.sprite = _img;
            if (num > 0)
            {
                Rand_Image.SetActive(false);
                Bg_Image.SetActive(true);
                Num.text = "x" + num.ToString();
            }
            else
            {
                Rand_Image.SetActive(true);
                Bg_Image.SetActive(false);
            }
        }
Exemple #24
0
        //显示所在队伍图片
        private void SetFormationNum()
        {
            ClearFormNum();
            List <int> NumList = new List <int>();

            for (int k = 0; k < GlobalMembers.MAX_MATRIX_COUNT; ++k)
            {
                for (int j = 0; j < GlobalMembers.MAX_TEAM_CELL_COUNT; ++j)
                {
                    ObjectCard temp = ObjectSelf.GetInstance().HeroContainerBag.FindHero(ObjectSelf.GetInstance().Teams.m_Matrix[k, j]);
                    if (temp == null)
                    {
                        continue;
                    }
                    if (HeroObject.GetHeroData().GUID == temp.GetHeroData().GUID)
                    {
                        NumList.Add(k + 1);
                    }
                }
            }
            int count = NumList.Count;

            for (int i = 0; i < count - 1; i++)
            {
                for (int p = 0; p < count - 1 - i; p++)
                {
                    if (NumList[p] > NumList[p + 1])
                    {
                        int a = NumList[p];
                        NumList[p]     = NumList[p + 1];
                        NumList[p + 1] = a;
                    }
                }
            }
            for (int o = 0; o < count; ++o)
            {
                FormationImageList[o].enabled = true;
                FormationImageList[o].sprite  = UIResourceMgr.LoadSprite("UI/Number/formation_num/" + NumList[o].ToString());//图片
            }
        }
Exemple #25
0
        //初始化战斗结束卡牌
        public void InitFightEnd(ObjectCard heroObject)
        {
            HeroObject = heroObject;
            _Herodata  = heroObject.GetHeroRow();
            Parent     = selfTransform.FindChild("Parent");
            int _ArtresourcedataID = HeroObject.GetHeroData().GetHeroViewID();

            CardImage      = Parent.FindChild("Icon_Img").GetComponent <Image>();
            CardNameText   = Parent.FindChild("Name_txt").GetComponent <Text>();
            _CardLevelText = Parent.FindChild("Level_txt");
            HeroEx         = Parent.FindChild("HeroExbar").GetComponent <Slider>();
            //HeroEx.value = heroObject.GetHeroData().Exp;
            CardName          = GameUtils.getString(_Herodata.getTitleID());
            CardNameText.text = CardName;//名称
            CardLevel         = heroObject.GetHeroData().Level;
            InterfaceControler.GetInst().AddLevelNum(CardLevel.ToString(), _CardLevelText, url);
            _Artresourcedata = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(HeroObject.GetHeroData().GetHeroViewID());
            CardImage.sprite = UIResourceMgr.LoadSprite(common.defaultPath + _Artresourcedata.getHeadartresource());

            InterfaceControler.GetInst().AddSharLevel(Parent.FindChild("Star_Image"), _Herodata);
            //SetBaseInfo(heroObject.GetHeroData().Level);
        }
Exemple #26
0
        Sprite GetImage(int value)
        {
            switch (value)
            {
            case 0:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7001"));

            case 1:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7002"));

            case 2:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7003"));

            case 3:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7004"));

            case 4:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7005"));

            case 5:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7006"));

            case 6:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7007"));

            case 7:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7008"));

            case 8:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7009"));

            case 9:
                return(UIResourceMgr.LoadSprite("UI/Number/battle_number/img_7010"));

            default:
                return(null);
            }
        }
Exemple #27
0
            public RoundNumber init(int type)
            {
                this.type = type;
                switch (type)
                {
                case 0:
                {
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_00"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_01"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_02"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_03"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_04"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_05"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_06"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_07"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_08"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_09"));
                }
                break;

                case 1:
                {
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_0"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_1"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_2"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_3"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_4"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_5"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_6"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_7"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_8"));
                    mNums.Add(UIResourceMgr.LoadSprite("UI/Number/round_number/Battle_9"));
                }
                break;
                }
                return(this);
            }
Exemple #28
0
        public void SetGoodsItem(int iStageId)
        {
            for (int i = 0; i < objList.Count; i++)
            {
                Destroy(objList[i]);
            }
            objList.Clear();
            int count = mGoodsItemGroup.childCount;

            for (int i = 0; i < count; ++i)
            {
                Destroy(mGoodsItemGroup.GetChild(i).gameObject);
            }
            iStageID = iStageId;
            //StageTemplate stageinfo = (StageTemplate)DataTemplate.GetInstance().m_StageTable.getTableData(iStageID);
            StageTemplate stageinfo = StageModule.GetStageTemplateById(iStageID);
            ////if (list.ContainsKey(iStageId))
            //{
            //    //StageTemplate stageinfo = (StageTemplate)list[iStageID];
            //    if (stageinfo != null)
            //    {
            //        Dictionary<string, int> temp = stageinfo.getDisplaydrop();
            //        foreach (var info in temp)
            //        {
            //            GameObject gooditem = Instantiate(Resources.Load("UI/Prefabs/UI_Fight/UI_LGoodItem")) as GameObject;
            //            gooditem.transform.SetParent(mGoodsItemGroup, false);
            //            gooditem.AddComponent<UI_GoodItem>().InitFightAreaGoodItem(info.Key, info.Value);
            //        }
            //    }
            //}
            string displaydrop = stageinfo.m_displaydrop;

            if (displaydrop == "-1" || string.IsNullOrEmpty(displaydrop))
            {
            }
            else
            {
                string[] displaydropList = displaydrop.Split('#');
                if (displaydropList.Length == 0)
                {
                    return;
                }

                for (int i = 0; i < displaydropList.Length; i++)
                {
                    string[] itemList = displaydropList[i].Split('-');
                    switch (int.Parse(itemList[0]))
                    {
                    case 1:
                        int inner  = int.Parse(itemList[1]);
                        int itemid = inner / 1000000;
                        switch (itemid)
                        {
                        case (int)EM_OBJECT_CLASS.EM_OBJECT_CLASS_RUNE:
                        {
                            GameObject item = Instantiate(Resources.Load("UI/Prefabs/UI_Fight/UI_LGoodRune"), transform.position, transform.rotation) as GameObject;
                            item.transform.SetParent(mGoodsItemGroup, false);
                            //item.transform.parent = mGoodsItemGroup;
                            //item.transform.localScale = Vector3.one;
                            //ItemTemplate itemTable = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(inner);
                            ItemTemplate           itemTable = DataTemplate.GetInstance().GetItemTemplateById(inner);
                            UI_DropFightItemManage uifigt    = item.GetComponent <UI_DropFightItemManage>();
                            uifigt.typeNum      = 1;
                            uifigt.id           = inner;
                            uifigt.mIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + itemTable.getIcon());
                            uifigt.mIcon.SetNativeSize();
                            if (int.Parse(itemList[2]) == 0)
                            {
                                uifigt.mProbability.SetActive(true);
                                uifigt.mNumObj.SetActive(false);
                            }
                            else
                            {
                                uifigt.mProbability.SetActive(false);
                                uifigt.mNumObj.SetActive(true);
                                uifigt.mNum.text = "x" + itemList[3];
                            }

                            objList.Add(item);
                        }
                        break;

                        case (int)EM_OBJECT_CLASS.EM_OBJECT_CLASS_COMMON:
                        {
                            GameObject item = Instantiate(Resources.Load("UI/Prefabs/UI_Fight/UI_LGoodItem"), transform.position, transform.rotation) as GameObject;
                            item.transform.SetParent(mGoodsItemGroup, false);
                            //item.transform.parent = mGoodsItemGroup;
                            //item.transform.localScale = Vector3.one;
                            //ItemTemplate itemTable = (ItemTemplate)DataTemplate.GetInstance().m_ItemTable.getTableData(inner);
                            ItemTemplate           itemTable = DataTemplate.GetInstance().GetItemTemplateById(inner);
                            UI_DropFightItemManage uifigt    = item.GetComponent <UI_DropFightItemManage>();
                            uifigt.id           = inner;
                            uifigt.typeNum      = 2;
                            uifigt.mIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + itemTable.getIcon());
                            uifigt.mIcon.SetNativeSize();
                            if (int.Parse(itemList[2]) == 0)
                            {
                                uifigt.mProbability.SetActive(true);
                                uifigt.mNumObj.SetActive(false);
                            }
                            else
                            {
                                uifigt.mProbability.SetActive(false);
                                uifigt.mNumObj.SetActive(true);
                                uifigt.mNum.text = "x" + itemList[3];
                            }
                            objList.Add(item);
                        }
                        break;

                        case (int)EM_OBJECT_CLASS.EM_OBJECT_CLASS_HERO:
                        {
                            GameObject item = Instantiate(Resources.Load("UI/Prefabs/UI_Fight/UI_LGoodHero"), transform.position, transform.rotation) as GameObject;
                            item.transform.SetParent(mGoodsItemGroup, false);
                            //item.transform.parent = mGoodsItemGroup;
                            //item.transform.localScale = Vector3.one;
                            //HeroTemplate hero = (HeroTemplate)DataTemplate.GetInstance().m_HeroTable.getTableData(inner);
                            HeroTemplate           hero   = DataTemplate.GetInstance().GetHeroTemplateById(inner);
                            UI_DropFightItemManage uihero = item.GetComponent <UI_DropFightItemManage>();
                            uihero.id      = inner;
                            uihero.typeNum = 3;
                            //ArtresourceTemplate art = (ArtresourceTemplate)DataTemplate.GetInstance().m_ArtresourceTable.getTableData(hero.getArtresources());
                            ArtresourceTemplate art = DataTemplate.GetInstance().GetArtResourceTemplate(hero.getArtresources());
                            uihero.mIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + art.getHeadiconresource());
                            uihero.mIcon.SetNativeSize();
                            int star    = hero.getQuality();
                            int maxStar = hero.getMaxQuality();

                            for (int j = 0; j < 5; j++)
                            {
                                uihero.starList[j].SetActive(j < star);
                                uihero.starList[j + 5].SetActive(j < maxStar);
                            }
                            //for (int j = 0; j < star; j++)
                            //{
                            //    uihero.starList[j].SetActive(true);
                            //}
                            //for (int k = star; k < 5; k++)
                            //{
                            //    uihero.starList[k].SetActive(false);
                            //}
                            if (int.Parse(itemList[2]) == 0)
                            {
                                uihero.mProbability.SetActive(true);
                            }
                            else
                            {
                                uihero.mProbability.SetActive(false);
                            }
                            objList.Add(item);
                        }
                        break;

                        default:
                            break;
                        }
                        break;

                    case 2:
                        GameObject items = Instantiate(Resources.Load("UI/Prefabs/UI_Fight/UI_LGoodItem"), transform.position, transform.rotation) as GameObject;
                        items.transform.SetParent(mGoodsItemGroup, false);
                        //items.transform.parent = mGoodsItemGroup;
                        //items.transform.localScale = Vector3.one;
                        UI_DropFightItemManage uiitems = items.GetComponent <UI_DropFightItemManage>();
                        uiitems.id           = 2;
                        uiitems.mIcon.sprite = UIResourceMgr.LoadSprite(common.defaultPath + itemList[1]);
                        uiitems.mIcon.SetNativeSize();
                        if (int.Parse(itemList[2]) == 0)
                        {
                            uiitems.mProbability.SetActive(true);
                            uiitems.mNumObj.SetActive(false);
                        }
                        else
                        {
                            uiitems.mProbability.SetActive(false);
                            uiitems.mNumObj.SetActive(true);
                            uiitems.mNum.text = "x" + itemList[3];
                        }
                        if (itemList[3] == "0")
                        {
                            uiitems.mTipsText = null;
                        }
                        else
                        {
                            uiitems.mTipsText = itemList[3];
                        }
                        objList.Add(items);

                        break;

                    default:
                        break;
                    }
                }
            }
        }
 /// <summary>
 /// 设置左侧按钮图片为整体不分割 并且字体居中
 /// </summary>
 public void SetLeftYesMid()
 {
     Left_Btn_Img.sprite = UIResourceMgr.LoadSprite(common.defaultPath + "UI_xuanze");
     LeftBtn_text.gameObject.SetActive(false);
     LeftBtn_Midtext.gameObject.SetActive(true);
 }
Exemple #30
0
        public override void InitUIData()
        {
            Inst              = this;
            m_Mask            = selfTransform.FindChild("Mask").gameObject;
            m_LimitFightUIObj = selfTransform.FindChild("UI_LimitFight").gameObject;
            m_bg              = selfTransform.FindChild("Image(bottombg)");
            m_TopRight        = selfTransform.FindChild("topright");
            m_Bottom          = selfTransform.FindChild("bottom");
            // 按钮
            speedBtn = selfTransform.FindChild("Button(speed)").GetComponent <Button>();
            speedBtn.onClick.AddListener(onSpeedCall);

            m_PauseBtn = selfTransform.FindChild("Button(pause)").GetComponent <Button>();
            m_PauseBtn.onClick.AddListener(onPauseCall);
            m_EscBtn = selfTransform.FindChild("EscBtn").GetComponent <Button>();
            m_EscBtn.onClick.AddListener(OnClickEscButton);
            autoBtn = selfTransform.FindChild("Button(autoFight)").GetComponent <Button>();
            autoBtn.onClick.AddListener(OnClickSkillIcon);

            // 技能页
            mSkillPanel   = selfTransform.FindChild("bottom/SkillPanel").GetComponent <UI_SkillPanel>();
            m_Speed       = speedBtn.transform.FindChild("Text").GetComponent <Text>();
            m_Auto_Effect = autoBtn.transform.FindChild("effect/auto");
            m_Auto_Button = autoBtn.transform.FindChild("Image(auto)");
            m_Hand_Effect = autoBtn.transform.FindChild("effect/shoudong");
            m_Hand_Button = autoBtn.transform.FindChild("Image(shoudong)");
            // 战场信息
            Transform infoTrans = selfTransform.FindChild("TopPanel");

            //timeTransfrom = infoTrans.FindChild("time");
            //mHundred = infoTrans.FindChild("time/3").GetComponent<Image>();
            //mTow = infoTrans.FindChild("time/2").GetComponent<Image>();
            //mOne = infoTrans.FindChild("time/1").GetComponent<Image>();
            m_TimeLimit     = transform.FindChild("topright/Text(timelimit)").GetComponent <Text>();
            m_TimeTransform = transform.FindChild("topright/Text(timelimit)");
            mLevelName      = infoTrans.FindChild("LevelName").GetComponent <Text>();
            //mInfiniteTime = infoTrans.FindChild("Infinite").gameObject;
            mStageName = transform.FindChild("topright/levelname").GetComponent <Text>();
            mSPControl = selfTransform.FindChild("SP").GetComponent <UI_SPControl>();
            //mCurRound = selfTransform.FindChild("RoundTag/curRound").gameObject.AddComponent<RoundNumber>().init(1);
            //mTotalRound = selfTransform.FindChild("RoundTag/totalRound").gameObject.AddComponent<RoundNumber>().init(0);
            m_TotalRound[0] = transform.FindChild("topright/wave_1");
            m_TotalRound[1] = transform.FindChild("topright/wave_2");
            m_TotalRound[2] = transform.FindChild("topright/wave_3");
            m_CurRound[0]   = transform.FindChild("topright/process/1");
            m_CurRound[1]   = transform.FindChild("topright/process/2");
            m_CurRound[2]   = transform.FindChild("topright/process/3");
            m_AngerImager   = transform.FindChild("bottom/nuqivalue").GetComponent <Image>();
            m_AngerImager.gameObject.SetActive(false);
            // buff
            mSelfBuff  = infoTrans.FindChild("SelfBuffer").gameObject.AddComponent <UI_BuffAllControl>();
            mEnemyBuff = infoTrans.FindChild("EnemyBuffer").gameObject.AddComponent <UI_BuffAllControl>();

            // 怒气
            mSelfAnger = transform.FindChild("bottom/nuqi").gameObject.AddComponent <AngerNumber>();
            //mEnemyAnger = infoTrans.FindChild("right/value").gameObject.AddComponent<AngerNumber>();
            //技能图标
            m_Skill1 = transform.FindChild("bottom/SkillPanel/skill_1");
            m_Skill2 = transform.FindChild("bottom/SkillPanel/skill_2");
            m_Skill3 = transform.FindChild("bottom/SkillPanel/skill_3");
            m_Skill4 = transform.FindChild("bottom/SkillPanel/skill_4");
            m_Skill5 = transform.FindChild("bottom/SkillPanel/skill_5");
            m_Skill1.gameObject.SetActive(false);
            m_Skill2.gameObject.SetActive(false);
            m_Skill3.gameObject.SetActive(false);
            m_Skill4.gameObject.SetActive(false);
            m_Skill5.gameObject.SetActive(false);
            m_SkillArys[0] = m_Skill1;
            m_SkillArys[1] = m_Skill2;
            m_SkillArys[2] = m_Skill3;
            m_SkillArys[3] = m_Skill4;
            m_SkillArys[4] = m_Skill5;
            // 战场倒计时图片资源
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/0"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/1"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/2"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/3"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/4"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/5"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/6"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/7"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/8"));
            mNumberSprite.Add(UIResourceMgr.LoadSprite("UI/Number/fight_time/9"));
            // SetInitObjectIsShow(false);
            //是否极限试炼
            if (ObjectSelf.GetInstance().LimitFightMgr.m_bStartEnter)
            {
                m_LimitFightUIObj.SetActive(true);
                SetStageNameActive(false);
            }

            if (int.Parse(ConfigsManager.Inst.GetClientConfig(ClientConfigs.BattleMode)) == 0)//自动 yao 15-6-29
            {
                isAuto = true;
            }
            else
            {
                isAuto = false;//手动模式
            }
            //isAuto = false;
            // 添加更新事件
            GameEventDispatcher.Inst.addEventListener(GameEventID.F_Anger_Update, onAngerUpdate);
            GameEventDispatcher.Inst.addEventListener(GameEventID.SE_PrepareEnemy, onRoundUpdateCall);
            GameEventDispatcher.Inst.addEventListener(GameEventID.F_LimitBoutEnd, ShowLimitFightRoundNum);

            GameEventDispatcher.Inst.addEventListener(GameEventID.G_Guide_Stop_Type, StopNextGuide);
            GameEventDispatcher.Inst.addEventListener(GameEventID.G_Guide_Fighting, GuideFinghting);
            GameEventDispatcher.Inst.addEventListener(GameEventID.G_Guide_Continue, GuideContinue);


            //////////////////////////////////////////////////////////////////////////
            if (GuideManager.GetInstance().IsContentGuideID(100306) == false)
            {
                //m_IsGuide = true;
            }
            else
            {
                m_IsGuide = false;
            }
        }