Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

Commit

Permalink
????
Browse files Browse the repository at this point in the history
  • Loading branch information
pjreiniger committed Dec 4, 2019
1 parent 26b887f commit fde8a36
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import javafx.fxml.FXMLLoader;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import javafx.stage.Screen;
import javafx.stage.Stage;

public class SimulatorApplication extends Application
Expand Down Expand Up @@ -43,6 +44,12 @@ public final void notifyPreloader2(PreloaderNotification aInfo)
public void start(Stage aPrimaryStage) throws Exception
{
aPrimaryStage.setScene(new Scene(mMainPane));
aPrimaryStage.setTitle("SnobotSim");
aPrimaryStage.setMinWidth(300);
aPrimaryStage.setMinHeight(480);
aPrimaryStage.setWidth(300);
aPrimaryStage.setHeight(Screen.getPrimary().getVisualBounds().getHeight());

aPrimaryStage.show();

mSimulator.startSimulation();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class SimulatorPreloaderController
private ProgressBar mProgressBar;

@FXML
public void initialize()
private void initialize()
{
mProgressBar.setProgress(-1);
mVersionLabel.setText(SnobotSimGuiVersion.Version);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,19 +11,19 @@
fx:controller="com.snobot.simulator.SimulatorPreloaderController"
fx:id="root"
prefWidth="480.0" prefHeight="240.0">
<Pane fx:id="backgroundContainer"/>
<Pane fx:id="mBackgroundContainer"/>
<center>
<StackPane>
<VBox alignment="CENTER_LEFT" maxWidth="-Infinity">
<Label text="SnobotSim"/>
<Label fx:id="versionLabel"/>
<Label fx:id="mVersionLabel"/>
</VBox>
</StackPane>
</center>
<bottom>
<VBox>
<Label fx:id="stateLabel" alignment="CENTER" maxWidth="Infinity" textAlignment="CENTER"/>
<ProgressBar fx:id="progressBar" maxWidth="Infinity" progress="0"/>
<Label fx:id="mStateLabel" alignment="CENTER" maxWidth="Infinity" textAlignment="CENTER"/>
<ProgressBar fx:id="mProgressBar" maxWidth="Infinity" progress="0"/>
</VBox>
</bottom>
</BorderPane>

0 comments on commit fde8a36

Please sign in to comment.