mirror of
https://github.com/project-redbud/FunGame-Desktop.git
synced 2025-04-21 04:29:34 +08:00
添加了 WPF 的支持(方便模组启动 WPF 界面)
This commit is contained in:
parent
a6e8d2254f
commit
459dc72900
@ -1052,7 +1052,7 @@ namespace Milimoe.FunGame.Desktop.UI
|
||||
private void ShowFunGameInfo()
|
||||
{
|
||||
WritelnGameInfo(FunGameInfo.GetInfo(Constant.FunGameType));
|
||||
Title.Text = FunGameInfo.FunGame_Desktop + " " + FunGameInfo.FunGame_Version + " " + FunGameInfo.FunGame_VersionPatch;
|
||||
Title.Text = FunGameInfo.FunGame_Desktop + " v" + FunGameInfo.FunGame_Version;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -17,8 +17,19 @@ namespace Milimoe.FunGame.Desktop.UI
|
||||
break;
|
||||
}
|
||||
}
|
||||
// ³õʼ»¯ WinForms ÅäÖÃ
|
||||
ApplicationConfiguration.Initialize();
|
||||
|
||||
// ³õʼ»¯ WPF Application
|
||||
System.Windows.Application wpfApp = new()
|
||||
{
|
||||
ShutdownMode = System.Windows.ShutdownMode.OnExplicitShutdown
|
||||
};
|
||||
wpfApp.Dispatcher.Invoke(() => { });
|
||||
|
||||
Application.Run(new Main());
|
||||
|
||||
wpfApp.Shutdown();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user