Refactored 2d game view distance calculations to better size and sale the map,

#implement #refactor #story[1275]
This commit is contained in:
Calum
2017-09-25 21:06:18 +13:00
parent 9b00ba654a
commit 35b50d1436
4 changed files with 147 additions and 98 deletions
+7 -8
View File
@@ -12,7 +12,8 @@
<?import javafx.scene.layout.StackPane?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<StackPane fx:id="serverListMainStackPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng302.visualiser.controllers.LobbyController">
<StackPane fx:id="serverListMainStackPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8.0.112" xmlns:fx="http://javafx.com/fxml/1" fx:controller="seng302.visualiser.controllers.LobbyController">
<children>
<GridPane fx:id="serverListMainGridPane" maxHeight="1.7976931348623157E308" maxWidth="1.7976931348623157E308">
<children>
@@ -37,8 +38,7 @@
</GridPane>
<GridPane>
<children>
<Label fx:id="serverName" text="Party Parrots In Space"
GridPane.valignment="CENTER">
<Label fx:id="serverName" text="Party Parrots In Space" GridPane.valignment="CENTER">
<font>
<Font size="31.0" />
</font>
@@ -46,8 +46,7 @@
<Insets left="35.0" top="10.0" />
</padding>
</Label>
<Label fx:id="mapName" text="This is a map, it's called Haoming"
GridPane.rowIndex="1">
<Label fx:id="mapName" text="This is a map, it's called Haoming" GridPane.rowIndex="1">
<padding>
<Insets left="35.0" top="-15.0" />
</padding>
@@ -73,13 +72,13 @@
<children>
<ScrollPane fx:id="playerListScrollPane" hbarPolicy="NEVER" GridPane.columnIndex="1" GridPane.halignment="CENTER" GridPane.valignment="CENTER">
<content>
<VBox fx:id="playerListVBox" prefHeight="200.0" prefWidth="100.0"/>
<VBox fx:id="playerListVBox" prefHeight="200.0" prefWidth="100.0" />
</content>
<GridPane.margin>
<Insets bottom="15.0" left="7.0" right="15.0" top="15.0" />
</GridPane.margin>
</ScrollPane>
<Pane fx:id="serverMap" style="-fx-background-color: skyblue;">
<Pane fx:id="serverMap" prefHeight="370.0" prefWidth="0.0" style="-fx-background-color: skyblue;">
<GridPane.margin>
<Insets bottom="15.0" left="15.0" right="7.0" top="15.0" />
</GridPane.margin>
@@ -96,7 +95,7 @@
<RowConstraints maxHeight="80.0" minHeight="80.0" prefHeight="80.0" vgrow="SOMETIMES" />
</rowConstraints>
<stylesheets>
<String fx:value="/css/Master.css"/>
<String fx:value="/css/Master.css" />
<String fx:value="/css/LobbyView.css" />
</stylesheets>
</GridPane>