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
@@ -6,7 +6,7 @@ using System.Linq;
using System.Net.NetworkInformation;
using System.Text;
using System.Threading.Tasks;
using CycleGUI;
using FairyView;
using SimpleCore;
using StandardScene.Utils;
@@ -58,7 +58,7 @@ namespace StandardScene.Charge
var panel = GUI.DeclarePanel()
.ShowTitle("充电桩管理系统")
.SetDefaultDocking(Panel.Docking.None)
.ForceFloat()
.InitSize(1400, 760)
.InitPos(false, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f);
_panel = panel;
@@ -129,7 +129,7 @@ namespace StandardScene.Charge
var op = row.ButtonGroup(new[] { "编辑", "删除" }, new[] { "编辑充电桩", "删除充电桩" });
if (op == 0) OpenEditDialog(s);
else if (op == 1) ConfirmDelete(s);
}, height: 16, enableSearch: true);
}, height: CycleUiHelper.TableHeightPx(16), enableSearch: true);
if (!string.IsNullOrEmpty(_status))
{
@@ -221,7 +221,7 @@ namespace StandardScene.Charge
var dlg = GUI.DeclarePanel()
.ShowTitle(isAdd ? "新增充电桩" : $"编辑充电桩 [{existing.StationId}]")
.SetDefaultDocking(Panel.Docking.None)
.ForceFloat()
.InitSize(480, 520)
.InitPos(false, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f);
_editDialog = dlg;