You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/StompyRobot/SRDebugger/Scripts/UI/Controls/SRTabButton.cs

27 lines
634 B
C#

3 months ago
namespace SRDebugger.UI.Controls
{
using SRF;
using SRF.UI;
using UnityEngine;
using UnityEngine.UI;
public class SRTabButton : SRMonoBehaviourEx
{
[RequiredField] public Behaviour ActiveToggle;
[RequiredField] public UnityEngine.UI.Button Button;
[RequiredField] public RectTransform ExtraContentContainer;
[RequiredField] public StyleComponent IconStyleComponent;
[RequiredField] public Text TitleText;
public bool IsActive
{
get { return ActiveToggle.enabled; }
set { ActiveToggle.enabled = value; }
}
}
}