public void DrawMainMenu(int[] menuItemXPaddings) { float aspectRatio = VisualValues.GetAspectRatio(); Vector2 titleTopLeftCorner = new Vector2(-aspectRatio, 1); Vector2 titleBottomRightCorner = new Vector2(aspectRatio, -1); BasicGraphics.DrawTextureWithUse(titleTexture, titleTopLeftCorner, titleBottomRightCorner); for (int i = 0; i < 6; i++) { DrawMenuItem(i, menuItemXPaddings[i]); } }
private float GetScreenWidth() { return(2 * VisualValues.ZoomFactor * VisualValues.GetAspectRatio()); }