breakpoint

before update unity version
This commit is contained in:
CortexCore
2024-03-04 18:45:21 +08:00
parent e2fbb14dd5
commit 9ad58a2ff4
5423 changed files with 14757 additions and 653 deletions

View File

@@ -4,6 +4,7 @@ using System.Collections.Generic;
using System.Linq;
using BITKit;
using BITKit.CommandPattern;
using BITKit.Mod;
using BITKit.UX;
using UnityEngine;
using UnityEngine.UIElements;
@@ -34,24 +35,25 @@ namespace BITFactory.Cutting
cuttingTool.OnExecute += OnExecute;
cuttingTool.OnUndo += OnUndo;
cuttingTool.OnClear += OnClear;
cuttingTool.OnRelease += OnRelease;
exportButton.clicked += OnExport;
exportButton.clicked += cuttingTool.Release;
clearButton.clicked += cuttingTool.Clear;
undoButton.clicked += cuttingTool.Undo;
}
private void OnExport()
private static void OnRelease(ICommand[] commands)
{
var stringBuilder = new System.Text.StringBuilder();
foreach (var x in cuttingTool.Commands.OfType<ICuttingCommand>())
foreach (var x in commands.OfType<ICuttingCommand>())
{
stringBuilder.AppendLine(x.Name);
}
var value = stringBuilder.ToString();
Alert.Print(new BITKit.UX.Internal.Alert()
{
message =value.Length>1024 ?"数据过长,请复制到剪贴板查看": value,
message =ModService.Mods.Length>0 ? "已安装Mod,其他程序正在处理数据" :value.Length>1024 ?"数据过长,请复制到剪贴板查看": value,
OnConfirm = Copy,
title = "已命令,按[确定]复制到剪切板"
});