Esempio n. 1
0
    private void CreateInfoItem(GameWebAPI.RespDataIN_InfoList.InfoList dt, Vector3 setPos)
    {
        GameObject       gameObject = base.AddBuildPart();
        GUIListNewsParts component  = gameObject.GetComponent <GUIListNewsParts>();

        if (component != null)
        {
            component.SetOriginalPos(setPos);
            component.Data          = dt;
            component.callbackClose = new Action(this.CallbackCloseParts);
            this.guiListNewsPartsList.Add(component);
        }
    }
Esempio n. 2
0
 private IEnumerator ShowExtraPopupInformations()
 {
     DataMng.Instance().ShowPopupInfoNum = 0;
     if (DataMng.Instance().ShowPopupInfoIds == null)
     {
         DataMng.Instance().ShowPopupInfoIds = new Queue();
     }
     GameWebAPI.RespDataIN_InfoList            dts      = DataMng.Instance().RespDataIN_InfoList;
     GameWebAPI.RespDataIN_InfoList.InfoList[] infoList = dts.infoList;
     while (DataMng.Instance().ShowPopupInfoNum < infoList.Length)
     {
         GameWebAPI.RespDataIN_InfoList.InfoList dt = infoList[DataMng.Instance().ShowPopupInfoNum];
         if (dt.popupFlg == 1 && !DataMng.Instance().ShowPopupInfoIds.Contains(int.Parse(dt.userInfoId)))
         {
             bool         isClose = false;
             Action <int> action  = delegate(int x)
             {
                 isClose = true;
                 DataMng.Instance().ShowPopupInfoNum++;
             };
             CMDWebWindowPopup cd = GUIMain.ShowCommonDialog(action, "CMDWebWindowPopup", null) as CMDWebWindowPopup;
             cd.setLinkCategoryType(int.Parse(dt.linkCategoryType));
             cd.userInfoId = int.Parse(dt.userInfoId);
             cd.TitleText  = dt.title;
             cd.Url        = ConstValue.APP_WEB_DOMAIN + ConstValue.WEB_INFO_ADR + dt.userInfoId;
             while (!isClose)
             {
                 yield return(null);
             }
         }
         else
         {
             DataMng.Instance().ShowPopupInfoNum++;
         }
     }
     yield break;
 }