22 lines
380 B
C#
22 lines
380 B
C#
using UnityEngine;
|
|
|
|
namespace UIWidgets
|
|
{
|
|
public class TabIconDefaultButton : TabIconButton
|
|
{
|
|
public override void SetData(TabIcons tab)
|
|
{
|
|
Name.text = tab.Name;
|
|
if (Icon != null)
|
|
{
|
|
Icon.sprite = tab.IconDefault;
|
|
if (SetNativeSize)
|
|
{
|
|
Icon.SetNativeSize();
|
|
}
|
|
Icon.color = ((!(Icon.sprite == null)) ? Color.white : Color.clear);
|
|
}
|
|
}
|
|
}
|
|
}
|