设置扩展
This commit is contained in:
@@ -19,8 +19,18 @@ namespace Ichni.UI
|
||||
|
||||
public UnityAction updateValueAction;
|
||||
|
||||
public virtual void SetUp(string title = "", string subTitle = "")
|
||||
/// <summary>
|
||||
/// 初始化设置控件的标题区域。
|
||||
/// <paramref name="preservePrefabTitle"/> 用于已经由 Unity Localization 直接驱动标题的控件:
|
||||
/// 运行时代码不会覆盖或隐藏 Prefab 中的本地化标题。
|
||||
/// </summary>
|
||||
public virtual void SetUp(string title = "", string subTitle = "", bool preservePrefabTitle = false)
|
||||
{
|
||||
if (preservePrefabTitle)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (title != "")
|
||||
{
|
||||
SetTitle(title, subTitle);
|
||||
@@ -51,4 +61,4 @@ namespace Ichni.UI
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user