2
0

GUIToggleGroup.cs 885 B

123456789101112131415161718192021222324
  1. using System;
  2. using System.Runtime.CompilerServices;
  3. namespace BansheeEngine
  4. {
  5. /// <summary>
  6. /// Object that allows you to group multiple GUI toggle buttons. Only one button among the grouped ones can be active.
  7. /// </summary>
  8. public sealed class GUIToggleGroup : ScriptObject
  9. {
  10. /// <summary>
  11. /// Creates a new toggle group.
  12. /// </summary>
  13. /// <param name="allowAllOff">If true all of the toggle buttons can be turned off, if false one will always be
  14. /// turned on.</param>
  15. public GUIToggleGroup(bool allowAllOff = false)
  16. {
  17. Internal_CreateInstance(this, allowAllOff);
  18. }
  19. [MethodImpl(MethodImplOptions.InternalCall)]
  20. private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff);
  21. }
  22. }