A stable modding interface between Techblox and mods https://mod.exmods.org/
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

28 lines
802B

  1. using System;
  2. namespace TechbloxModdingAPI.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. }