A stable modding interface between Techblox and mods https://mod.exmods.org/
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.

28 lines
803B

  1. using System;
  2. namespace GamecraftModdingAPI.Interface.IMGUI
  3. {
  4. /// <summary>
  5. /// GUI Element like a text field, button or picture.
  6. /// This interface is used to wrap many elements from Unity's IMGUI system.
  7. /// </summary>
  8. public interface UIElement
  9. {
  10. /// <summary>
  11. /// GUI operations to perform in the OnGUI scope.
  12. /// This is basically equivalent to a MonoBehaviour's OnGUI method.
  13. /// </summary>
  14. void OnGUI();
  15. /// <summary>
  16. /// The element's name.
  17. /// This should be unique for every instance of the class.
  18. /// </summary>
  19. string Name { get; }
  20. /// <summary>
  21. /// Whether to display the UI element or not.
  22. /// </summary>
  23. bool Enabled { get; }
  24. }
  25. }