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
@@ -2,16 +2,16 @@ using SimpleCore.Traffic;
using System;
using System.Collections.Generic;
using System.Linq;
using SimpleLite.RCS;
using SimpleLite.RCS.CarTypes;
using Simple3.RCS;
using Simple3.RCS.CarTypes;
using SimpleCore.Library;
using SimpleCore.PropType;
using SimpleCore;
using System.Threading;
using SimpleLite.CADTools;
using SimpleLite.Props;
using SimpleLite.UI;
using SimpleLite;
using Simple3.CADTools;
using Simple3.Props;
using Simple3.UI;
using Simple3;
using StandardScene.Utils;
using Newtonsoft.Json;
@@ -290,11 +290,11 @@ namespace StandardScene.InterLock
{
//if (!enableSimulation) return;
G.pushStatus("请选择站点");
var pt = await Program.UI.getPoint(new UIOps.getPointOptions() { site = true });
var pt = await Startup.UI.getPoint(new UIOps.getPointOptions() { site = true });
var site = SimpleLib.GetSite(pt.site);
if (SiteFilter(site.id))
{
var vv = await Program.UI.Input("请输入true/false", title, "true");
var vv = await Startup.UI.Input("请输入true/false", title, "true");
if (vv == null || !bool.TryParse(vv, out var allow))
{
CycleUiHelper.Alert("错误", "输入错误");
@@ -327,7 +327,7 @@ namespace StandardScene.InterLock
{
// if (!enableSimulation) return;
G.pushStatus("请选择站点");
var pt = await Program.UI.getPoint(new UIOps.getPointOptions() { site = true });
var pt = await Startup.UI.getPoint(new UIOps.getPointOptions() { site = true });
var site = SimpleLib.GetSite(pt.site);
if (SiteFilter(site.id))
{
@@ -1,8 +1,8 @@
using LessokajiWeaverUtilities.Utilities;
using LoopViewerApp;
using Newtonsoft.Json;
using SimpleLite.RCS;
using SimpleLite.RCS.CarTypes;
using Simple3.RCS;
using Simple3.RCS.CarTypes;
using SimpleCore;
using SimpleCore.PropType;
using SimpleCore.Traffic;
@@ -3,7 +3,7 @@ using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using CycleGUI;
using FairyView;
using Newtonsoft.Json;
using StandardScene.InterLock;
using StandardScene.Utils;
@@ -70,7 +70,7 @@ namespace LoopViewerApp
var panel = GUI.DeclarePanel()
.ShowTitle("交通联锁区域管理")
.SetDefaultDocking(Panel.Docking.None)
.ForceFloat()
.InitSize(800, 680)
.InitPos(false, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f);
_panel = panel;
@@ -133,7 +133,7 @@ namespace LoopViewerApp
_editingAreaId = areaId;
LoadAreaToFields(a);
}
}, height: 14, enableSearch: true);
}, height: CycleUiHelper.TableHeightPx(14), enableSearch: true);
pb.Separator();
pb.Label("数据新增/编辑(点击表格行「编辑」可在此查看并修改该行数据)");