设置扩展
This commit is contained in:
@@ -12,9 +12,9 @@ namespace Ichni.UI
|
||||
public int selectedIndex;
|
||||
public string selectedOption;
|
||||
|
||||
public void SetUp(int initialValue, List<string> options, string title = "")
|
||||
public void SetUp(int initialValue, List<string> options, string title = "", bool preservePrefabTitle = false)
|
||||
{
|
||||
base.SetUp(title);
|
||||
base.SetUp(title, preservePrefabTitle: preservePrefabTitle);
|
||||
|
||||
this.options = options;
|
||||
this.dropdown.items = new List<CustomDropdown.Item>();
|
||||
@@ -45,4 +45,4 @@ namespace Ichni.UI
|
||||
dropdown.UpdateItemLayout();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user