1
0
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:
2025-04-25 01:50:24 +08:00
parent 68a18c113d
commit 5f53c50da0
22 changed files with 208 additions and 131 deletions

View File

@@ -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)