TechbloxModdingAPI/GamecraftModdingAPI/Interface/IMGUI/UIElement.cs
2020-12-21 16:31:57 -05:00

28 lines
No EOL
803 B
C#

using System;
namespace GamecraftModdingAPI.Interface.IMGUI
{
/// <summary>
/// GUI Element like a text field, button or picture.
/// This interface is used to wrap many elements from Unity's IMGUI system.
/// </summary>
public interface UIElement
{
/// <summary>
/// GUI operations to perform in the OnGUI scope.
/// This is basically equivalent to a MonoBehaviour's OnGUI method.
/// </summary>
void OnGUI();
/// <summary>
/// The element's name.
/// This should be unique for every instance of the class.
/// </summary>
string Name { get; }
/// <summary>
/// Whether to display the UI element or not.
/// </summary>
bool Enabled { get; }
}
}