コード例 #1
0
ファイル: PicturePanel.cs プロジェクト: lillianwang16/Games
    // Token: 0x0600035F RID: 863 RVA: 0x00013104 File Offset: 0x00011504
    public void ChangePicture()
    {
        base.GetComponentInParent <UIMaster>().freezeObject(true);
        base.GetComponentInParent <UIMaster>().blockUI(true, new Color(0f, 0f, 0f, 0.3f));
        Texture2D tmpPicture = SuperGameMaster.GetTmpPicture(this.chgEvtId, TextureFormat.RGB24);

        SuperGameMaster.SavePictureList(true, tmpPicture, this.chgPicDateTime);
        SuperGameMaster.evtMgr.delete_ActEvt_forId(this.chgEvtId);
        SuperGameMaster.DeleteTmpPicture(this.chgEvtId);
        SuperGameMaster.picture.ChangePictureData(-1, new DateTime(1970, 1, 1));
        base.GetComponentInParent <UIMaster>().OnSave();
        ConfilmPanel confilm = this.ConfilmUI.GetComponent <ConfilmPanel>();

        confilm.OpenPanel("写真を入れ替えしました");
        confilm.ResetOnClick_Screen();
        confilm.SetOnClick_Screen(delegate
        {
            confilm.ClosePanel();
        });
        confilm.SetOnClick_Screen(delegate
        {
            this.GetComponentInParent <UIMaster_Album>().BackMain();
        });
        this.snapList_tex.Add(tmpPicture);
        this.snapList_sprite.Add(Sprite.Create(tmpPicture, new Rect(0f, 0f, (float)tmpPicture.width, (float)tmpPicture.height), Vector2.zero));
    }
コード例 #2
0
 // Token: 0x0600038E RID: 910 RVA: 0x00015586 File Offset: 0x00013986
 public void DeletePictureEvt(int _evtId)
 {
     SuperGameMaster.evtMgr.delete_ActEvt_forId(_evtId);
     SuperGameMaster.DeleteTmpPicture(_evtId);
 }