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:
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.BubbleLayout
|
||||
{
|
||||
@@ -19,7 +20,7 @@ namespace XericUI.BubbleLayout
|
||||
/// 边界限制约束插件 —— 将气泡元素限制在指定范围内。
|
||||
/// 支持矩形/椭圆两种形状,并记录超出范围的元素。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Boundary Constraint", 56)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Boundary Constraint", 56)]
|
||||
public class BoundaryConstraint : BubbleLayoutPluginBase, IBubbleConstraintPlugin
|
||||
{
|
||||
[Header("限制范围")]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericLibrary.Runtime;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.BubbleLayout
|
||||
{
|
||||
@@ -8,7 +9,7 @@ namespace XericUI.BubbleLayout
|
||||
/// 气泡碰撞约束插件 —— 使用四叉树检测重叠并推挤分离。
|
||||
/// 默认 Order = 1000,在约束阶段最后执行,确保碰撞排挤在所有其他约束之后进行。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Bubble Collision Constraint", 52)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Bubble Collision Constraint", 52)]
|
||||
public class BubbleCollisionConstraint : BubbleLayoutPluginBase, IBubbleConstraintPlugin
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
|
||||
@@ -4,6 +4,10 @@ using UnityEngine;
|
||||
using UnityEngine.Pool;
|
||||
using UnityEngine.UI;
|
||||
using XericLibrary.Runtime;
|
||||
// using 必须在守卫**外**:下面 [AddComponentMenu(XericRegistrationPaths.Layout + …)] 的
|
||||
// 参数在玩家编译也要算得出常量——它在 #if UNITY_EDITOR 里的话,编辑器那套照样绿、
|
||||
// 只有玩家编译报 CS0103(2026-10-23 现场)
|
||||
using XericUI.Core;
|
||||
#if UNITY_EDITOR
|
||||
using System.Diagnostics;
|
||||
#endif
|
||||
@@ -56,7 +60,7 @@ namespace XericUI.BubbleLayout
|
||||
/// 支持动画插件和约束插件,插件按 Order 优先级分阶段顺序执行。
|
||||
/// </summary>
|
||||
[ExecuteAlways]
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Bubble Layout Group", 51)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Bubble Layout Group", 51)]
|
||||
public class BubbleLayoutGroup : LayoutGroup
|
||||
{
|
||||
#region 序列化字段
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.BubbleLayout
|
||||
{
|
||||
/// <summary>
|
||||
/// 环绕布局约束插件 —— 将气泡元素沿圆形排列,并通过弹簧力吸附到目标位置。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Circular Layout Constraint", 55)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Circular Layout Constraint", 55)]
|
||||
public class CircularLayoutConstraint : BubbleLayoutPluginBase, IBubbleConstraintPlugin
|
||||
{
|
||||
[Header("吸附力")]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.BubbleLayout
|
||||
{
|
||||
@@ -7,7 +8,7 @@ namespace XericUI.BubbleLayout
|
||||
/// 横排布局约束插件 —— 将气泡元素沿 X 轴排列,并通过弹簧力吸附到目标位置。
|
||||
/// 支持多布局框穿插排列。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Horizontal Layout Constraint", 54)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Horizontal Layout Constraint", 54)]
|
||||
public class HorizontalLayoutConstraint : LinearLayoutConstraintBase
|
||||
{
|
||||
[Header("横排特有")]
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.BubbleLayout
|
||||
{
|
||||
@@ -25,7 +26,7 @@ namespace XericUI.BubbleLayout
|
||||
/// 竖排布局约束插件 —— 将气泡元素沿 Y 轴排列,并通过弹簧力吸附到目标位置。
|
||||
/// 支持多布局框穿插排列和拉链模式(一左一右交替)。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric UI Vessel/Layout/Vertical Layout Constraint", 53)]
|
||||
[AddComponentMenu(XericRegistrationPaths.Layout + "/Vertical Layout Constraint", 53)]
|
||||
public class VerticalLayoutConstraint : LinearLayoutConstraintBase
|
||||
{
|
||||
[Header("竖排特有")]
|
||||
|
||||
Reference in New Issue
Block a user