1
0
mirror of https://github.com/soarqin/DSP_Mods.git synced 2025-12-09 04:13:32 +08:00

UXAssist v1.0.10

This commit is contained in:
2024-01-02 00:02:58 +08:00
parent 74c98c9934
commit 980b38d39e
9 changed files with 43 additions and 34 deletions

View File

@@ -124,7 +124,13 @@ public class MyWindow: ManualBehaviour
var btn = Instantiate(panel.layerButtons[0]);
btn.gameObject.name = objName;
btn.highlighted = false;
var img = btn.gameObject.transform.Find("frame")?.GetComponent<Image>();
var img = btn.GetComponent<Image>();
if (img != null)
{
img.sprite = panel.buttonDefaultSprite;
img.color = new Color(img.color.r, img.color.g, img.color.b, 13f / 255f);
}
img = btn.gameObject.transform.Find("frame")?.GetComponent<Image>();
if (img != null)
{
img.color = new Color(img.color.r, img.color.g, img.color.b, 0f);