Created UI option in the start menu to play a practice game. #story[1189]
This commit is contained in:
@@ -5,6 +5,7 @@ import javafx.fxml.FXMLLoader;
|
||||
import javafx.scene.Parent;
|
||||
import javafx.scene.Scene;
|
||||
import javafx.scene.control.Button;
|
||||
import javafx.scene.control.Label;
|
||||
import javafx.scene.control.RadioButton;
|
||||
import javafx.scene.layout.AnchorPane;
|
||||
import javafx.stage.Modality;
|
||||
@@ -31,6 +32,8 @@ public class TitleController extends Controller {
|
||||
RadioButton dayModeRD;
|
||||
@FXML
|
||||
RadioButton nightModeRD;
|
||||
@FXML
|
||||
Label tutorialLabel;
|
||||
|
||||
/**
|
||||
* Method called when the 'host a game' button is pressed.
|
||||
@@ -81,6 +84,7 @@ public class TitleController extends Controller {
|
||||
|
||||
@Override
|
||||
public void initialize(URL location, ResourceBundle resources) {
|
||||
tutorialLabel.setWrapText(true);
|
||||
|
||||
}
|
||||
|
||||
@@ -105,4 +109,11 @@ public class TitleController extends Controller {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* start tutorial event called
|
||||
*/
|
||||
public void tutorialStartPressed(){
|
||||
System.out.println("Start the tutorial!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user