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:
@@ -5,6 +5,7 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
using XericLibrary.Runtime.MacroLibrary;
|
||||
using XericUI.XTable.Rendering.Component;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUIEditor.XTable
|
||||
{
|
||||
@@ -17,7 +18,7 @@ namespace XericUIEditor.XTable
|
||||
/// <summary>是否启用覆盖层(可通过菜单开关)</summary>
|
||||
private static bool s_Enabled = true;
|
||||
|
||||
internal const string MENU_PATH = "XericLibrary/UI/Table/Table Editor Override Layer";
|
||||
internal const string MENU_PATH = XericRegistrationPaths.Table + "/Table Editor Override Layer";
|
||||
|
||||
[MenuItem(MENU_PATH, false, 200)]
|
||||
private static void ToggleOverlay()
|
||||
|
||||
@@ -5,6 +5,7 @@ using XericLibrary.Runtime.MacroLibrary;
|
||||
using XericLibrary.Runtime.SuperStyleSheet;
|
||||
using XericUI.XTable.Core;
|
||||
using XericUI.XTable.Rendering.Component;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUIEditor.XTable
|
||||
{
|
||||
@@ -28,7 +29,7 @@ namespace XericUIEditor.XTable
|
||||
private SerializedProperty m_SelectionAutoScrollMaxSpeedProp;
|
||||
private SerializedProperty m_SelectionAutoScrollAccelerationProp;
|
||||
|
||||
internal const string MENU_PATH = "GameObject/Xeric Library/Table/Xeric UI Action Table";
|
||||
internal const string MENU_PATH = XericRegistrationPaths.TableCreate + "/Xeric UI Action Table";
|
||||
|
||||
// 折叠状态
|
||||
private static bool s_StyleFoldout = true;
|
||||
|
||||
@@ -2,6 +2,7 @@ using UnityEditor;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using XericUI.ReflectionUIGenerator;
|
||||
using XericUI.Core;
|
||||
|
||||
namespace XericUIEditor.ReflectionUIGenerator
|
||||
{
|
||||
@@ -16,7 +17,7 @@ namespace XericUIEditor.ReflectionUIGenerator
|
||||
/// </summary>
|
||||
public static class XuiavrgExampleMenu
|
||||
{
|
||||
private const string MenuPath = "GameObject/Xeric UI/Create Reflection UI Example";
|
||||
private const string MenuPath = XericRegistrationPaths.UICreate + "/Create Reflection UI Example";
|
||||
private const int MenuPriority = 10;
|
||||
|
||||
[MenuItem(MenuPath, false, MenuPriority)]
|
||||
|
||||
Reference in New Issue
Block a user