This commit is contained in:
milimoe 2025-11-17 21:48:24 +08:00
parent 6a6f868230
commit bb794067c4
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
9 changed files with 22 additions and 33 deletions

View File

@ -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

View File

@ -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;

View File

@ -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);

View File

@ -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)
{

View File

@ -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;