We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ResultFactoryみたいなクラスを用意しておいて簡単にリザルトを作れるようにしたい
The text was updated successfully, but these errors were encountered:
欲しい機能は
を設定できるようなBuilderクラス
例えば
ResultBuilder builder = new ResultBuilder(); builder.setTitle("Game Over"); builder.set中央に出るやつ(score + ""); builder.setDescription("あなたは地球を守れませんでした……", "次も頑張りましょう!"); builder.setMedal(new Medal(moonsWorkMedalImage)); GameScene result = builder.build(); SceneManager.getInstance().push(result);
みたいな感じでできると良さそう!
net.trpfrog.medipro_game.mini_game.GameOverWindow が参考になりそうです
net.trpfrog.medipro_game.mini_game.GameOverWindow
Sorry, something went wrong.
メソッドチェーンができればもっと便利かもしれません。
var scene = new ResultBuilder() .setTitle("title") .setDescription("...") .setMedal(new Medal()) .setColor(Color.GREEN) .setWindowSize(300, 200) .build();
みたいに書けます。
trpfrog
No branches or pull requests
ResultFactoryみたいなクラスを用意しておいて簡単にリザルトを作れるようにしたい
The text was updated successfully, but these errors were encountered: