mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 16:13:31 +08:00
Add side slider for future use
This commit is contained in:
@@ -34,7 +34,7 @@ public class MyComboBox : MonoBehaviour
|
||||
}
|
||||
var localizer = go.GetComponent<Localizer>();
|
||||
if (localizer) DestroyImmediate(localizer);
|
||||
|
||||
|
||||
var rect = (RectTransform)go.transform;
|
||||
var cbctrl = rect.transform.Find("ComboBox").GetComponent<UIComboBox>();
|
||||
foreach (var button in cbctrl.ItemButtons)
|
||||
@@ -146,7 +146,7 @@ public class MyComboBox : MonoBehaviour
|
||||
SetPrompt(prompt);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public MyComboBox WithFontSize(int size)
|
||||
{
|
||||
SetFontSize(size);
|
||||
@@ -158,7 +158,7 @@ public class MyComboBox : MonoBehaviour
|
||||
SetItems(items);
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
public MyComboBox WithIndex(int index)
|
||||
{
|
||||
SetIndex(index);
|
||||
|
||||
Reference in New Issue
Block a user