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

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
+7 -7
View File
@@ -89,7 +89,7 @@ namespace XericUI
m_ximage = graphic.GetComponent<XericImage>();
if (m_ximage)
return m_ximage;
Debug.Log("注意替换toggle的checkmark为XericImage以支持完整的功能");
Debug.Log("ע���滻toggle��checkmarkΪXericImage��֧�������Ĺ���");
return null;
}
}
@@ -226,13 +226,13 @@ namespace XericUI
#endif
}
#region 组件替换
#region ����滻
#if UNITY_EDITOR
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To XericToggle", true)]
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To/Xeric Toggle", true)]
private static bool ValidateReplaceToXeric(UnityEditor.MenuCommand command)
=> command.context is Toggle and not XericToggle;
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To XericToggle", false, 10)]
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To/Xeric Toggle", false, 10)]
private static void ReplaceToXeric(UnityEditor.MenuCommand command)
{
command.ReplaceCommandContext<Toggle, XericToggle,
@@ -245,14 +245,14 @@ namespace XericUI
t.group = d.group;
t.onValueChanged = d.onValueChanged;
});
Debug.Log("请手动替换toggle下的Checkmark Image组件为XericImage,否则Toggle工作时取消选择的状态会保持为ison状态。");
Debug.Log("���ֶ��滻toggle�µ�Checkmark Image���ΪXericImage������Toggle����ʱȡ��ѡ���״̬�ᱣ��Ϊison״̬��");
}
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To Toggle", true)]
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To/Unity Toggle", true)]
private static bool ValidateReplaceToUnity(UnityEditor.MenuCommand command)
=> command.context is XericToggle;
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To Toggle", false, 10)]
[UnityEditor.MenuItem("CONTEXT/Toggle/Replace To/Unity Toggle", false, 100)]
private static void ReplaceToUnity(UnityEditor.MenuCommand command)
=> command.ReplaceCommandContext<XericToggle, Toggle,
(Graphic graphic, ToggleGroup group, ToggleEvent onValueChanged)>(