Exemplo n.º 1
0
    public void AllBuildHistory(GameWebAPI.RespDataPR_PrizeReceiveHistory data)
    {
        base.InitBuild();
        this.partsCount = data.prizeReceiveHistory.Length;
        GUISelectPanelBSPartsUD.PanelBuildData panelBuildData = base.CalcBuildData(1, this.partsCount, 1f, 1f);
        float startX = panelBuildData.startX;
        float num    = panelBuildData.startY;

        if (data != null)
        {
            foreach (GameWebAPI.RespDataPR_PrizeReceiveHistory.PrizeReceiveHistory data2 in data.prizeReceiveHistory)
            {
                GameObject gameObject = base.AddBuildPart();
                GUIListPresentHistoryParts component = gameObject.GetComponent <GUIListPresentHistoryParts>();
                if (component != null)
                {
                    component.SetOriginalPos(new Vector3(startX, num, -5f));
                    component.Data = data2;
                }
                num -= panelBuildData.pitchH;
            }
        }
        base.height = panelBuildData.lenH;
        base.InitMinMaxLocation(-1, 0f);
    }
Exemplo n.º 2
0
    public override void Show(Action <int> f, float sizeX, float sizeY, float aT)
    {
        RestrictionInput.StartLoad(RestrictionInput.LoadType.LARGE_IMAGE_MASK_ON);
        base.HideDLG();
        RequestList requestList = new RequestList();
        RequestBase addRequest  = new GameWebAPI.RequestOP_ChargeItemList
        {
            OnReceived = delegate(GameWebAPI.RespDataOP_ChargeItemList response)
            {
                this.tollValue.text  = response.paymentStarPieceNum.ToString();
                this.freeValue.text  = response.freeStarPieceNum.ToString();
                this.totalValue.text = (response.paymentStarPieceNum + response.freeStarPieceNum).ToString();
            }
        };

        requestList.AddRequest(addRequest);
        GameWebAPI.RequestPR_PrizeReceiveHistory requestPR_PrizeReceiveHistory = new GameWebAPI.RequestPR_PrizeReceiveHistory();
        requestPR_PrizeReceiveHistory.OnReceived = delegate(GameWebAPI.RespDataPR_PrizeReceiveHistory response)
        {
            DataMng.Instance().RespDataPR_PrizeReceiveHistory = response;
        };
        addRequest = requestPR_PrizeReceiveHistory;
        requestList.AddRequest(addRequest);
        base.StartCoroutine(requestList.RunOneTime(delegate()
        {
            RestrictionInput.EndLoad();
            this.presentData = DataMng.Instance().RespDataPR_PrizeReceiveHistory;
            this.ShowDLG();
            this.PartsTitle.SetTitle(StringMaster.GetString("OtherHistory"));
            this.SettingTab();
            this.< Show > __BaseCallProxy0(f, sizeX, sizeY, aT);
            this.presentWindow.transform.gameObject.SetActive(true);
            this.selectPresentHistoryPanel.initLocation = true;
            this.selectPresentHistoryPanel.AllBuildHistory(this.presentData);
            this.presentWindow.transform.gameObject.SetActive(false);
            this.partPresetHistory.SetActive(false);
        }, delegate(Exception noop)
        {
            RestrictionInput.EndLoad();
            this.< ClosePanel > __BaseCallProxy1(false);
        }, null));
        this.degistoneTitleText.text = StringMaster.GetString("OtherHistory-01");
        this.totalText.text          = StringMaster.GetString("DegistoneHistory-01");
        this.tollText.text           = StringMaster.GetString("DegistoneHistory-02");
        this.freeText.text           = StringMaster.GetString("DegistoneHistory-03");
        this.presentTitleText.text   = StringMaster.GetString("OtherHistory-02");
        this.historyMessageText.text = StringMaster.GetString("PresentHistory-01");
    }
Exemplo n.º 3
0
 public override void ClosePanel(bool animation = true)
 {
     this.presentData = null;
     this.CloseAndFarmCamOn(animation);
 }