I have a Gamebutton, but my problem is, that the image is 300x150, but i would like to use a button 200x130.
setSize() cut the picture, but don't scale it. Do you know any solution? Thanks!
GameMenuButton play, options, profil, editor, exit;
play = new GameMenuButton("src/game/data/gui/menu/start_game.png", "src/game/data/gui/menu/start_game_p.png");
play.setShrinkable(true);
play.setExpandable(true);
play.setSize(200,130);
play.setXY(40, 0);