refactor: SimpleLite 迁移到 Simple3,插件窗体改用 FairyView ForceFloat

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
黄兆尉
2026-08-26 11:18:40 +08:00
co-authored by Cursor
parent ad83008d9c
commit 3b4f505ac5
62 changed files with 264 additions and 281 deletions
@@ -1,4 +1,4 @@
using CycleGUI;
using FairyView;
namespace StandardScene.CarTypes
{
@@ -32,7 +32,7 @@ namespace StandardScene.CarTypes
var panel = GUI.DeclarePanel()
.ShowTitle("TextViewer")
.SetDefaultDocking(Panel.Docking.None)
.ForceFloat()
.InitSize(800, 600)
.InitPos(false, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f);
_panel = panel;
@@ -8,13 +8,13 @@ using MQTTnet.Extensions.ManagedClient;
using MQTTnet.Protocol;
using Nancy.Routing;
using Newtonsoft.Json;
using SimpleLite;
using SimpleLite.RCS;
using SimpleLite.RCS.CarTypes;
using SimpleLite.RCS.Signal;
using SimpleLite.CADTools;
using SimpleLite.Props;
using SimpleLite.UI;
using Simple3;
using Simple3.RCS;
using Simple3.RCS.CarTypes;
using Simple3.RCS.Signal;
using Simple3.CADTools;
using Simple3.Props;
using Simple3.UI;
using SimpleCore;
using SimpleCore.Compiler;
using SimpleCore.Library;
@@ -29,7 +29,7 @@ using System.Net.Http;
using System.Security.Policy;
using System.Threading;
using System.Threading.Tasks;
using static SimpleLite.RCS.CarTypes.ClumsyCar;
using static Simple3.RCS.CarTypes.ClumsyCar;
using Site = SimpleCore.PropType.Site;
namespace StandardScene.CarTypes
@@ -709,7 +709,9 @@ namespace StandardScene.CarTypes
RouteCacheViewer.Show();
}
[MethodMember(Name = "立即强制结束")]
[MethodMember(Name = "立即强制结束",
RequiresPlatformConfirm = true,
ConfirmMessage = "确定强制结束该车上的作业并下线?")]
public void ForceStop()
{
AppendDebug("Clumsy Restarted");
@@ -853,7 +855,7 @@ namespace StandardScene.CarTypes
Console.WriteLine(sitesID[i]);
}
Site[] sites = new Site[sitesID.Length];
SimpleLite.Point[] pts = new SimpleLite.Point[sitesID.Length];
Simple3.Point[] pts = new Simple3.Point[sitesID.Length];
//for (var i = 0; i < sitesID.Length; i++)
//{
@@ -15,7 +15,7 @@ using System.Net;
using System.Net.Http;
using Nancy.Routing;
using Newtonsoft.Json;
using SimpleLite;
using Simple3;
namespace StandardScene.CarTypes
{
@@ -1,9 +1,9 @@
using System;
using System.Threading.Tasks;
using CommonUsage.Protocols.VDA5050.Objects;
using SimpleLite.CADTools;
using SimpleLite.Props;
using SimpleLite.UI;
using Simple3.CADTools;
using Simple3.Props;
using Simple3.UI;
using SimpleCore;
using SimpleCore.Library;
using SimpleCore.PropType;