Exemple #1
0
        /// <summary>
        /// 创建打开界面更新事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的打开界面更新事件。</returns>
        public static OpenUIFormUpdateEventArgs Create(GameFramework.UI.OpenUIFormUpdateEventArgs e)
        {
            OpenUIFormUpdateEventArgs openUIFormUpdateEventArgs = ReferencePool.Acquire <OpenUIFormUpdateEventArgs>();

            openUIFormUpdateEventArgs.SerialId           = e.SerialId;
            openUIFormUpdateEventArgs.UIFormAssetName    = e.UIFormAssetName;
            openUIFormUpdateEventArgs.UIGroupName        = e.UIGroupName;
            openUIFormUpdateEventArgs.PauseCoveredUIForm = e.PauseCoveredUIForm;
            openUIFormUpdateEventArgs.Progress           = e.Progress;
            openUIFormUpdateEventArgs.UserData           = e.UserData;
            return(openUIFormUpdateEventArgs);
        }
Exemple #2
0
 private void OnOpenUIFormUpdate(object sender, GameFramework.UI.OpenUIFormUpdateEventArgs e)
 {
     m_EventComponent.Fire(this, OpenUIFormUpdateEventArgs.Create(e));
 }