mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
fix(UXAssist): fix UI color issue imported in 574919f
This commit is contained in:
1 parent
87061d5235
commit
4b2f9c67dc
16 files changed
+14
-48
No files matched your search
@@ -27,14 +27,12 @@ public class MyFlatButton : MonoBehaviour
|
||||
if (img != null)
|
||||
{
|
||||
img.sprite = panel.buttonDefaultSprite;
|
||||
img.color = new Color(1f, 1f, 1f, 13f / 255f);
|
||||
img.enabled = true;
|
||||
}
|
||||
|
||||
img = btn.gameObject.transform.Find("frame")?.GetComponent<Image>();
|
||||
if (img != null)
|
||||
{
|
||||
img.color = new Color(1f, 1f, 1f, 0f);
|
||||
img.enabled = true;
|
||||
}
|
||||
|
||||
@@ -42,7 +40,6 @@ public class MyFlatButton : MonoBehaviour
|
||||
if (text)
|
||||
{
|
||||
text.text = "";
|
||||
text.color = Color.white;
|
||||
text.fontStyle = FontStyle.Normal;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user