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.Net;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using CycleGUI;
using FairyView;
using StandardScene.Utils;
namespace StandardScene.ExtendDevice.ButtonBox
@@ -63,7 +63,7 @@ namespace StandardScene.ExtendDevice.ButtonBox
var panel = GUI.DeclarePanel()
.ShowTitle("按钮盒管理")
.SetDefaultDocking(Panel.Docking.None)
.ForceFloat()
.InitSize(1200, 760)
.InitPos(false, 0, 0, 0.5f, 0.5f, 0.5f, 0.5f);
_panel = panel;
@@ -95,7 +95,7 @@ namespace StandardScene.ExtendDevice.ButtonBox
LoadBoxFields(b);
ClearButtonFields();
}
}, height: 8, enableSearch: true);
}, height: CycleUiHelper.TableHeightPx(8), enableSearch: true);
pb.SeparatorText("按钮盒编辑");
var (ip, _) = pb.TextInput("1. IP", _boxIp, alwaysReturnString: true);
@@ -130,7 +130,7 @@ namespace StandardScene.ExtendDevice.ButtonBox
_selectedBtnIdx = i;
LoadButtonFields(btn);
}
}, height: 6, enableSearch: true);
}, height: CycleUiHelper.TableHeightPx(6), enableSearch: true);
pb.SeparatorText("按钮编辑");
var (bIdx, _) = pb.TextInput("5. 按钮编码", _btnIndex, alwaysReturnString: true);
@@ -173,7 +173,7 @@ namespace StandardScene.ExtendDevice.ButtonBox
{
try
{
var names = SimpleLite.Utils.UiTypeDiscovery.AllTypes()
var names = Simple3.Utils.UiTypeDiscovery.AllTypes()
.Where(t => t.IsClass && !t.IsAbstract
&& t.Namespace == typeof(BasicButtonBox).Namespace
&& t.IsSubclassOf(typeof(BasicButtonBox)))