<commit_before>﻿using ImpactMan.Constants.Graphics;
using Microsoft.Xna.Framework;

namespace ImpactMan.Constants.Units
{
    using System.Collections.Generic;

    public static class MenuConstants
    {
        /// <summary>
        /// This dictionary keeps information about all menus in the game as well as the buttons they hold. 
        /// It is very important that these labels are exactly the same as the names of the images in the content pipeline 
        /// as they are used as asset names when the menus are uploaded.
        /// </summary>
        public static readonly Dictionary<string, List<string>> menuItemLabels = new Dictionary<string, List<string>>()
        {
            {"MainMenu", new List<string>()
            {
                "NewGame",
                "LoadGame",
                "HighScores",
                "Settings",
                "Quit"
            } },

            {"NewGameMenu", new List<string>()
            {
                "NewGame",
                "ResumeGame",
                "Quit"
            } },

            {"LoginMenu", new List<string>()
            {
                "LoginDone",
                "RegisterMenuButton"
            } },

            {"RegisterMenu", new List<string>()
            {
                "RegisterDone",
                "RegisterBackButton"
            } },
            {
                "HighScoresMenu", new List<string>()
                {
                    "HighScoresMenuBackButton"
                }
            }
        };

        /// <summary>
        /// Login menu text postition constants
        /// </summary>
        public const int LoginMenuUsernameX = 530;
        public const int LoginMenuUsernameY = 256;

        public const int LoginMenuPasswordX = <PASSWORD>;
        public const int LoginMenuPasswordY = <PASSWORD>;

        public const int LoginMenuErrorMessageX = 500;
        public const int LoginMenuErrorMessageY = 678;

        /// <summary>
        /// Signup menu text postition constants
        /// </summary>
        public const int SignupMenuUsernameX = 542;
        public const int SignupMenuUsernameY = 263;

        public const int SignupMenuPasswordX = 542;
        public const int SignupMenuPasswordY = <PASSWORD>;

        public const int SignupMenuErrorMessageX = 500;
        public const int SignupMenuErrorMessageY = 678;

        /// <summary>
        /// HighScores menu text postition constants
        /// </summary>
        public const int HighScoresMenuX = 60;
        public const int HighScoresMenuY = 140;

        public const string HighScoresMenuNumberFormat = "### ### ### ### ###";
        public const string HighScoresMenuPlayerFormat = "{0}. {1,-10} {2,15}";

        //<summary>
        // All menu constants
        //</summary>

        
        //Main menu params
        public static readonly int MainMenuWidth = GraphicsConstants.PreferredBufferWidth;       
        public static readonly int MainMenuHeight = GraphicsConstants.PreferredBufferHeight - 50;
      
        public static readonly int MainMenuItemWidth = (int)(MainMenuWidth / 3.25);
        public static readonly int MainMenuItemHeight = MainMenuHeight / 14;
        
        public static readonly int MainMenuPaddingTop = MainMenuItemHeight/7;
        public static readonly int MainMenuPaddingLeft = (int)(MainMenuWidth/ 2.888888888888889);


        //Login menu params
        public static readonly int LoginMenuWidth = MainMenuWidth;
        public static readonly int LoginMenuHeight = MainMenuHeight;
        
        public static readonly int LoginMenuItemWidth = LoginMenuWidth/13;
        public static readonly int LoginMenuItemHeight = (int)(LoginMenuHeight/23.33);
        
        public static readonly int LoginMenuPaddingTop = (int)(LoginMenuHeight/2.7);
        public static readonly int LoginMenuPaddingLeft =(int)(LoginMenuWidth/2.2);


        //Register menu params
        public static readonly int RegisterMenuWidth = MainMenuWidth;
        public static readonly int RegisterMenuHeight = MainMenuHeight;

        public static readonly int RegisterMenuItemWidth = LoginMenuItemWidth;
        public static readonly int RegisterMenuItemHeight = LoginMenuItemHeight;
        
        public static readonly int RegisterMenuPaddingTop =(int)(RegisterMenuHeight/2.3);
        public static readonly int RegisterMenuPaddingLeft = (int)(RegisterMenuWidth/2.2);


        //High score menu params
        public static readonly int HighScoresMenuWidth = MainMenuWidth;
        public static readonly int HighScoresMenuHeight = MainMenuHeight;
     
        public static readonly int HighScoresMenuItemWidth = HighScoresMenuWidth / 13;
        public static readonly int HighScoresMenuItemHeight = (int)(HighScoresMenuHeight / 23.33);

        public static readonly int HighScoresMenuPaddingTop = (int)(HighScoresMenuHeight-10);
        public static readonly int HighScoresMenuPaddingLeft = (int)(HighScoresMenuHeight / 23.33);
    }
}
<commit_msg>Fixed some bugs I made earlier.<commit_after>﻿using ImpactMan.Constants.Graphics;


namespace ImpactMan.Constants.Units
{
    using System.Collections.Generic;

    public static class MenuConstants
    {
        /// <summary>
        /// This dictionary keeps information about all menus in the game as well as the buttons they hold. 
        /// It is very important that these labels are exactly the same as the names of the images in the content pipeline 
        /// as they are used as asset names when the menus are uploaded.
        /// </summary>
        public static readonly Dictionary<string, List<string>> menuItemLabels = new Dictionary<string, List<string>>()
        {
            {"MainMenu", new List<string>()
            {
                "NewGame",
                "LoadGame",
                "HighScores",
                "Settings",
                "Quit"
            } },

            {"NewGameMenu", new List<string>()
            {
                "NewGame",
                "ResumeGame",
                "Quit"
            } },

            {"LoginMenu", new List<string>()
            {
                "LoginDone",
                "RegisterMenuButton"
            } },

            {"RegisterMenu", new List<string>()
            {
                "RegisterDone",
                "RegisterBackButton"
            } },
            {
                "HighScoresMenu", new List<string>()
                {
                    "HighScoresMenuBackButton"
                }
            }
        };

        /// <summary>

        /// <summary>
        /// Signup menu text postition constants
        /// </summary>

        public static readonly int ErrorMessageY = (int) (GraphicsConstants.PreferredBufferHeight / 1.02);

        //<summary>
        // All menu constants
        //</summary>


        //Main menu params
        public static readonly int MainMenuWidth = GraphicsConstants.PreferredBufferWidth;       
        public static readonly int MainMenuHeight = GraphicsConstants.PreferredBufferHeight - 50;
      
        public static readonly int MainMenuItemWidth = (int)(MainMenuWidth / 3.25);
        public static readonly int MainMenuItemHeight = MainMenuHeight / 14;
        
        public static readonly int MainMenuPaddingTop = MainMenuItemHeight/7;
        public static readonly int MainMenuPaddingLeft = (int)(MainMenuWidth/ 2.888888888888889);


        //Login menu params
        public static readonly int LoginMenuWidth = MainMenuWidth;
        public static readonly int LoginMenuHeight = MainMenuHeight;
        
        public static readonly int LoginMenuItemWidth = LoginMenuWidth/13;
        public static readonly int LoginMenuItemHeight = (int)(LoginMenuHeight/23.33);
        
        public static readonly int LoginMenuPaddingTop = (int)(LoginMenuHeight/2.7);
        public static readonly int LoginMenuPaddingLeft =(int)(LoginMenuWidth/2.2);

        /// Login menu text postition constants              //1300 : 700
        /// </summary>
        public static readonly int LoginMenuUsernameX = (int)(LoginMenuWidth/2.45);
        public static readonly int LoginMenuUsernameY = (int)(LoginMenuHeight / 2.6);

        public static readonly int LoginMenuPasswordX = (int)(LoginMenuWidth / 2.45);
        public static readonly int LoginMenuPasswordY = (int)(LoginMenuHeight / 2.143);

        public static readonly int LoginMenuErrorMessageX = (int)(LoginMenuWidth / 2.6);
        public static readonly int LoginMenuErrorMessageY = ErrorMessageY;


        //Register menu params
        public static readonly int RegisterMenuWidth = MainMenuWidth;
        public static readonly int RegisterMenuHeight = MainMenuHeight;

        public static readonly int RegisterMenuItemWidth = LoginMenuItemWidth;
        public static readonly int RegisterMenuItemHeight = LoginMenuItemHeight;
        
        public static readonly int RegisterMenuPaddingTop =(int)(RegisterMenuHeight/2.3);
        public static readonly int RegisterMenuPaddingLeft = (int)(RegisterMenuWidth/2.2);

        public static readonly int SignupMenuUsernameX = (int)(RegisterMenuWidth/2.4);
        public static readonly int SignupMenuUsernameY = (int)(RegisterMenuHeight/2.53);

        public static readonly int SignupMenuPasswordX = (int)(RegisterMenuWidth / 2.4);
        public static readonly int SignupMenuPasswordY = (int)(RegisterMenuHeight / 2.075);

        public static readonly int SignupMenuErrorMessageX = (int)(RegisterMenuWidth / 2.6);
        public static readonly int SignupMenuErrorMessageY = ErrorMessageY;


        //High score menu params
        public static readonly int HighScoresMenuWidth = MainMenuWidth;
        public static readonly int HighScoresMenuHeight = MainMenuHeight;
     
        public static readonly int HighScoresMenuItemWidth = HighScoresMenuWidth / 13;
        public static readonly int HighScoresMenuItemHeight = (int)(HighScoresMenuHeight / 23.33);

        public static readonly int HighScoresMenuPaddingTop = (int)(HighScoresMenuHeight-10);
        public static readonly int HighScoresMenuPaddingLeft = (int)(HighScoresMenuHeight / 23.33);

        /// <summary>
        /// HighScores menu text postition constants
        /// </summary>
        public static readonly int HighScoresMenuX =(int)(HighScoresMenuWidth/1188.33);
        public static readonly int HighScoresMenuY = (int)(HighScoresMenuHeight/5);

        public static readonly string HighScoresMenuNumberFormat = "### ### ### ### ###";
        public static readonly string HighScoresMenuPlayerFormat = "{0}. {1,-10} {2,15}";

    }
}

{'fraction_non_alphanumeric': 0.08089273942932479, 'fraction_numerical': 0.01789245691684716, 'mean_word_length': 2.219157320400121, 'pattern_counts': {'":': 0, '<': 44, '<?xml version=': 0, '>': 44, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 2, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4435854', 'n_tokens_mistral': 2724, 'n_tokens_neox': 2487, 'n_words': 780}