Skip to content

修改ui打开成功事件 uiform 为 IUIForm接口 #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Scripts/Runtime/UI/OpenUIFormSuccessEventArgs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

using GameFramework;
using GameFramework.Event;
using GameFramework.UI;

namespace UnityGameFramework.Runtime
{
Expand Down Expand Up @@ -44,7 +45,7 @@ public override int Id
/// <summary>
/// 获取打开成功的界面。
/// </summary>
public UIForm UIForm
public IUIForm UIForm
{
get;
private set;
Expand Down Expand Up @@ -76,7 +77,7 @@ public object UserData
public static OpenUIFormSuccessEventArgs Create(GameFramework.UI.OpenUIFormSuccessEventArgs e)
{
OpenUIFormSuccessEventArgs openUIFormSuccessEventArgs = ReferencePool.Acquire<OpenUIFormSuccessEventArgs>();
openUIFormSuccessEventArgs.UIForm = (UIForm)e.UIForm;
openUIFormSuccessEventArgs.UIForm = (IUIForm)e.UIForm;
openUIFormSuccessEventArgs.Duration = e.Duration;
openUIFormSuccessEventArgs.UserData = e.UserData;
return openUIFormSuccessEventArgs;
Expand Down