Esempio n. 1
0
        public static bool Window(string Name, string Title, float X, float Y, float W, float H, NkPanelFlags Flags)
        {
            bool Res = true;

            if (Nuklear.nk_begin_titled(Ctx, Name, Title, new NkRect(X, Y, W, H), (uint)Flags) == 0)
            {
                Res = false;
            }

            Nuklear.nk_end(Ctx);
            return(Res);
        }
Esempio n. 2
0
        public static bool Window(string Name, string Title, float X, float Y, float W, float H, nk_panel_flags Flags, Action A)
        {
            bool Res = true;

            if (Nuklear.nk_begin_titled(Ctx, Name, Title, new nk_rect(X, Y, W, H), (uint)Flags) != 0)
            {
                A?.Invoke();
            }
            else
            {
                Res = false;
            }

            Nuklear.nk_end(Ctx);
            return(Res);
        }