mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2025-12-09 05:33:37 +08:00
prepare for 1.2.21(maybe 1.3.0?) release
This commit is contained in:
@@ -255,5 +255,6 @@ public class MyCheckButton : MonoBehaviour
|
||||
uiButton.transitions[0].pressedColor = closePressColor;
|
||||
uiButton.transitions[0].normalColor = new Color(0.6557f, 0.9145f, 1f, 0.0627f);
|
||||
}
|
||||
uiButton.RefreshTransitionsImmediately();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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