namespace UIWidgets
{
using UIWidgets.l10n;
using UnityEngine;
///
/// TabIconActiveButton.
///
public class TabIconActiveButton : TabIconButton
{
///
/// Sets the data.
///
/// Tab.
public override void SetData(TabIcons tab)
{
NameAdapter.text = Localization.GetTranslation(tab.Name);
if (Icon != null)
{
Icon.sprite = tab.IconActive;
if (SetNativeSize)
{
Icon.SetNativeSize();
}
Icon.color = (Icon.sprite == null) ? Color.clear : Color.white;
}
}
}
}