A stable modding interface between Techblox and mods https://mod.exmods.org/
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

28 linhas
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. }