Beispiel #1
0
 private void OnOpenUIFormFailure(object sender, GameFramework.UI.OpenUIFormFailureEventArgs e)
 {
     Log.Warning("Open UI form failure, asset name '{0}', UI group name '{1}', pause covered UI form '{2}', error message '{3}'.", e.UIFormAssetName, e.UIGroupName, e.PauseCoveredUIForm.ToString(), e.ErrorMessage);
     if (m_EnableOpenUIFormFailureEvent)
     {
         m_EventComponent.Fire(this, OpenUIFormFailureEventArgs.Create(e));
     }
 }
        /// <summary>
        /// 创建打开界面失败事件。
        /// </summary>
        /// <param name="e">内部事件。</param>
        /// <returns>创建的打开界面失败事件。</returns>
        public static OpenUIFormFailureEventArgs Create(GameFramework.UI.OpenUIFormFailureEventArgs e)
        {
            OpenUIFormFailureEventArgs openUIFormFailureEventArgs = ReferencePool.Acquire <OpenUIFormFailureEventArgs>();

            openUIFormFailureEventArgs.SerialId           = e.SerialId;
            openUIFormFailureEventArgs.UIFormAssetName    = e.UIFormAssetName;
            openUIFormFailureEventArgs.UIGroupName        = e.UIGroupName;
            openUIFormFailureEventArgs.PauseCoveredUIForm = e.PauseCoveredUIForm;
            openUIFormFailureEventArgs.ErrorMessage       = e.ErrorMessage;
            openUIFormFailureEventArgs.UserData           = e.UserData;
            return(openUIFormFailureEventArgs);
        }