mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 02:53:29 +08:00
prepare for 1.2.21(maybe 1.3.0?) release
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using BepInEx.Configuration;
|
||||
using UnityEngine;
|
||||
@@ -76,6 +77,14 @@ public class MyCornerComboBox : MonoBehaviour
|
||||
_comboBox.DropDownCount = items.Length;
|
||||
}
|
||||
|
||||
public List<string> Items => _comboBox.Items;
|
||||
|
||||
public void UpdateLabelText()
|
||||
{
|
||||
var textComp = _comboBox.transform.Find("Main Button")?.GetComponentInChildren<Text>();
|
||||
if (textComp) textComp.text = _comboBox.Items[_comboBox.itemIndex];
|
||||
}
|
||||
|
||||
public void SetIndex(int index) => _comboBox.itemIndex = index;
|
||||
|
||||
public void SetSize(float width, float height)
|
||||
|
||||
Reference in New Issue
Block a user