update 0.5.1

This commit is contained in:
2025-08-09 16:57:57 +08:00
parent 343fc7a2f6
commit 7739716380
6 changed files with 68 additions and 7 deletions
@@ -43,6 +43,13 @@ namespace Deconstruction.UI.TmpText
/// </summary>
private Dictionary<string, Action> _linkCallbacks = new Dictionary<string, Action>();
#if UNITY_EDITOR
protected void OnValidate()
{
canvas = GetComponentInParent<Canvas>();
}
#endif
protected void Awake()
{
if (canvas == null)
+10 -3
View File
@@ -56,11 +56,18 @@ namespace Deconstruction.UI.TmpText
yield return link;
}
}
#if UNITY_EDITOR
protected void OnValidate()
{
_tmpText = GetComponent<TextMeshProUGUI>();
}
#endif
private void Awake()
{
_tmpText = GetComponent<TextMeshProUGUI>();
if (_tmpText == null)
_tmpText = GetComponent<TextMeshProUGUI>();
if (manager == null)
transform.GetParents().Startup(transform).GetComponent(out manager);
if (manager == null)
@@ -87,7 +94,7 @@ namespace Deconstruction.UI.TmpText
}
catch (Exception e)
{
Debug.LogError($"点击 {_tmpText.text.LimitStringLength(32)} 的超链接 {linkID} 时出错:\n{e.Message}\n{e.Data}", this);
Debug.LogError($"超链接目标事件存在错误 {_tmpText.text.LimitStringLength(32)} :\n{e.Message}\n{e.Data}", this);
}
}
}
Binary file not shown.
+45 -2
View File
@@ -934,6 +934,11 @@
游戏方法调用标记类型
</summary>
</member>
<member name="T:XericLibrary.Runtime.CustomEditor.MacroMonoAttribute.AutoFindComponent">
<summary>
自动查找组件
</summary>
</member>
<member name="T:XericLibrary.Runtime.CustomEditor.MenuAttribute.CusMeAttribute">
<summary>
自定义菜单特性。
@@ -5588,12 +5593,12 @@
值
</summary>
</member>
<member name="F:XericLibrary.Runtime.MacroLibrary.MacroMath.NumberValueBlock.min">
<member name="F:XericLibrary.Runtime.MacroLibrary.MacroMath.NumberValueBlock.minValid">
<summary>
最小值
</summary>
</member>
<member name="F:XericLibrary.Runtime.MacroLibrary.MacroMath.NumberValueBlock.max">
<member name="F:XericLibrary.Runtime.MacroLibrary.MacroMath.NumberValueBlock.maxValid">
<summary>
最大值
</summary>
@@ -5618,6 +5623,18 @@
无效时展示
</summary>
</member>
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.NumberValueBlock.#ctor(System.Double,System.Double,System.Double,System.String,System.String,System.Boolean,System.String)">
<summary>
值包裹器
</summary>
<param name="defaultValue"></param>
<param name="minValid"></param>
<param name="maxValid"></param>
<param name="name"></param>
<param name="format"></param>
<param name="enableInvalidValue"></param>
<param name="invalidString"></param>
</member>
<member name="T:XericLibrary.Runtime.MacroLibrary.MacroMath.ValueExpressionBlock">
<summary>
值表达式包裹器(没有子项,不计数)
@@ -5675,6 +5692,19 @@
<param name="mode"></param>
<param name="expression"></param>
</member>
<member name="T:XericLibrary.Runtime.MacroLibrary.MacroMath.ConditionBlock">
<summary>
条件包裹器
</summary>
</member>
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.ConditionBlock.SetParamter(System.Int32,System.Object[])">
<summary>
设置参数
</summary>
<param name="startIndex">参数起点索引</param>
<param name="parameters">所有参数</param>
<returns>返回使用了多少参数</returns>
</member>
<member name="T:XericLibrary.Runtime.MacroLibrary.MacroMath.AlignBlock">
<summary>
对齐
@@ -6173,6 +6203,14 @@
<param name="mode">判断模式</param>
<returns></returns>
</member>
<member name="M:XericLibrary.Runtime.MacroLibrary.MacroMath.ProcessString(System.String,XericLibrary.Runtime.MacroLibrary.MacroMath.EqualsMode)">
<summary>
预处理字符串(应用所有模式规则)
</summary>
<param name="str"></param>
<param name="mode"></param>
<returns></returns>
</member>
<member name="F:XericLibrary.Runtime.MacroLibrary.MacroMath.DayPerYear">
<summary>
一年有多少天
@@ -14143,6 +14181,11 @@
先导事件(如果MONO不允许启动Awake,先导事件仍会触发)
</summary>
</member>
<member name="T:XericLibrary.Runtime.Type.Weakly.MacroMonoBehaviour">
<summary>
原生支持各种宏用法的mono脚本
</summary>
</member>
<member name="T:XericLibrary.Runtime.Type.Weakly.XericSeriousMonoBehaviour">
<summary>
严格模式脚本