using System; using System.Runtime.CompilerServices; namespace BansheeEngine { /// /// Object that allows you to group multiple GUI toggle buttons. Only one button among the grouped ones can be active. /// public sealed class GUIToggleGroup : ScriptObject { /// /// Creates a new toggle group. /// /// If true all of the toggle buttons can be turned off, if false one will always be /// turned on. public GUIToggleGroup(bool allowAllOff = false) { Internal_CreateInstance(this, allowAllOff); } [MethodImpl(MethodImplOptions.InternalCall)] private static extern void Internal_CreateInstance(GUIToggleGroup instance, bool allowAllOff); } }