mirror of
https://github.com/milimoe/FunGame-Testing.git
synced 2025-12-05 00:06:05 +00:00
1
This commit is contained in:
parent
6a6f868230
commit
bb794067c4
@ -1,7 +1,6 @@
|
||||
using System.Globalization;
|
||||
using System.Windows.Data;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Interface.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
|
||||
namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
||||
|
||||
@ -276,9 +276,9 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 辅助类,用于管理异步的用户输入请求。
|
||||
/// </summary>
|
||||
/// <typeparam name="T">期望的用户输入类型。</typeparam>
|
||||
/// 辅助类,用于管理异步的用户输入请求。
|
||||
/// </summary>
|
||||
/// <typeparam name="T">期望的用户输入类型。</typeparam>
|
||||
public class UserInputRequester<T>
|
||||
{
|
||||
private TaskCompletionSource<T?>? _tcs;
|
||||
|
||||
@ -509,7 +509,7 @@ namespace Milimoe.FunGame.Testing.Desktop.GameMapTesting
|
||||
{
|
||||
if (!IsPlayer_OnlyTest(queue, character) || _gamingQueue is null || _gamingQueue.Map is null) return Grid.Empty;
|
||||
|
||||
Grid current = Grid.Empty;
|
||||
Grid current = Grid.Empty;
|
||||
if (_gamingQueue.CustomData.TryGetValue("currentGrid", out object? currentGrid) && currentGrid is Grid grid)
|
||||
{
|
||||
current = grid;
|
||||
|
||||
@ -1,7 +1,5 @@
|
||||
using System.Buffers.Text;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Collections.Specialized;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
using System.Windows.Controls;
|
||||
using System.Windows.Documents;
|
||||
@ -13,7 +11,6 @@ using Milimoe.FunGame.Core.Interface.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Common.Addon;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
using Milimoe.FunGame.Core.Model;
|
||||
using Oshima.FunGame.OshimaModules.Effects.OpenEffects;
|
||||
using static Milimoe.FunGame.Core.Library.Constant.General;
|
||||
using Brush = System.Windows.Media.Brush;
|
||||
using Brushes = System.Windows.Media.Brushes;
|
||||
|
||||
@ -21,7 +21,7 @@ namespace Milimoe.FunGame.Testing.Desktop.Solutions
|
||||
ItemManager = im;
|
||||
FileName = "Module.ini";
|
||||
ModuleName = "EntityEditor";
|
||||
if (INIHelper.ExistINIFile(FileName))
|
||||
if (INIHelper.INIFileExists(FileName))
|
||||
{
|
||||
ModuleName = INIHelper.ReadINI("ModuleName", "Module", FileName);
|
||||
string character = INIHelper.ReadINI("ModuleName", "Character", FileName);
|
||||
|
||||
@ -197,7 +197,7 @@ namespace Milimoe.FunGame.Testing.Desktop.Solutions.NovelEditor
|
||||
NodeListBox.ItemsSource = _config.Values;
|
||||
NodeListBox.Items.Refresh();
|
||||
Title = Title.Replace("*", "").Trim();
|
||||
if (NovelConfig.ExistsFile("NovelEditor", _config.FileName))
|
||||
if (NovelConfig.FileExists("NovelEditor", _config.FileName))
|
||||
{
|
||||
MessageBox.Show("这是一个在配置文件中已存在相同文件名的文件,建议保存时使用另存为功能。", "提示");
|
||||
}
|
||||
@ -224,7 +224,7 @@ namespace Milimoe.FunGame.Testing.Desktop.Solutions.NovelEditor
|
||||
string name = inputDialog.ResponseText;
|
||||
if (name.Trim() != "")
|
||||
{
|
||||
if (NovelConfig.ExistsFile("NovelEditor", name))
|
||||
if (NovelConfig.FileExists("NovelEditor", name))
|
||||
{
|
||||
if (MessageBox.Show("文件已经存在,是否覆盖?", "提示", MessageBoxButton.YesNo) == MessageBoxResult.No)
|
||||
{
|
||||
|
||||
@ -1,13 +1,6 @@
|
||||
using System.Text;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Milimoe.FunGame.Core.Api.Utility;
|
||||
using Milimoe.FunGame.Core.Entity;
|
||||
using Milimoe.FunGame.Core.Library.Constant;
|
||||
using Milimoe.FunGame.Testing.Tests;
|
||||
using Oshima.FunGame.OshimaModules;
|
||||
using Oshima.FunGame.OshimaModules.Models;
|
||||
using Oshima.FunGame.OshimaModules.Regions;
|
||||
using Oshima.FunGame.OshimaServers.Model;
|
||||
using Oshima.FunGame.OshimaServers.Service;
|
||||
using Oshima.FunGame.WebAPI.Controllers;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user