Esempio n. 1
0
        public void RenderView(Matrix4 VP, Scene s)
        {
            if (PrevView != null)
            {
                PrevView.RenderView(VP, s);
            }
            OrthoRenderEngine.DrawColorOnEntireScreen(gradiantColor);
            OrthoRenderEngine.DrawColoredBox(Vector4.UnitW, barXPos, 0, barWidth, OrthoRenderEngine.GetCanvasHeight());
            float maxY = OrthoRenderEngine.GetCanvasHeight() * 0.55f;
            float x    = Input.OrthoMouseX - barXPos;
            float y    = maxY + optionHeight - Input.OrthoMouseY;

            if (x > 0 & x < barWidth & y > 0 & y < writers.Length * optionHeight)
            {
                hovering = (int)y / optionHeight;
            }
            else
            {
                hovering = -1;
            }
            for (int i = 0; i < writers.Length; i++)
            {
                OrthoRenderEngine.DrawColoredTexturedBox(hovering == i ? Util.White : Util.White60, writers[i].GetTextureID(), barXPos, maxY - optionHeight * i, writers[i].Width, writers[i].Height);
            }
        }