<commit_before>package com.nahrot.teleportball.huds.menuhud;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.nahrot.teleportball.Application;
import com.nahrot.teleportball.Constants;
import com.nahrot.teleportball.huds.Hud;
import com.nahrot.teleportball.huds.menuhud.actors.HelpButton;
import com.nahrot.teleportball.huds.menuhud.actors.PlayButton;
import com.nahrot.teleportball.huds.menuhud.actors.TitleLabel;

public class MenuHud extends Hud
{
    private TitleLabel titleLabel;
    private PlayButton playButton;
    private HelpButton helpButton;

    public MenuHud(Viewport viewport, SpriteBatch batch, final Application app)
    {
        super(viewport, batch);
        titleLabel = new TitleLabel();
        playButton = new PlayButton(app);
        helpButton = new HelpButton(app);
        titleLabel.getLabel().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2 + 400, Align.center);
        playButton.getButton().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2, Align.center);
        helpButton.getButton().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2 - 200, Align.center);

        actors.add(titleLabel.getLabel());
        actors.add(playButton.getButton());
        actors.add(helpButton.getButton());
        addAllActorsToStage();
    }

    public void update(float delta)
    {
        super.update(delta);
        if ()<commit_msg>hud check<commit_after>package com.nahrot.teleportball.huds.menuhud;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;
import com.badlogic.gdx.utils.Align;
import com.badlogic.gdx.utils.viewport.Viewport;
import com.nahrot.teleportball.Application;
import com.nahrot.teleportball.Constants;
import com.nahrot.teleportball.huds.Hud;
import com.nahrot.teleportball.huds.menuhud.actors.HelpButton;
import com.nahrot.teleportball.huds.menuhud.actors.PlayButton;
import com.nahrot.teleportball.huds.menuhud.actors.TitleLabel;

public class MenuHud extends Hud
{
    private TitleLabel titleLabel;
    private PlayButton playButton;
    private HelpButton helpButton;

    public MenuHud(Viewport viewport, SpriteBatch batch, final Application app)
    {
        super(viewport, batch);
        titleLabel = new TitleLabel();
        playButton = new PlayButton(app);
        helpButton = new HelpButton(app);
        titleLabel.getLabel().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2 + 400, Align.center);
        playButton.getButton().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2, Align.center);
        helpButton.getButton().setPosition(Constants.V_WIDTH / 2, Constants.V_HEIGHT / 2 - 200, Align.center);

        actors.add(titleLabel.getLabel());
        actors.add(playButton.getButton());
        actors.add(helpButton.getButton());
        addAllActorsToStage();
    }

    public void update(float delta)
    {
        super.update(delta);
{'fraction_non_alphanumeric': 0.10878378378378378, 'fraction_numerical': 0.008783783783783784, 'mean_word_length': 3.8224755700325734, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5524573', 'n_tokens_mistral': 983, 'n_tokens_neox': 934, 'n_words': 160}