Untitled
unknown
plain_text
2 years ago
10 kB
6
Indexable
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ScrollPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.image.Image?>
<?import javafx.scene.image.ImageView?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.Pane?>
<?import javafx.scene.media.MediaView?>
<?import javafx.scene.shape.Polygon?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Font?>
<?import javafx.scene.text.Text?>
<AnchorPane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="1080.0" prefWidth="1920.0" xmlns="http://javafx.com/javafx/20.0.1" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.example.warships.EnemyViewController">
<children>
<Button layoutX="951.0" layoutY="690.0" mnemonicParsing="false" prefHeight="91.0" prefWidth="150.0" text="open Chat">
<font>
<Font size="18.0" />
</font>
</Button>
<Label fx:id="selectedInfo" alignment="CENTER" layoutX="901.0" layoutY="34.0" prefHeight="23.0" prefWidth="267.0" text="select a bomb" textFill="RED">
<font>
<Font size="18.0" />
</font>
</Label>
<Label layoutX="1194.0" layoutY="15.0" text="Enemy View">
<font>
<Font size="46.0" />
</font>
</Label>
<ImageView fx:id="waterMap3" fitHeight="997.0" fitWidth="1154.0" layoutX="-124.0" layoutY="-68.0" mouseTransparent="true" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@images/waterMap.png" />
</image>
</ImageView>
<Button layoutX="952.0" layoutY="86.0" mnemonicParsing="false" onMouseClicked="#selectStandardBomb" prefHeight="150.0" prefWidth="150.0">
<font>
<Font size="18.0" />
</font>
</Button>
<Button layoutX="951.0" layoutY="582.0" mnemonicParsing="false" onMouseClicked="#hitField" prefHeight="91.0" prefWidth="150.0" style="-fx-background-color: green;" text="confirm" textFill="WHITE">
<font>
<Font size="18.0" />
</font>
</Button>
<Button layoutX="952.0" layoutY="246.0" mnemonicParsing="false" onMouseClicked="#selectSonarBomb" prefHeight="150.0" prefWidth="150.0">
<font>
<Font size="18.0" />
</font>
</Button>
<Button layoutX="952.0" layoutY="406.0" mnemonicParsing="false" onMouseClicked="#selectBigBomb" prefHeight="150.0" prefWidth="150.0">
<font>
<Font size="18.0" />
</font>
</Button>
<ImageView fitHeight="133.0" fitWidth="102.0" layoutX="976.0" layoutY="93.0" mouseTransparent="true" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@images/smallBomb.png" />
</image>
</ImageView>
<ImageView fitHeight="133.0" fitWidth="117.0" layoutX="972.0" layoutY="255.0" mouseTransparent="true" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@images/sonarBomb.png" />
</image>
</ImageView>
<ImageView fitHeight="133.0" fitWidth="117.0" layoutX="972.0" layoutY="414.0" mouseTransparent="true" pickOnBounds="true" preserveRatio="true">
<image>
<Image url="@images/bigBomg.png" />
</image>
</ImageView>
<Label layoutX="1118.0" layoutY="149.0" prefHeight="23.0" prefWidth="71.0" text="unlimited">
<font>
<Font size="18.0" />
</font>
</Label>
<Label layoutX="1118.0" layoutY="310.0" prefHeight="23.0" prefWidth="71.0" text="x 2">
<font>
<Font size="18.0" />
</font>
</Label>
<Label layoutX="1118.0" layoutY="470.0" prefHeight="23.0" prefWidth="71.0" text="x 1">
<font>
<Font size="18.0" />
</font>
</Label>
<Button layoutX="1096.0" layoutY="82.0" mnemonicParsing="false" onMouseClicked="#blendInInfoBomb1" prefHeight="34.0" prefWidth="34.0" style="-fx-border-color: #080808;" text="i">
<font>
<Font size="18.0" />
</font>
</Button>
<Button layoutX="1096.0" layoutY="242.0" mnemonicParsing="false" onMouseClicked="#blendInInfoBomb2" prefHeight="34.0" prefWidth="34.0" style="-fx-border-color: #080808;" text="i">
<font>
<Font size="18.0" />
</font>
</Button>
<Button layoutX="1097.0" layoutY="402.0" mnemonicParsing="false" onMouseClicked="#blendInInfoBomb3" prefHeight="34.0" prefWidth="34.0" style="-fx-border-color: #080808;" text="i">
<font>
<Font size="18.0" />
</font>
</Button>
<Label fx:id="infoSmallBomb" alignment="CENTER" layoutX="1143.0" layoutY="85.0" prefHeight="65.0" prefWidth="308.0" style="-fx-border-color: #080808;" text="This bomb hits one field" visible="false">
<font>
<Font size="18.0" />
</font>
</Label>
<Label fx:id="infoSonarBomb" alignment="CENTER" layoutX="1146.0" layoutY="241.0" prefHeight="120.0" prefWidth="308.0" style="-fx-border-color: #080808;" text="This bomb hits one field and tells you if there is an enemy in a surrounding field. If positive, the surrounding fields will be marked green" visible="false" wrapText="true">
<font>
<Font size="18.0" />
</font>
</Label>
<Label fx:id="infoBigBomb" alignment="CENTER" layoutX="1142.0" layoutY="401.0" prefHeight="81.0" prefWidth="308.0" style="-fx-border-color: #080808;" text="This bomb hits the center and the field above, beneath, left and right" visible="false" wrapText="true">
<font>
<Font size="18.0" />
</font>
</Label>
<Button layoutX="1208.0" layoutY="614.0" mnemonicParsing="false" onMouseClicked="#switchToDefenseView" prefHeight="112.0" prefWidth="227.0" text="switch to your view">
<font>
<Font size="18.0" />
</font>
</Button>
<ImageView fx:id="crossHairs" fitHeight="150.0" fitWidth="200.0" layoutX="1238.0" layoutY="405.0" mouseTransparent="true" pickOnBounds="true" preserveRatio="true" visible="false">
<image>
<Image url="@images/Crosshairs.png" />
</image>
</ImageView>
<Button fx:id="playButton" layoutX="674.0" layoutY="235.0" mnemonicParsing="false" onMouseClicked="#playMedia" prefHeight="46.0" prefWidth="45.0" translateX="700.0" translateY="550.0" />
<Polygon fx:id="playTriangle" fill="DODGERBLUE" layoutX="735.0" layoutY="255.0" mouseTransparent="true" points="-50.0, 19.124481201171875, -22.17047119140625, 3.5825042724609375, -50.0, -14.254436492919922" stroke="BLACK" strokeType="INSIDE" translateX="700.0" translateY="550.0" />
<Rectangle fx:id="pauseRec2" arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="32.0" layoutX="701.0" layoutY="242.0" mouseTransparent="true" stroke="BLACK" strokeType="INSIDE" translateX="700.0" translateY="550.0" visible="false" width="10.0" />
<Rectangle fx:id="pauseRec1" arcHeight="5.0" arcWidth="5.0" fill="DODGERBLUE" height="32.0" layoutX="682.0" layoutY="242.0" mouseTransparent="true" stroke="BLACK" strokeType="INSIDE" translateX="700.0" translateY="550.0" visible="false" width="10.0" />
<MediaView fx:id="bombAnimator" blendMode="ADD" fitHeight="200.0" fitWidth="200.0" layoutX="322.0" layoutY="220.0" mouseTransparent="true" onMouseClicked="#confirmTarget" />
<MediaView fx:id="bigBombAnimator1" blendMode="ADD" fitHeight="200.0" fitWidth="200.0" layoutX="1638.0" layoutY="75.0" mouseTransparent="true" />
<MediaView fx:id="bigBombAnimator2" blendMode="ADD" fitHeight="200.0" fitWidth="200.0" layoutX="1620.0" layoutY="305.0" mouseTransparent="true" />
<MediaView fx:id="bigBombAnimator3" blendMode="ADD" fitHeight="200.0" fitWidth="200.0" layoutX="1620.0" layoutY="501.0" mouseTransparent="true" />
<MediaView fx:id="bigBombAnimator4" blendMode="ADD" fitHeight="200.0" fitWidth="200.0" layoutX="1620.0" layoutY="806.0" mouseTransparent="true" />
<Label fx:id="enemyShipCountLabel" alignment="CENTER" layoutX="1213.0" layoutY="522.0" prefHeight="17.0" prefWidth="217.0" text="10 enemy ships remaining" textFill="#8d8b8b" />
<Button fx:id="finishGameButton" disable="true" layoutX="1228.0" layoutY="547.0" mnemonicParsing="false" onMouseClicked="#switchToGameOverScreen" prefHeight="46.0" prefWidth="185.0" text="Finish Game" />
<Label fx:id="isTurnLabel" alignment="CENTER" layoutX="884.0" layoutY="811.0" prefHeight="23.0" prefWidth="286.0" text="Waiting for Player 2" textFill="RED">
<font>
<Font size="18.0" />
</font>
</Label>
<Pane layoutX="1197.0" layoutY="87.0" prefHeight="410.0" prefWidth="263.0" style="-fx-border-color: #080808;">
<children>
<Label fx:id="othersName" alignment="CENTER" layoutX="14.0" layoutY="14.0" prefHeight="17.0" prefWidth="59.0" text="opponent" />
<Label fx:id="chatName2" alignment="CENTER" layoutX="14.0" layoutY="205.0" prefHeight="17.0" prefWidth="59.0" text="myName" />
<TextField fx:id="chatTextField" alignment="TOP_CENTER" layoutX="25.0" layoutY="222.0" prefHeight="133.0" prefWidth="217.0" text="some text that can be replaced" />
<Button layoutX="104.0" layoutY="371.0" mnemonicParsing="false" onMouseClicked="#updateChat" text="Recive" />
<Button layoutX="140.0" layoutY="371.0" mnemonicParsing="false" onMouseClicked="#sendText" text="Send" />
<ScrollPane hbarPolicy="NEVER" layoutX="27.0" layoutY="40.0" prefHeight="158.0" prefWidth="211.0">
<content>
<AnchorPane fx:id="chatPane" minHeight="0.0" minWidth="0.0" prefHeight="177.0" prefWidth="200.0">
<children>
<Text fx:id="opponentsText" layoutX="21.0" layoutY="17.0" strokeType="OUTSIDE" strokeWidth="0.0" text="Text" wrappingWidth="159.32080078125" />
</children>
</AnchorPane>
</content>
</ScrollPane>
</children>
</Pane>
</children>
</AnchorPane>
Editor is loading...