public MenuButton(int index, ImageHandler images, int windowWidth, int windowHeight)
    {

        int yGap;
        
        switch(index)
        {
            case 0:
                this.action = GameEngine.ACTION.NEW_GAME;
                break;
            case 1:
                this.action = GameEngine.ACTION.OPTIONS;
                break;
            case 2:
                this.action = GameEngine.ACTION.MANUAL;
                break;
            case 3:
                this.action = GameEngine.ACTION.HIGH_SCORE;
                break;
            case 4:
                this.action = GameEngine.ACTION.QUIT;
                break;
        }
        
        yGap = windowHeight - ImageHandler.menuItemsCount*buttonHeight;
        yGap /= ImageHandler.menuItemsCount+2;
        
        x = (windowWidth-buttonWidth)/2;
        y = yGap*(index+1) + index*buttonHeight;

        buttonImage = images.getMenuButton(index);
        buttonImageFocused = images.getFocusedMenuButton(index);
        hasFocus = false;
        statusChanged = true;
        previouslyFocused = true;
    }