示例#1
0
 public Scroll(Imgui imgui, Vector2 position, int width, int height, int scrollValue)
 {
     this.imgui      = imgui;
     startScroll     = scrollValue;
     this.scroll     = scrollValue;
     skippedHeight   = 0;
     this.width      = width;
     this.height     = height;
     startPosition   = position;
     itemFailedToFit = false;
 }
        public Panel(Imgui imgui, Vector2 startPosition, int width, int height)
        {
            this.imgui      = imgui;
            StartPosition   = startPosition;
            currentPosition = startPosition;
            Width           = width;
            Height          = height;

            if (imgui.Mode == ImguiMode.Render)
            {
                imgui.DrawFilledBox(startPosition, width, height, Color.DarkBlue);
            }
        }