<commit_before>﻿using OpenTK.Graphics.OpenGL4;
using Voxalia.ClientGame.GraphicsSystems;
using Voxalia.ClientGame.UISystem;
using Voxalia.ClientGame.UISystem.MenuSystem;

namespace Voxalia.ClientGame.ClientMainSystem
{
    public class MainMenuScreen: Screen
    {
        public UIMenu Menus;
        
        public Texture Topper;

        public override void Init()
        {
            Menus = new UIMenu(TheClient);
            Menus.Add(new UIMenuButton("ui/menus/buttons/basic", "Singleplayer", () => {
                TheClient.ShowSingleplayer();
            }, 10, 300, 350, 70, TheClient.FontSets.SlightlyBigger));
            Menus.Add(new UIMenuButton("ui/menus/buttons/basic", "Multiplayer", () => {
                UIConsole.WriteLine("MP!");
            }, 10, 400, 350, 70, TheClient.FontSets.SlightlyBigger));
            Topper = TheClient.Textures.GetTexture("ui/menus/voxalia_topper");
        }

        public override void Tick()
        {
            Menus.TickAll();
        }

        public override void SwitchTo()
        {
            MouseHandler.ReleaseMouse();
        }

        public override void Render()
        {
            TheClient.Establish2D();
            GL.ClearBuffer(ClearBuffer.Color, 0, new float[] { 0, 0.5f, 0.5f, 1 });
            GL.ClearBuffer(ClearBuffer.Depth, 0, new float[] { 1 });
            Topper.Bind();
            TheClient.Rendering.RenderRectangle(0, 0, 600, 300);
            Menus.RenderAll(TheClient.gDelta);
        }
    }
}
<commit_msg>initial new menu<commit_after>﻿using OpenTK.Graphics.OpenGL4;
using Voxalia.ClientGame.GraphicsSystems;
using Voxalia.ClientGame.UISystem;
using Voxalia.ClientGame.UISystem.MenuSystem;

namespace Voxalia.ClientGame.ClientMainSystem
{
    public class MainMenuScreen: Screen
    {
        public UIMenu Menus;
        
        public Texture Backg;

        public override void Init()
        {
            Menus = new UIMenu(TheClient);
            Menus.Add(new UIMenuButton("ui/menus/buttons/clear", "^5S^7ingleplayer", () => {
                TheClient.ShowSingleplayer();
            }, 10, 300, 350, 70, TheClient.FontSets.SlightlyBigger));
            Menus.Add(new UIMenuButton("ui/menus/buttons/clear", "^5M^7ultiplayer", () => {
                UIConsole.WriteLine("MP!");
            }, 10, 400, 350, 70, TheClient.FontSets.SlightlyBigger));
            Backg = TheClient.Textures.GetTexture("ui/menus/menuback");
        }

        public override void Tick()
        {
            Menus.TickAll();
        }

        public override void SwitchTo()
        {
            MouseHandler.ReleaseMouse();
        }

        public override void Render()
        {
            TheClient.Establish2D();
            GL.ClearBuffer(ClearBuffer.Color, 0, new float[] { 0, 0.5f, 0.5f, 1 });
            GL.ClearBuffer(ClearBuffer.Depth, 0, new float[] { 1 });
            Backg.Bind();
            TheClient.Rendering.RenderRectangle(0, 0, TheClient.Window.Width, TheClient.Window.Height);
            Menus.RenderAll(TheClient.gDelta);
        }
    }
}

{'fraction_non_alphanumeric': 0.11910185486495281, 'fraction_numerical': 0.024731532704197853, 'mean_word_length': 2.1271617497456763, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, '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': '4328106', 'n_tokens_mistral': 989, 'n_tokens_neox': 912, 'n_words': 164}