示例#1
0
    private void SetCommentData(GUITips.TIPS_DISP_TYPE dispType)
    {
        List <List <CMD_Tips.TipsM.TipsManage> > list = new List <List <CMD_Tips.TipsM.TipsManage> >();
        List <CMD_Tips.TipsM.Tips> list2 = new List <CMD_Tips.TipsM.Tips>();

        foreach (CMD_Tips.TipsM.TipsManage tipsManage2 in MasterDataMng.Instance().RespDataMA_TipsM.tipsM.tipsManage)
        {
            int num = int.Parse(tipsManage2.dispType);
            if (list.Count < num)
            {
                list.Add(new List <CMD_Tips.TipsM.TipsManage>());
            }
            if (tipsManage2 != null)
            {
                list[list.Count - 1].Add(tipsManage2);
            }
        }
        foreach (CMD_Tips.TipsM.Tips tips2 in MasterDataMng.Instance().RespDataMA_TipsM.tipsM.tips)
        {
            if (tips2 != null)
            {
                list2.Add(tips2);
            }
        }
        if (list.Count <= dispType - (GUITips.TIPS_DISP_TYPE) 1)
        {
            global::Debug.LogError("Tipsがありません。マスターを確認してください。");
            return;
        }
        this.displayCommentDataList.Clear();
        foreach (CMD_Tips.TipsM.TipsManage tipsManage3 in list[dispType - (GUITips.TIPS_DISP_TYPE) 1])
        {
            this.displayCommentDataList.Add(Algorithm.BinarySearch <CMD_Tips.TipsM.Tips>(list2, tipsManage3.tipsId, 0, list2.Count - 1, "tipsId", 8));
        }
    }
示例#2
0
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        base.PartsTitle.SetTitle(StringMaster.GetString("ExchangeTitle"));
        base.SetTutorialAnyTime("anytime_second_tutorial_exchange");
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        APIRequestTask task = ClassSingleton <ExchangeWebAPI> .Instance.AccessEventExchangeInfoLogicAPI();

        base.StartCoroutine(task.Run(delegate
        {
            RestrictionInput.EndLoad();
            this.ShowDLG();
            this.menu.Init();
            GameWebAPI.RespDataMS_EventExchangeInfoLogic.Result[] eventExchangeInfoList = ClassSingleton <ExchangeWebAPI> .Instance.EventExchangeInfoList;
            bool flag = eventExchangeInfoList != null && eventExchangeInfoList.Length > 0 && eventExchangeInfoList[0] != null;
            GUITips.TIPS_DISP_TYPE dispType = (!flag) ? GUITips.TIPS_DISP_TYPE.NoneExchangeNavi : GUITips.TIPS_DISP_TYPE.ExchangeNavi;
            this.tips.Init(dispType);
            this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT);
        }, delegate(Exception nop)
示例#3
0
 public void Init(GUITips.TIPS_DISP_TYPE dispType)
 {
     this.SetCommentData(dispType);
     this.LoadNaviThumb();
     this.DisplayComment();
 }