Ejemplo n.º 1
0
        public static bool Group(string name, string title, nk_panel_flags flags, Action action)
        {
            var result = true;

            unsafe
            {
                if (Nuklear.nk_group_begin_titled(_nuklearContext, name, title, flags) != 0)
                    action?.Invoke();
                else
                    result = false;

                Nuklear.nk_group_end(_nuklearContext);
            }

            return result;
        }