質問編集履歴
1
表示しているソースコードを変更
test
CHANGED
File without changes
|
test
CHANGED
@@ -88,147 +88,99 @@
|
|
88
88
|
|
89
89
|
### 該当のソースコード
|
90
90
|
|
91
|
-
M
|
91
|
+
```FXML
|
92
92
|
|
93
|
-
```Java
|
94
|
-
|
95
|
-
|
93
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
96
94
|
|
97
95
|
|
98
96
|
|
99
|
-
|
97
|
+
<?package io.github.XXXX.XXXX?>
|
100
98
|
|
101
|
-
import java.
|
99
|
+
<?import javafx.geometry.Point3D?>
|
102
100
|
|
103
|
-
import java.ne
|
101
|
+
<?import javafx.scene.control.Label?>
|
102
|
+
|
103
|
+
<?import javafx.scene.control.ScrollPane?>
|
104
|
+
|
105
|
+
<?import javafx.scene.image.Image?>
|
106
|
+
|
107
|
+
<?import javafx.scene.image.ImageView?>
|
108
|
+
|
109
|
+
<?import javafx.scene.layout.BorderPane?>
|
110
|
+
|
111
|
+
<?import javafx.scene.layout.HBox?>
|
112
|
+
|
113
|
+
<?import javafx.scene.layout.Pane?>
|
114
|
+
|
115
|
+
<?import javafx.scene.layout.StackPane?>
|
116
|
+
|
117
|
+
<?import javafx.scene.layout.VBox?>
|
118
|
+
|
119
|
+
<?import javafx.scene.text.Font?>
|
104
120
|
|
105
121
|
|
106
122
|
|
107
|
-
imp
|
123
|
+
<Pane maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" prefHeight="540.0" prefWidth="960.0" xmlns="http://javafx.com/javafx/8.0.171" xmlns:fx="http://javafx.com/fxml/1" fx:controller="io.github.XXXX.XXXX.LauncherController">
|
108
124
|
|
109
|
-
i
|
125
|
+
<children>
|
110
126
|
|
111
|
-
i
|
127
|
+
<ImageView fitHeight="540.0" fitWidth="960.0" pickOnBounds="true" preserveRatio="true">
|
112
128
|
|
113
|
-
im
|
129
|
+
<image>
|
114
130
|
|
115
|
-
|
131
|
+
<Image url="@../../../../Data/Image/GCC.png" />
|
116
132
|
|
117
|
-
im
|
133
|
+
</image>
|
118
134
|
|
119
|
-
|
135
|
+
</ImageView>
|
120
136
|
|
137
|
+
<Pane prefHeight="540.0" prefWidth="960.0">
|
138
|
+
|
139
|
+
<children>
|
140
|
+
|
141
|
+
<HBox prefHeight="34.0" prefWidth="200.0">
|
142
|
+
|
143
|
+
省略
|
144
|
+
|
145
|
+
</HBox>
|
146
|
+
|
147
|
+
<StackPane layoutX="400.0" layoutY="402.0" prefHeight="110.0" prefWidth="509.0">
|
148
|
+
|
149
|
+
省略
|
150
|
+
|
121
|
-
|
151
|
+
</StackPane>
|
152
|
+
|
153
|
+
<ImageView fx:id="snImage" layoutX="597.0" layoutY="120.0" pickOnBounds="true" preserveRatio="true" />
|
154
|
+
|
155
|
+
<StackPane layoutX="53.0" layoutY="61.0" prefHeight="451.0" prefWidth="301.0">
|
156
|
+
|
157
|
+
<children>
|
158
|
+
|
159
|
+
<VBox prefHeight="200.0" prefWidth="100.0">
|
160
|
+
|
161
|
+
省略
|
162
|
+
|
163
|
+
</VBox>
|
164
|
+
|
165
|
+
</children>
|
166
|
+
|
167
|
+
</StackPane>
|
168
|
+
|
169
|
+
</children>
|
170
|
+
|
171
|
+
</Pane>
|
172
|
+
|
173
|
+
</children>
|
174
|
+
|
175
|
+
</Pane>
|
176
|
+
|
177
|
+
```
|
122
178
|
|
123
179
|
|
124
180
|
|
125
181
|
|
126
182
|
|
127
|
-
public class Main extends Application {
|
128
|
-
|
129
|
-
public static String hostName;
|
130
|
-
|
131
|
-
public static String hostAddress;
|
132
|
-
|
133
|
-
public static Server server;
|
134
|
-
|
135
|
-
public static Launch nowGame;
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
public static Stage stage;
|
140
|
-
|
141
|
-
public static void main(String[] args) {
|
142
|
-
|
143
|
-
System.out.println(System.getProperty("user.dir"));
|
144
|
-
|
145
|
-
Launch.gameLoad();
|
146
|
-
|
147
|
-
nowGame = new Launch(1,0);
|
148
|
-
|
149
|
-
System.out.println(nowGame.nameLoad());
|
150
|
-
|
151
|
-
System.out.println("起動しました");
|
152
|
-
|
153
|
-
try {
|
154
|
-
|
155
|
-
InetAddress ip = InetAddress.getLocalHost();
|
156
|
-
|
157
|
-
System.out.println("ipアドレス:" + ip.getHostAddress());hostAddress = ip.getHostAddress();
|
158
|
-
|
159
|
-
System.out.println("コンピュータ名:" + ip.getHostName());hostName = ip.getHostAddress();
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
} catch (UnknownHostException e) {
|
164
|
-
|
165
|
-
// TODO 自動生成された catch ブロック
|
166
|
-
|
167
|
-
e.printStackTrace();
|
168
|
-
|
169
|
-
}
|
170
|
-
|
171
|
-
server = new Server("localhost",32369);
|
172
|
-
|
173
|
-
Thread th = new Thread(server);
|
174
|
-
|
175
|
-
th.start();
|
176
|
-
|
177
|
-
System.out.println("並列処理が開始されました");
|
178
|
-
|
179
|
-
launch(args);
|
180
|
-
|
181
|
-
}
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
@Override
|
186
|
-
|
187
|
-
public void start(Stage primaryStage) {
|
188
|
-
|
189
|
-
try {
|
190
|
-
|
191
|
-
Pane root = (Pane)FXMLLoader.load(new URL("file:/C:/Users/pizza king/Desktop/2019GCC/src/io/github/kogyokusha_gcc/gcc2019/Launcher.fxml"));
|
192
|
-
|
193
|
-
Scene scene = new Scene(root);
|
194
|
-
|
195
|
-
primaryStage.setResizable(false);
|
196
|
-
|
197
|
-
primaryStage.sizeToScene();
|
198
|
-
|
199
|
-
primaryStage.setTitle("デバッグモード");
|
200
|
-
|
201
|
-
//scene.getStylesheets().add(getClass().getResource("application.css").toExternalForm());
|
202
|
-
|
203
|
-
primaryStage.setScene(scene);
|
204
|
-
|
205
|
-
primaryStage.show();
|
206
|
-
|
207
|
-
stage = primaryStage;
|
208
|
-
|
209
|
-
//scene.setOnKeyPressed(new GameChooseHandler());
|
210
|
-
|
211
|
-
} catch(Exception e) {
|
212
|
-
|
213
|
-
e.printStackTrace();
|
214
|
-
|
215
|
-
}
|
216
|
-
|
217
|
-
primaryStage.setOnCloseRequest((javafx.stage.WindowEvent event) -> {
|
218
|
-
|
219
|
-
System.out.println("終了処理を開始します。");
|
220
|
-
|
221
|
-
//resize.cancel();
|
222
|
-
|
223
|
-
System.exit(0);
|
224
|
-
|
225
|
-
});
|
226
|
-
|
227
|
-
}
|
228
|
-
|
229
|
-
```
|
230
|
-
|
231
|
-
|
183
|
+
Main.java、LauncherController.java、他のクラスは文字数の関係で、省略させていただきました。ほしい情報等がありましたら、教えてください。
|
232
184
|
|
233
185
|
### 補足情報(FW/ツールのバージョンなど)
|
234
186
|
|