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,12 +1,13 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Color 值组件 — 通过 Image 显示颜色,可选点击弹出颜色选择器
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDColorValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDColorValue")]
|
||||
public class XUIAvrgMDColorValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 Image 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -2,6 +2,7 @@ using System.Collections.Generic;
|
||||
using System;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -12,7 +13,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// 选项动态创建:OnPoolGet 时根据元数据 PresetOptions 构建选项列表,
|
||||
/// BindToAccessor 时通过 AddOptions() 填充到 Dropdown 组件。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDDropdownValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDDropdownValue")]
|
||||
public class XUIAvrgMDDropdownValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 Dropdown 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// InputField 值组件 — 处理 string / float / int / double 类型的文本输入交互
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDInputFieldValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDInputFieldValue")]
|
||||
public class XUIAvrgMDInputFieldValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -6,7 +7,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// Label 只读值组件 — 纯文本展示,无交互控件
|
||||
/// 拥有自己的 _valueDisplayText 用于显示值
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDLabelValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDLabelValue")]
|
||||
public class XUIAvrgMDLabelValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("值显示文本 — 显示当前字段的值")]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -8,7 +9,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// Slider 值组件 — 处理 float / int / double 类型的滑块交互
|
||||
/// 适用 Shader Range 属性或标记了 [XuiavrgFieldTag(Slider)] 的字段
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDSliderValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDSliderValue")]
|
||||
public class XUIAvrgMDSliderValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 Slider 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Texture 值组件 — 通过 RawImage 显示纹理
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDTextureValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDTextureValue")]
|
||||
public class XUIAvrgMDTextureValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 RawImage 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -2,6 +2,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -12,7 +13,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// 选项动态创建:OnPoolGet 时根据元数据 PresetOptions 数量,
|
||||
/// 从 _toggleItemPrefab 实例化 Toggle 子对象。
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDToggleGroupValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDToggleGroupValue")]
|
||||
public class XUIAvrgMDToggleGroupValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 ToggleGroup 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
/// <summary>
|
||||
/// Toggle 值组件 — 处理 bool 类型的开关交互
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDToggleValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDToggleValue")]
|
||||
public class XUIAvrgMDToggleValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("关联的 Toggle 组件(未设置则自动查找)")]
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -16,7 +17,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// 6. 基类统一管理标签文本(名称 + 只读 + 警告标记)和单位可见性
|
||||
/// 值显示由各子类自行实现
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/XUIAvrgMDValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/XUIAvrgMDValue")]
|
||||
public class XUIAvrgMDValue : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -7,7 +8,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// 向量值组件 — 处理 Vector2 / Vector3 / Vector4 类型的多字段输入
|
||||
/// 子节点按 BindingSlots 绑定各分量(如 "x", "y", "z", "w")
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/Values/XUIAvrgMDVectorValue")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/Values/XUIAvrgMDVectorValue")]
|
||||
public class XUIAvrgMDVectorValue : XUIAvrgMDValue
|
||||
{
|
||||
[SerializeField, Tooltip("X 分量 InputField(可选,也可通过 BindingSlots 的子节点绑定)")]
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using UnityEngine;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUI.ReflectionUIGenerator
|
||||
{
|
||||
@@ -10,7 +11,7 @@ namespace XericUI.ReflectionUIGenerator
|
||||
/// 内部子元素通过锚点系统获得布局
|
||||
/// 可通过挂载 TMP_Text / Image 等组件实现组标题/背景装饰
|
||||
/// </summary>
|
||||
[AddComponentMenu("Xeric Library/UI Action Vessel/XuiAvrgMDGroup")]
|
||||
[AddComponentMenu(XericRegistrationPaths.UI + "/XuiAvrgMDGroup")]
|
||||
public class XuiAvrgMDGroup : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
|
||||
Reference in New Issue
Block a user