添加一个表格组件,原理上贴近现代表格系统,理论上可以应对超大型表格以及离散数据集合。

This commit is contained in:
2026-06-26 19:14:48 +08:00
parent 55ace8d02b
commit 61bb0b012e
78 changed files with 4409 additions and 57 deletions
+5 -5
View File
@@ -1,4 +1,4 @@
using TMPro;
using TMPro;
using UnityEngine;
using UnityEngine.UI;
using XericUI.Helper;
@@ -168,11 +168,11 @@ namespace XericUI.OverrideUI
#region 组件替换
#if UNITY_EDITOR
[UnityEditor.MenuItem("CONTEXT/Button/Replace To XericButton", true)]
[UnityEditor.MenuItem("CONTEXT/Button/Replace To/Xeric Button", true)]
private static bool ValidateReplaceToXeric(UnityEditor.MenuCommand command)
=> command.context is Button and not XericButton;
[UnityEditor.MenuItem("CONTEXT/Button/Replace To XericButton", false, 10)]
[UnityEditor.MenuItem("CONTEXT/Button/Replace To/Xeric Button", false, 10)]
private static void ReplaceToXeric(UnityEditor.MenuCommand command)
=> command.ReplaceCommandContext<Button, XericButton,
(Graphic targetGraphic, ButtonClickedEvent onClick)>(
@@ -184,11 +184,11 @@ namespace XericUI.OverrideUI
t.onClick = d.onClick;
});
[UnityEditor.MenuItem("CONTEXT/Button/Replace To Button", true)]
[UnityEditor.MenuItem("CONTEXT/Button/Replace To/Unity Button", true)]
private static bool ValidateReplaceToUnity(UnityEditor.MenuCommand command)
=> command.context is XericButton;
[UnityEditor.MenuItem("CONTEXT/Button/Replace To Button", false, 10)]
[UnityEditor.MenuItem("CONTEXT/Button/Replace To/Unity Button", false, 100)]
private static void ReplaceToUnity(UnityEditor.MenuCommand command)
=> command.ReplaceCommandContext<XericButton, Button,
(Graphic targetGraphic, ButtonClickedEvent onClick)>(