refactor(注册路径): 调用点收进 XericRegistrationPaths,46 个文件只动注册属性行

10-27 那笔把表的根定成 XericLibrary,但 58 处 AddComponentMenu、4 处 CreateAssetMenu
和若干 MenuItem/ContextMenu 还各自写着 "Xeric UI Vessel/…"、"Xeric/XChart/…" 三套
旧字面量;那批转换一直停在工程里没提交。本笔只收这 46 个"除注册属性外没有别的改动"
的文件,路径出处从此只在表里一处。

工作区里另外 3 个文件(XericImage 的角偏移、IVisibility 接口、XericInfiniteVesselBase
的 region/注释)混着功能改动,不在本笔;Editor/OverrideUI/XericImageEditor.cs 与
Runtime/OverrideUI/XericImageDeform.cs 两个未入库新文件也不在。
This commit is contained in:
2026-10-30 12:34:34 +08:00
parent 013147ea7d
commit 4e760d59d1
46 changed files with 127 additions and 76 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
using UnityEngine;
using XericUI.Core;
namespace XericUI.XTable.Core
{
@@ -7,7 +8,7 @@ namespace XericUI.XTable.Core
/// 表格组件在 Awake 时自动加载 Resources 中的 "XTableDefaultConfig",
/// 或由外部脚本在初始化阶段显式赋值。
/// </summary>
[CreateAssetMenu(fileName = "XTableConfig", menuName = "Xeric Library/Table/Table Config", order = 100)]
[CreateAssetMenu(fileName = "XTableConfig", menuName = XericRegistrationPaths.Table + "/Table Config", order = 100)]
public class XTableConfig : ScriptableObject
{
#region 布局
@@ -9,6 +9,8 @@ using XericUI.XTable.Core;
using XericUI.XTable.Mapping;
using XericUI.XTable.Rendering.Elements;
using XericLibrary.Runtime.SuperStyleSheet;
// 守卫外:[ContextMenu(XericRegistrationPaths.Table + …)] 是运行时属性,玩家编译也要算出常量
using XericUI.Core;
#if UNITY_EDITOR
using UnityEditor;
#endif
@@ -647,7 +649,7 @@ namespace XericUI.XTable.Rendering.Component
/// 行为:立即销毁池与渲染器;CheckUpdate 内禁止调用。
/// 建议:仅用于初始化或故障恢复,不要与批量业务更新混用。
/// </summary>
[ContextMenu("Xeric UI/完全重建表格")]
[ContextMenu(XericRegistrationPaths.Table + "/完全重建表格")]
public void FullRebuild()
{
ThrowIfCheckingUpdate(nameof(FullRebuild));
@@ -5,6 +5,8 @@ using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using XericUI.Core.Base;
// 守卫外:下面 [AddComponentMenu(XericRegistrationPaths.Table + …)] 的参数玩家编译也要算出常量
using XericUI.Core;
using XericUI.XTable.Core;
using XericUI.XTable.Mapping;
using XericUI.XTable.Rendering.Elements;
@@ -22,7 +24,7 @@ namespace XericUI.XTable.Rendering.Component
/// 无行列标题、无样式差异分割线——所有内容由数据定义。
/// </summary>
[ExecuteAlways]
[AddComponentMenu("Xeric UI Vessel/Table/Xeric UI Action Table", 60)]
[AddComponentMenu(XericRegistrationPaths.Table + "/Xeric UI Action Table", 60)]
public partial class XericUIActionTable : XericUIBehaviour
{
#region 序列化字段