コード例 #1
0
ファイル: RankingView.cs プロジェクト: isoundy000/wzry-1
        public static void RefreshRankArena()
        {
            if ((Singleton <CArenaSystem> .instance.m_rankInfoList != null) && (Singleton <CArenaSystem> .instance.m_fightHeroInfoList != null))
            {
                CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(RankingSystem.s_rankingForm);

                if (form != null)
                {
                    GameObject widget = form.GetWidget(0x11);
                    if (widget != null)
                    {
                        CUIListScript component = widget.GetComponent <CUIListScript>();
                        component.SetElementAmount(Singleton <CArenaSystem> .instance.m_rankInfoList.bFigterNum);
                        component.MoveElementInScrollArea(0, true);
                    }
                }
            }
        }
コード例 #2
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
        }
        else
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CBattleSystem.s_battleUIForm);

            if (form != null)
            {
                GameObject widget = form.GetWidget(6);
                base.AddHighLightGameObject(widget, true, form, true, new GameObject[0]);
                base.Initialize();
            }
        }
    }
コード例 #3
0
        private void UpdateNobeHeadIdx()
        {
            int dwHeadIconId = (int)MonoSingleton <NobeSys> .GetInstance().m_vipInfo.stGameVipClient.dwHeadIconId;

            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FORM_PATH);

            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (((form != null) && form.gameObject.activeSelf) && (masterRoleInfo != null))
            {
                Image component = form.GetWidget(3).GetComponent <Image>();
                if (component != null)
                {
                    MonoSingleton <NobeSys> .GetInstance().SetHeadIconBk(component, dwHeadIconId);
                }
                this.RefreshRankList();
            }
        }
コード例 #4
0
ファイル: CInviteView.cs プロジェクト: wujiangu/wanshiwu0.1
        public static void SetInviteGuildMemberData(CUIFormScript form, COM_INVITE_JOIN_TYPE joinType)
        {
            ListView <GuildMemInfo> allGuildMemberList = Singleton <CInviteSystem> .GetInstance().GetAllGuildMemberList();

            int count = allGuildMemberList.Count;
            int num2  = 0;

            RefreshInviteGuildMemberList(form, count);
            for (int i = 0; i < count; i++)
            {
                if (CGuildHelper.IsMemberOnline(allGuildMemberList[i]))
                {
                    num2++;
                }
            }
            string[] args = new string[] { num2.ToString(), count.ToString() };
            form.GetWidget(6).GetComponent <Text>().text = Singleton <CTextManager> .GetInstance().GetText("Common_Online_Member", args);
        }
コード例 #5
0
        public void RecordErrorLog(string errorLog)
        {
            if (!this.IsDisplayErrorLog())
            {
                return;
            }
            this.m_errorLog += errorLog;
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CCheatSystem.s_cheatErrorLogFormPath, false, false);

            if (cUIFormScript != null)
            {
                Text component = cUIFormScript.GetWidget(1).GetComponent <Text>();
                if (component != null)
                {
                    component.text = this.m_errorLog;
                }
            }
        }
コード例 #6
0
        private void OnSharePVPDefeatAddBarrage(CUIEvent uiEvent)
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(PvpAchievementForm.s_formSharePVPDefeatPath);

            if (form == null)
            {
                return;
            }
            GameObject widget = form.GetWidget(1);

            if (widget != null && !widget.activeSelf)
            {
                widget.CustomSetActive(true);
            }
            GameObject gameObject = Utility.FindChild(widget, "BarrageList");

            if (gameObject == null)
            {
                return;
            }
            CUIListScript component = gameObject.GetComponent <CUIListScript>();

            if (component == null)
            {
                return;
            }
            component.SetElementAmount(this.barrageList.Count);
            component.MoveElementInScrollArea(0, true);
            for (int i = 0; i < this.barrageList.Count; i++)
            {
                if (component.GetElemenet(i) != null && component.IsElementInScrollArea(i))
                {
                    this.UpdateOneBarrageElement(component.GetElemenet(i).gameObject, i, false);
                }
            }
            if (component.GetSelectedIndex() == -1)
            {
                component.SelectElement(0, true);
            }
            if (!gameObject.activeSelf)
            {
                gameObject.CustomSetActive(true);
            }
        }
コード例 #7
0
        private void RefreshAcntInfo()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(UNION_RANK_PATH);

            if (form != null)
            {
                CSDT_RANKING_LIST_ITEM_INFO actRankInfo = this.GetActRankInfo(this.m_CurSelRankType);
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                GameObject        widget    = form.GetWidget(1);
                RankingItemHelper component = widget.GetComponent <RankingItemHelper>();
                uint rankNumber             = 0;
                if ((actRankInfo != null) && (masterRoleInfo != null))
                {
                    widget.CustomSetActive(true);
                    string name  = masterRoleInfo.Name;
                    uint   level = masterRoleInfo.Level;
                    rankNumber = actRankInfo.dwRankNo;
                    uint dwPerfectCnt = 0;
                    if (rankNumber == 0)
                    {
                        dwPerfectCnt = CUnionBattleEntrySystem.GetRewardMatchStateByMapId(this.m_CurSelMapId).dwPerfectCnt;
                    }
                    else
                    {
                        dwPerfectCnt = actRankInfo.dwRankScore;
                    }
                    widget.transform.FindChild("Value").gameObject.CustomSetActive(true);
                    widget.transform.FindChild("ValueType").gameObject.CustomSetActive(true);
                    SetGameObjChildText(widget, "Value", dwPerfectCnt.ToString(CultureInfo.InvariantCulture));
                    SetGameObjChildText(widget, "NameGroup/PlayerName", masterRoleInfo.Name);
                    SetGameObjChildText(widget, "PlayerLv", string.Format("Lv.{0}", level.ToString(CultureInfo.InvariantCulture)));
                }
                RankNobSet(rankNumber, component);
                MonoSingleton <NobeSys> .GetInstance().SetMyQQVipHead(component.QqVip.GetComponent <Image>());

                CUICommonSystem.SetHostHeadItemCell(widget.transform.FindChild("HeadItemCell").gameObject);
                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.WxIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Wechat, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.QqIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.QQ, true, false);

                MonoSingleton <NobeSys> .GetInstance().SetGameCenterVisible(component.GuestIcon, Singleton <CRoleInfoManager> .instance.GetMasterRoleInfo().m_privilegeType, ApolloPlatform.Guest, true, false);
            }
        }
コード例 #8
0
ファイル: RankingView.cs プロジェクト: TonyDongGuaPi/joework
        public static void InitRankGodDetailTab()
        {
            CUIFormScript form = Singleton <CUIManager> .get_instance().GetForm(RankingSystem.s_rankingGodDetailForm);

            if (form == null)
            {
                return;
            }
            GameObject gameObject = Utility.FindChild(form.GetWidget(0), "TitleTab");

            string[] titleList = new string[]
            {
                Singleton <CTextManager> .get_instance().GetText("Ranking_God_Tips_3"),
                Singleton <CTextManager> .get_instance().GetText("Ranking_God_Tips_4")
            };
            CUIListScript componetInChild = Utility.GetComponetInChild <CUIListScript>(gameObject, "TitleTab");

            CUICommonSystem.InitMenuPanel(gameObject, titleList, 0, true);
        }
コード例 #9
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
        }
        else
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FightForm.s_battleUIForm);

            if (form != null)
            {
                GameObject gameObject = form.GetWidget(0x2d).transform.FindChild("EquipBtn").gameObject;
                DebugHelper.Assert(gameObject != null, "Can't find EquipBtn~!!");
                base.AddHighLightGameObject(gameObject, true, form, true);
                base.Initialize();
            }
        }
    }
コード例 #10
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
            return;
        }
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CBattleEquipSystem.s_equipFormPath);

        if (form == null)
        {
            return;
        }
        GameObject gameObject = form.GetWidget(6).transform.FindChild("buyBtn").gameObject;

        DebugHelper.Assert(gameObject != null, "Can't find buybtn~!!");
        base.AddHighLightGameObject(gameObject, true, form, true);
        base.Initialize();
    }
コード例 #11
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
        }
        else
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CBattleEquipSystem.s_equipFormPath);

            if (form != null)
            {
                GameObject gameObject = form.GetWidget(1).transform.FindChild("equipItem0").gameObject;
                DebugHelper.Assert(gameObject != null, "Can't find equipItem0~!!");
                base.AddHighLightGameObject(gameObject, true, form, true, new GameObject[0]);
                base.Initialize();
            }
        }
    }
コード例 #12
0
        private void OnHeroOwnFlagChange(CUIEvent uiEvent)
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CHeroOverviewSystem.s_heroViewFormPath);

            if (form == null)
            {
                return;
            }
            GameObject widget = form.GetWidget(3);

            if (widget != null)
            {
                this.m_ownFlag = widget.GetComponent <Toggle>().isOn;
                PlayerPrefs.SetInt("Hero_Overview_Hero_Own_Flag_Key", (!this.m_ownFlag) ? 0 : 1);
                PlayerPrefs.Save();
            }
            this.RefreshHeroOwnFlag();
            this.ResetHeroListData(true);
        }
コード例 #13
0
        private void OnHeroOwnFlagChange(CUIEvent uiEvent)
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(Singleton <CMallSystem> .GetInstance().sMallFormPath);

            if (form == null)
            {
                return;
            }
            GameObject gameObject = Utility.FindChild(form.GetWidget(3), "pnlBuyHero/ownFlag");

            if (gameObject != null)
            {
                this.m_notOwnFlag = gameObject.GetComponent <Toggle>().get_isOn();
                PlayerPrefs.SetInt("Mall_Hero_Own_Flag_Key", this.m_notOwnFlag ? 1 : 0);
                PlayerPrefs.Save();
            }
            this.RefreshHeroOwnFlag();
            this.RefreshHeroListObject(form);
        }
コード例 #14
0
        private InputField GetSignInputText()
        {
            CUIFormScript form = Singleton <CUIManager> .instance.GetForm(CPlayerInfoSystem.sPlayerInfoFormPath);

            if (form == null)
            {
                return(null);
            }
            GameObject widget = form.GetWidget(32);

            if (widget == null)
            {
                return(null);
            }
            Transform  transform  = widget.transform.Find("pnlContainer/Social_Sign");
            GameObject gameObject = transform.FindChild("InputCtrl").gameObject;

            return(gameObject.GetComponent <InputField>());
        }
コード例 #15
0
        private void OnClickRank(CUIEvent uiEvt)
        {
            CUIFormScript cUIFormScript = Singleton <CUIManager> .GetInstance().OpenForm(CUnionBattleRankSystem.UNION_RANK_PATH, false, true);

            if (cUIFormScript == null)
            {
                return;
            }
            this.Clear();
            this.initWidget();
            CUIListScript component = cUIFormScript.GetWidget(2).GetComponent <CUIListScript>();

            if (component && component.GetElementAmount() > 0)
            {
                component.SelectElement(0, true);
                CUIEventScript component2 = component.GetElemenet(0).GetComponent <CUIEventScript>();
                Singleton <CUIEventManager> .GetInstance().DispatchUIEvent(component2.m_onClickEventID, component2.m_onClickEventParams);
            }
        }
コード例 #16
0
        private static void ShowSeasonEndRewardPanel(CUIFormScript form)
        {
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo == null)
            {
                return;
            }
            uint key;

            if (masterRoleInfo.m_rankSeasonHighestGrade > 0)
            {
                key = (uint)masterRoleInfo.m_rankSeasonHighestGrade;
            }
            else
            {
                key = (uint)CLadderSystem.GetGradeDataByLogicGrade(1).bGrade;
            }
            ResRankRewardConf dataByKey = GameDataMgr.rankRewardDatabin.GetDataByKey(key);

            if (dataByKey != null)
            {
                ListView <CUseable> listView = new ListView <CUseable>();
                for (int i = 0; i < dataByKey.astRewardDetail.Length; i++)
                {
                    ResDT_ChapterRewardInfo resDT_ChapterRewardInfo = dataByKey.astRewardDetail[i];
                    if (resDT_ChapterRewardInfo.bType != 0)
                    {
                        CUseable cUseable = CUseableManager.CreateUsableByServerType((RES_REWARDS_TYPE)resDT_ChapterRewardInfo.bType, (int)resDT_ChapterRewardInfo.dwNum, resDT_ChapterRewardInfo.dwID);
                        if (cUseable != null)
                        {
                            listView.Add(cUseable);
                        }
                    }
                }
                if (listView.Count > 0)
                {
                    GameObject widget = form.GetWidget(13);
                    CUICommonSystem.SetItemCell(form, widget, listView[0], true, false, false, false);
                }
            }
        }
コード例 #17
0
        private void PlayCoinPoolAnimation()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(UNION_ENTRY_THIRD_PATH);

            if (form != null)
            {
                GameObject         widget         = form.GetWidget(8);
                Transform          transform      = widget.transform.Find("lblPoolCount");
                uint               dwInitCoinPool = 0;
                byte               bCoinType      = 0;
                ResRewardMatchConf conf           = null;
                GameDataMgr.rewardMatchRewardDict.TryGetValue(this.m_selectMapRes.dwDayRankID, out conf);
                ResRewardMatchDetailConf dataByKey = null;
                if (conf != null)
                {
                    dataByKey      = GameDataMgr.unionRankRewardDetailDatabin.GetDataByKey(conf.dwRewardDetailId);
                    dwInitCoinPool = dataByKey.dwInitCoinPool;
                    bCoinType      = dataByKey.bCoinType;
                    CUICommonSystem.SetTextContent(transform.gameObject, (this.m_awardPoolInfo.dwAwardPoolNum + dwInitCoinPool).ToString());
                    string str  = string.Empty;
                    byte   num4 = bCoinType;
                    switch (num4)
                    {
                    case 2:
                        str = "Dianquan";
                        break;

                    case 4:
                        str = "GoldCoin";
                        break;

                    default:
                        if (num4 == 10)
                        {
                            str = "Diamond";
                        }
                        break;
                    }
                    widget.transform.FindChild("lblPoolCount/Image").GetComponent <Image>().SetSprite("UGUI/Sprite/Common/" + str, form, true, false, false);
                }
            }
        }
コード例 #18
0
        public void UpdateUI()
        {
            CUIFormScript form = Singleton <CUIManager> .get_instance().GetForm(CPlayerCommonHeroInfoController.sPlayerInfoCommonHeroFormPath);

            if (form == null)
            {
                return;
            }
            GameObject    widget           = form.GetWidget(0);
            CUIListScript componetInChild  = Utility.GetComponetInChild <CUIListScript>(widget, "SubMenuList/List");
            CUIListScript componetInChild2 = Utility.GetComponetInChild <CUIListScript>(widget, "DetailList/MenuList");
            CUIListScript componetInChild3 = Utility.GetComponetInChild <CUIListScript>(widget, "DetailList/List");
            Text          componetInChild4 = Utility.GetComponetInChild <Text>(widget, "SubMenuList/Button_Down/Text");
            int           selectedIndex    = componetInChild.GetSelectedIndex();
            int           selectedIndex2   = componetInChild2.GetSelectedIndex();

            componetInChild.gameObject.CustomSetActive(false);
            componetInChild4.text = CPlayerCommonHeroInfoController.sSubTitles[selectedIndex];
            componetInChild3.SetElementAmount(this.m_commonHeroList.get_Count());
        }
コード例 #19
0
        private void RefreshRcmdSymbolListPanel()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CSymbolSystem.s_symbolFormPath);

            if (null != form)
            {
                this.GetHeroRcmdSymbolList();
                GameObject widget = form.GetWidget(10);
                if ((widget != null) && (this.m_rcmdSymbolList[this.m_symbolRcmdLevel - 1] != null))
                {
                    widget.GetComponent <CUIListScript>().SetElementAmount(this.m_rcmdSymbolList[this.m_symbolRcmdLevel - 1].Count);
                    Transform transform = widget.transform.Find("Text");
                    if (transform != null)
                    {
                        ResHeroCfgInfo dataByKey = GameDataMgr.heroDatabin.GetDataByKey(this.m_curHeroId);
                        transform.GetComponent <Text>().text = string.Format(Singleton <CTextManager> .GetInstance().GetText("SymbolRcmd_HeroLvlText"), dataByKey.szName, this.m_symbolRcmdLevel);
                    }
                }
            }
        }
コード例 #20
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
            return;
        }
        CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FightForm.s_battleUIForm);

        if (form != null)
        {
            GameObject widget = form.GetWidget(47);
            DebugHelper.Assert(widget != null, "can't find equip item!");
            if (widget.activeInHierarchy && !form.IsHided())
            {
                base.AddHighLightGameObject(widget, true, form, true);
                base.Initialize();
            }
        }
    }
コード例 #21
0
ファイル: RankingView.cs プロジェクト: isoundy000/wzry-1
        public static void OnRankGodDetailEquipClick(CEquipInfo equipInfo, string playerName, string heroName)
        {
            CUIFormScript form = Singleton <CUIManager> .instance.GetForm(RankingSystem.s_rankingGodDetailForm);

            if (form != null)
            {
                GameObject widget = form.GetWidget(0);
                if (widget != null)
                {
                    GameObject p = Utility.FindChild(widget, "Panel_EquipInfo");
                    Text       componetInChild = Utility.GetComponetInChild <Text>(p, "heroEquipText");
                    Text       text2           = Utility.GetComponetInChild <Text>(p, "equipNameText");
                    Text       text3           = Utility.GetComponetInChild <Text>(p, "Panel_euipProperty/equipPropertyDescText");
                    text2.text = (equipInfo != null) ? equipInfo.m_equipName : string.Empty;
                    text3.text = (equipInfo != null) ? equipInfo.m_equipPropertyDesc : string.Empty;
                    string[] args = new string[] { playerName, heroName };
                    componetInChild.text = Singleton <CTextManager> .instance.GetText("RankGodHeroEquipDesc", args);
                }
            }
        }
コード例 #22
0
ファイル: RankingView.cs プロジェクト: TonyDongGuaPi/joework
        public static void RefreshGodHeroForm(ListView <ResHeroCfgInfo> heroList)
        {
            if (heroList == null)
            {
                return;
            }
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(RankingView.s_ChooseHeroPath);

            if (form == null)
            {
                return;
            }
            GameObject widget = form.GetWidget(2);

            if (widget != null)
            {
                CUIListScript component = widget.GetComponent <CUIListScript>();
                component.SetElementAmount(heroList.get_Count());
            }
        }
コード例 #23
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
        }
        else
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(CBattleEquipSystem.s_equipFormPath);

            if (form != null)
            {
                CUIListScript component = form.GetWidget(0).GetComponent <CUIListScript>();
                component.MoveElementInScrollArea(5, true);
                GameObject gameObject = component.GetElemenet(5).gameObject;
                base.AddHighLightGameObject(gameObject, true, form, true, new GameObject[0]);
                base.Initialize();
            }
        }
    }
コード例 #24
0
ファイル: CSymbolSystem.cs プロジェクト: isoundy000/wzry-1
        private void OpenSymbolForm()
        {
            MonoSingleton <NewbieGuideManager> .GetInstance().SetNewbieBit(14, true, false);

            CUIFormScript script = Singleton <CUIManager> .GetInstance().OpenForm(s_symbolFormPath, false, true);

            if (script != null)
            {
                string text = Singleton <CTextManager> .GetInstance().GetText("Symbol_Sheet_Symbol");

                string str2 = Singleton <CTextManager> .GetInstance().GetText("SymbolRcmd_Tab");

                string str3 = Singleton <CTextManager> .GetInstance().GetText("Symbol_Sheet_Make");

                string[]   titleList = new string[] { text, str2, str3 };
                GameObject widget    = script.GetWidget(0);
                CUICommonSystem.InitMenuPanel(widget, titleList, (int)this.m_selectMenuType);
                CUIListScript component = widget.GetComponent <CUIListScript>();
                Singleton <CMiShuSystem> .GetInstance().ShowNewFlag(component.GetElemenet(1).gameObject, enNewFlagKey.New_BtnSymbolFlagKey_V1);
            }
        }
コード例 #25
0
        private void InitTemVector()
        {
            if (CPlayerPvpInfoController.sTemVector != null)
            {
                return;
            }
            CUIFormScript form = Singleton <CUIManager> .instance.GetForm(CPlayerInfoSystem.sPlayerInfoFormPath);

            if (form == null)
            {
                return;
            }
            GameObject widget = form.GetWidget(2);

            CPlayerPvpInfoController.sTemVector = new Vector3[7];
            for (int i = 0; i <= 6; i++)
            {
                GameObject gameObject = Utility.FindChild(widget, string.Format("panelLeftGraph/Content/t{0}", i));
                CPlayerPvpInfoController.sTemVector[i] = gameObject.transform.localPosition;
            }
        }
コード例 #26
0
        private void InitTypeMenu(CUIFormScript form)
        {
            int           num       = 2;
            CUIListScript component = form.GetWidget(0).GetComponent <CUIListScript>();

            component.SetElementAmount(2);
            for (int i = 0; i < num; i++)
            {
                CUIListElementScript elemenet = component.GetElemenet(i);
                GameObject           widget   = elemenet.GetWidget(0);
                if (widget != null)
                {
                    Text component2 = widget.GetComponent <Text>();
                    if (component2 != null)
                    {
                        component2.set_text(Singleton <CTextManager> .GetInstance().GetText(this.m_TypeMenuNameKeys[i]));
                    }
                }
            }
            component.SelectElement(0, true);
        }
コード例 #27
0
 private void RefreshShareForm(CUIFormScript shareForm, uint achievementId)
 {
     if (shareForm == null)
     {
         shareForm = Singleton <CUIManager> .GetInstance().GetForm("UGUI/Form/System/Achieve/Form_Achievement_ShareNewAchievement.prefab");
     }
     if (shareForm != null)
     {
         CAchieveItem achieveItemById = CAchieveInfo.GetAchieveInfo().GetAchieveItemById(achievementId);
         if (achieveItemById != null)
         {
             shareForm.GetWidget(0).GetComponent <Text>().text = achieveItemById.GetAchievementName();
             shareForm.GetWidget(5).GetComponent <Text>().text = achieveItemById.GetAchievementDesc();
             shareForm.GetWidget(7).GetComponent <Text>().text = achieveItemById.GetAchievementTips();
             shareForm.GetWidget(9).GetComponent <Image>().SetSprite(achieveItemById.GetAchievementBgIconPath(), shareForm, true, false, false);
             GameObject widget = shareForm.GetWidget(6);
             if (achieveItemById.IsHideForegroundIcon())
             {
                 widget.CustomSetActive(false);
             }
             else
             {
                 widget.CustomSetActive(true);
                 widget.GetComponent <Image>().SetSprite(achieveItemById.GetAchievementIconPath(), shareForm, true, false, false);
             }
             shareForm.GetWidget(8).GetComponent <CUIEventScript>().m_onClickEventParams.tagUInt = achievementId;
             ShareSys.SetSharePlatfText(shareForm.GetWidget(10).GetComponent <Text>());
             if (CSysDynamicBlock.bSocialBlocked)
             {
                 Transform transform = shareForm.transform.Find("Panel_ShareAchievement_Btn");
                 if (transform != null)
                 {
                     transform.gameObject.CustomSetActive(false);
                 }
                 Transform transform2 = shareForm.transform.Find("Panel_NewAchievement_Btn/Btn_Share");
                 if (transform2 != null)
                 {
                     transform2.gameObject.CustomSetActive(false);
                 }
             }
         }
     }
 }
コード例 #28
0
        private void UpdateSortMenu()
        {
            CUIFormScript form = Singleton <CUIManager> .get_instance().GetForm(CPlayerCommonHeroInfoController.sPlayerInfoCommonHeroFormPath);

            if (form == null)
            {
                return;
            }
            GameObject    widget          = form.GetWidget(0);
            CUIListScript componetInChild = Utility.GetComponetInChild <CUIListScript>(widget, "DetailList/MenuList");
            int           selectedIndex   = componetInChild.GetSelectedIndex();

            if (this.m_lastSortIndex != selectedIndex)
            {
                this.m_lastIsUp = 0;
            }
            else
            {
                this.m_lastIsUp = ((this.m_lastIsUp != 1) ? 1 : 0);
            }
            this.m_lastSortIndex = selectedIndex;
            int elementAmount = componetInChild.m_elementAmount;

            for (int i = 0; i < elementAmount; i++)
            {
                GameObject gameObject = componetInChild.GetElemenet(i).gameObject;
                GameObject obj        = Utility.FindChild(gameObject, "Text/Up");
                GameObject obj2       = Utility.FindChild(gameObject, "Text/Down");
                if (i == selectedIndex)
                {
                    obj.CustomSetActive(this.m_lastIsUp == 1);
                    obj2.CustomSetActive(this.m_lastIsUp != 1);
                }
                else
                {
                    obj.CustomSetActive(false);
                    obj2.CustomSetActive(false);
                }
            }
        }
コード例 #29
0
    protected override void Update()
    {
        if (base.isInitialize)
        {
            base.Update();
        }
        else
        {
            this.timer += Time.deltaTime;
            if (this.timer >= this.timeToWait)
            {
                CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FightForm.s_battleUIForm);

                if (form != null)
                {
                    GameObject widget = form.GetWidget(0x36);
                    base.AddHighLightGameObject(widget, true, form, true);
                    base.Initialize();
                }
            }
        }
    }
コード例 #30
0
ファイル: CSymbolSystem.cs プロジェクト: isoundy000/wzry-1
        public static void RefreshSymbolCntText()
        {
            CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(s_symbolFormPath);

            if (form != null)
            {
                Text      component      = form.GetWidget(8).transform.Find("symbolCoinCntText").GetComponent <Text>();
                CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                if (component != null)
                {
                    if (masterRoleInfo != null)
                    {
                        component.text = masterRoleInfo.SymbolCoin.ToString();
                    }
                    else
                    {
                        component.text = string.Empty;
                    }
                }
            }
        }