Exemplo n.º 1
0
        internal static void Clear()
        {
            LGuiContextCache.Clear();

            IO.Clear();
            Font = LGuiFont.Default;

            FocusID           = 0;
            ActiveID          = 0;
            HoveredID         = 0;
            FrameCount        = 0;
            PreviousControlID = 0;
            ActiveRect        = LGuiRect.Zero;
        }
Exemplo n.º 2
0
        public static void SetFrameScrollY(float Y)
        {
            var Title = LGuiContext.GetCurrentFrame().Title;

            LGuiContextCache.SetFrameOffset(Title, new LGuiVec2(LGuiContextCache.GetFrameOffset(Title).X, Y));
        }
Exemplo n.º 3
0
        public static float GetFrameScrollY()
        {
            var Title = LGuiContext.GetCurrentFrame().Title;

            return(LGuiContextCache.GetFrameOffset(Title).Y);
        }