You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
667 B
38 lines
667 B
2 years ago
|
using UnityEngine;
|
||
|
using UnityEngine.UI;
|
||
|
using System.Collections;
|
||
|
using System;
|
||
|
|
||
|
namespace UIWidgets {
|
||
|
/// <summary>
|
||
|
/// TabIconButton.
|
||
|
/// </summary>
|
||
|
public class TabIconButton : TabButton {
|
||
|
/// <summary>
|
||
|
/// The name.
|
||
|
/// </summary>
|
||
|
[SerializeField]
|
||
|
public Text Name;
|
||
|
|
||
|
/// <summary>
|
||
|
/// The icon.
|
||
|
/// </summary>
|
||
|
[SerializeField]
|
||
|
public Image Icon;
|
||
|
|
||
|
/// <summary>
|
||
|
/// The size of the set native.
|
||
|
/// </summary>
|
||
|
[SerializeField]
|
||
|
public bool SetNativeSize;
|
||
|
|
||
|
/// <summary>
|
||
|
/// Sets the data.
|
||
|
/// </summary>
|
||
|
/// <param name="tab">Tab.</param>
|
||
|
public virtual void SetData(TabIcons tab)
|
||
|
{
|
||
|
Name.text = tab.Name;
|
||
|
}
|
||
|
}
|
||
|
}
|