Revert colorblock changes

This commit is contained in:
Sinai
2021-03-30 19:55:18 +11:00
parent 0555a644b7
commit 40f698122d
5 changed files with 9 additions and 32 deletions

View File

@ -64,7 +64,14 @@ namespace UnityExplorer.UI
public static void SetColorBlockValues(ref this ColorBlock colorBlock, Color? normal = null, Color? highlighted = null,
Color? pressed = null)
{
RuntimeProvider.Instance.SetColorBlockColors(ref colorBlock, normal, highlighted, pressed);
if (normal != null)
colorBlock.normalColor = (Color)normal;
if (highlighted != null)
colorBlock.highlightedColor = (Color)highlighted;
if (pressed != null)
colorBlock.pressedColor = (Color)pressed;
}
/// <summary>