Pass Client & ClientListener through all controllers
This commit is contained in:
@@ -9,37 +9,35 @@
|
||||
<?import javafx.geometry.Insets?>
|
||||
<?import javafx.scene.image.ImageView?>
|
||||
<?import javafx.scene.image.Image?>
|
||||
<AnchorPane xmlns="http://javafx.com/javafx"
|
||||
<BorderPane xmlns="http://javafx.com/javafx"
|
||||
xmlns:fx="http://javafx.com/fxml"
|
||||
fx:controller="client.ClientGuiController"
|
||||
prefHeight="400.0" prefWidth="600.0">
|
||||
<VBox>
|
||||
<padding>
|
||||
<Insets bottom="20.0" left="20.0" right="20.0" top="20.0"/>
|
||||
</padding>
|
||||
<!-- Logo -->
|
||||
<HBox alignment="CENTER">
|
||||
prefHeight="400.0" prefWidth="600.0" styleClass="vue-container" fx:id="vueContainer">
|
||||
<top>
|
||||
<HBox alignment="CENTER" styleClass="logo-box">
|
||||
<padding>
|
||||
<Insets bottom="10.0" left="10.0" right="10.0" top="10.0"/>
|
||||
</padding>
|
||||
<ImageView fitHeight="50.0" fitWidth="50.0">
|
||||
<Image url="@/liscord.png" />
|
||||
</ImageView>
|
||||
<Label text="Liscord" style="-fx-font-size: 24px; -fx-font-weight: bold; -fx-padding: 0 0 0 10px"/>
|
||||
</HBox>
|
||||
<!-- Client -->
|
||||
<HBox>
|
||||
<!-- Rooms -->
|
||||
<ScrollPane>
|
||||
<VBox fx:id="rooms" spacing="10.0">
|
||||
<Label text="Rooms" style="-fx-font-size: 18px;"/>
|
||||
<VBox fx:id="roomList" spacing="5.0"/>
|
||||
</VBox>
|
||||
</ScrollPane>
|
||||
<!-- Chat -->
|
||||
<ScrollPane>
|
||||
<VBox fx:id="chat" spacing="10.0">
|
||||
<Label text="Chat" style="-fx-font-size: 18px;"/>
|
||||
<VBox fx:id="chatList" spacing="5.0"/>
|
||||
</VBox>
|
||||
</ScrollPane>
|
||||
</HBox>
|
||||
</VBox>
|
||||
</AnchorPane>
|
||||
</top>
|
||||
<left>
|
||||
<ScrollPane prefWidth="200.0" styleClass="rooms-pane" fx:id="roomsPane">
|
||||
<VBox fx:id="rooms" spacing="10.0" alignment="CENTER">
|
||||
<Label text="Rooms" styleClass="rooms-label"/>
|
||||
<VBox fx:id="roomList" styleClass="rooms-list" spacing="5.0"/>
|
||||
</VBox>
|
||||
</ScrollPane>
|
||||
</left>
|
||||
<center>
|
||||
<ScrollPane styleClass="chat-pane" fx:id="chatPane">
|
||||
<VBox fx:id="chat" spacing="10.0">
|
||||
<Label text="Chat" style="-fx-font-size: 18px;"/>
|
||||
<VBox fx:id="chatList" styleClass="chat-list" spacing="5.0"/>
|
||||
</VBox>
|
||||
</ScrollPane>
|
||||
</center>
|
||||
</BorderPane>
|
||||
Reference in New Issue
Block a user