mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
minor cleanup
This commit is contained in:
@@ -181,8 +181,16 @@ public class NewGameScene extends MenuScene {
|
||||
ui.onButtonPress("start", NewGameScene.this::start);
|
||||
ui.onButtonPress("leftAvatar", NewGameScene.this::leftAvatar);
|
||||
ui.onButtonPress("rightAvatar", NewGameScene.this::rightAvatar);
|
||||
difficultyHelp.addListener(new ClickListener(){ public void clicked(InputEvent e, float x, float y){ showDifficultyHelp(); }});
|
||||
modeHelp.addListener(new ClickListener(){ public void clicked(InputEvent e, float x, float y){ showModeHelp(); }});
|
||||
difficultyHelp.addListener(new ClickListener() {
|
||||
public void clicked(InputEvent e, float x, float y) {
|
||||
showDifficultyHelp();
|
||||
}
|
||||
});
|
||||
modeHelp.addListener(new ClickListener() {
|
||||
public void clicked(InputEvent e, float x, float y) {
|
||||
showModeHelp();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private static NewGameScene object;
|
||||
@@ -195,6 +203,7 @@ public class NewGameScene extends MenuScene {
|
||||
|
||||
float avatarT = 1f, avatarTT = 1f;
|
||||
float nameT = 1f, nameTT = 1f;
|
||||
|
||||
@Override
|
||||
public void act(float delta) {
|
||||
super.act(delta);
|
||||
@@ -211,10 +220,12 @@ public class NewGameScene extends MenuScene {
|
||||
nameTT = nameT;
|
||||
}
|
||||
}
|
||||
|
||||
private void generateAvatar() {
|
||||
avatarIndex = rand.nextInt();
|
||||
updateAvatar();
|
||||
}
|
||||
|
||||
private void generateName() {
|
||||
//gender should be either Male or Female
|
||||
String val = gender.getCurrentIndex() > 0 ? "Female" : "Male";
|
||||
|
||||
Reference in New Issue
Block a user