Skip to content

Commit 3f83812

Browse files
committed
update
fixed ban list gui
1 parent e2463db commit 3f83812

File tree

5 files changed

+32
-18
lines changed

5 files changed

+32
-18
lines changed

bin/.gitignore

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1 @@
1-
/controller/
2-
/networking/
3-
/resources/
4-
/model/
51
/view/
12.5 KB
Loading

bin/resources/icon-trash-bin.png

358 Bytes
Loading

bin/view/ViewMultiplayer.fxml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,12 @@
290290
<children>
291291
<HBox alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="400.0">
292292
<children>
293-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
294-
<Label prefHeight="18.0" prefWidth="140.0" text="Nickname" textFill="WHITE" />
295-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
296-
<Label prefWidth="140.0" text="Address" textFill="WHITE" />
297-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="74.0" visible="false" />
293+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="98.0" visible="false" />
294+
<Label alignment="CENTER" prefHeight="18.0" prefWidth="200.0" text="Ban list" textFill="WHITE">
295+
<font>
296+
<Font size="24.0" />
297+
</font></Label>
298+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="68.0" visible="false" />
298299
<Label alignment="TOP_RIGHT" onMouseClicked="#closeRoomSettings" prefHeight="30.0" prefWidth="30.0">
299300
<graphic>
300301
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
@@ -306,9 +307,17 @@
306307
</Label>
307308
</children>
308309
</HBox>
309-
<HBox prefHeight="220.0" prefWidth="400.0">
310+
<HBox alignment="CENTER_LEFT" prefHeight="30.0" prefWidth="400.0">
311+
<children>
312+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
313+
<Label prefHeight="18.0" prefWidth="140.0" text="Nickname" textFill="WHITE" />
314+
<Label prefWidth="140.0" text="Address" textFill="WHITE" />
315+
<Label onMouseClicked="#closeRoomSettings" prefHeight="25.0" prefWidth="106.0" text="Remove ban" textFill="WHITE" />
316+
</children>
317+
</HBox>
318+
<HBox prefHeight="200.0" prefWidth="400.0">
310319
<children>
311-
<ListView id="BU" fx:id="listViewBannedUsers" prefHeight="217.0" prefWidth="400.0" style="-fx-background-color: black; -fx-text-fill: white;" />
320+
<ListView id="BU" fx:id="listViewBannedUsers" prefHeight="200.0" prefWidth="400.0" style="-fx-background-color: black; -fx-text-fill: white;" />
312321
</children>
313322
</HBox>
314323
<HBox alignment="CENTER" prefHeight="32.0" prefWidth="400.0" spacing="10.0" visible="false">

src/view/ViewMultiplayer.fxml

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -290,11 +290,12 @@
290290
<children>
291291
<HBox alignment="BOTTOM_RIGHT" prefHeight="30.0" prefWidth="400.0">
292292
<children>
293-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
294-
<Label prefHeight="18.0" prefWidth="140.0" text="Nickname" textFill="WHITE" />
295-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
296-
<Label prefWidth="140.0" text="Address" textFill="WHITE" />
297-
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="74.0" visible="false" />
293+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="98.0" visible="false" />
294+
<Label alignment="CENTER" prefHeight="18.0" prefWidth="200.0" text="Ban list" textFill="WHITE">
295+
<font>
296+
<Font size="24.0" />
297+
</font></Label>
298+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="68.0" visible="false" />
298299
<Label alignment="TOP_RIGHT" onMouseClicked="#closeRoomSettings" prefHeight="30.0" prefWidth="30.0">
299300
<graphic>
300301
<ImageView fitHeight="30.0" fitWidth="30.0" pickOnBounds="true" preserveRatio="true">
@@ -306,9 +307,17 @@
306307
</Label>
307308
</children>
308309
</HBox>
309-
<HBox prefHeight="220.0" prefWidth="400.0">
310+
<HBox alignment="CENTER_LEFT" prefHeight="30.0" prefWidth="400.0">
311+
<children>
312+
<Separator orientation="VERTICAL" prefHeight="30.0" prefWidth="10.0" visible="false" />
313+
<Label prefHeight="18.0" prefWidth="140.0" text="Nickname" textFill="WHITE" />
314+
<Label prefWidth="140.0" text="Address" textFill="WHITE" />
315+
<Label onMouseClicked="#closeRoomSettings" prefHeight="25.0" prefWidth="106.0" text="Remove ban" textFill="WHITE" />
316+
</children>
317+
</HBox>
318+
<HBox prefHeight="200.0" prefWidth="400.0">
310319
<children>
311-
<ListView id="BU" fx:id="listViewBannedUsers" prefHeight="217.0" prefWidth="400.0" style="-fx-background-color: black; -fx-text-fill: white;" />
320+
<ListView id="BU" fx:id="listViewBannedUsers" prefHeight="200.0" prefWidth="400.0" style="-fx-background-color: black; -fx-text-fill: white;" />
312321
</children>
313322
</HBox>
314323
<HBox alignment="CENTER" prefHeight="32.0" prefWidth="400.0" spacing="10.0" visible="false">

0 commit comments

Comments
 (0)