This repository has been archived on 2026-05-02. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
CompuLogic/Assets/Scripts/UI/UIFolder.cs
T
2020-12-22 11:37:35 +01:00

57 lines
809 B
C#
Executable File

using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
namespace UntitledLogicGame.UI
{
public class UIFolder : UIToolbarButton
{
#region Unity Properties
public Sprite folderImage;
public Sprite backImage;
#endregion
#region Public Properties
public bool IsBack { get; set; }
public string Name
{
set
{
Text.text = value;
}
}
#endregion
#region Private Properties
#endregion
#region Unity Methods
private void OnEnable()
{
Image.sprite = IsBack ? backImage : folderImage;
}
#endregion
#region Public Methods
#endregion
#region Private Methods
#endregion
}
}