Set up controller classes for lobby and host. Made changes to TitleController and MainController. Title screen can now enter lobby and host.

#story[1087]
This commit is contained in:
David Wu
2017-07-25 16:15:32 +12:00
parent 913946265d
commit 9159e16a21
10 changed files with 211 additions and 78 deletions
@@ -0,0 +1,46 @@
package visualiser.Controllers;
import javafx.application.Application;
import javafx.fxml.FXML;
import javafx.scene.control.*;
import javafx.scene.layout.AnchorPane;
import javafx.stage.Stage;
import mock.app.App;
import java.io.IOException;
import java.net.URL;
import java.util.ResourceBundle;
/**
* Created by zwu18 on 25/07/17.
*/
public class HostController extends Controller {
@FXML
TextField gameNameField;
@FXML
TextField hostNameField;
@FXML
AnchorPane hostWrapper;
@Override
public void initialize(URL location, ResourceBundle resources) {
}
public void hostGamePressed() throws IOException{
System.out.println("TODO: Run mock");
}
public AnchorPane startWrapper(){
return hostWrapper;
}
public void hostGame(){
hostWrapper.setVisible(true);
System.out.println("Reacted hostGame");
}
}