updated version to 0.2.2 build 061
* updated version to 0.2.2 build 061 * the license text textarea is not editable anymore
This commit is contained in:
parent
3289bb4aed
commit
99574ce6ef
|
@ -275,8 +275,8 @@ public class MainWindowController {
|
||||||
private String selectedGameTitleID;
|
private String selectedGameTitleID;
|
||||||
private String selectedGameTitle;
|
private String selectedGameTitle;
|
||||||
private String id;
|
private String id;
|
||||||
private String version = "0.2.1";
|
private String version = "0.2.2";
|
||||||
private String buildNumber = "059";
|
private String buildNumber = "061";
|
||||||
private String versionName = "Puzzle Plank Galaxy";
|
private String versionName = "Puzzle Plank Galaxy";
|
||||||
private int xPos = -200;
|
private int xPos = -200;
|
||||||
private int yPos = 17;
|
private int yPos = 17;
|
||||||
|
@ -739,8 +739,7 @@ public class MainWindowController {
|
||||||
BufferedReader licenseBR = new BufferedReader(
|
BufferedReader licenseBR = new BufferedReader(
|
||||||
new InputStreamReader(getClass().getResourceAsStream("/licenses/licenses_show.txt")));
|
new InputStreamReader(getClass().getResourceAsStream("/licenses/licenses_show.txt")));
|
||||||
String currentLine;
|
String currentLine;
|
||||||
|
|
||||||
|
|
||||||
while ((currentLine = licenseBR.readLine()) != null) {
|
while ((currentLine = licenseBR.readLine()) != null) {
|
||||||
bodyText = bodyText + currentLine + "\n";
|
bodyText = bodyText + currentLine + "\n";
|
||||||
}
|
}
|
||||||
|
@ -753,6 +752,7 @@ public class MainWindowController {
|
||||||
JFXTextAreaInfoDialog licenseDialog = new JFXTextAreaInfoDialog(headingText, bodyText,
|
JFXTextAreaInfoDialog licenseDialog = new JFXTextAreaInfoDialog(headingText, bodyText,
|
||||||
dialogBtnStyle, 510, 450, main.pane);
|
dialogBtnStyle, 510, 450, main.pane);
|
||||||
licenseDialog.show();
|
licenseDialog.show();
|
||||||
|
licenseDialog.getTextArea().setEditable(false);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -68,7 +68,7 @@ public class UpdateController implements Runnable {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
System.out.println("checking for updates ...");
|
LOGGER.info("beta:" + useBeta + "; checking for updates ...");
|
||||||
Platform.runLater(() -> {
|
Platform.runLater(() -> {
|
||||||
mainWindowController.getUpdateBtn().setText("checking for updates ...");
|
mainWindowController.getUpdateBtn().setText("checking for updates ...");
|
||||||
});
|
});
|
||||||
|
|
|
@ -40,6 +40,7 @@ public class JFXTextAreaInfoDialog {
|
||||||
private String dialogBtnStyle;
|
private String dialogBtnStyle;
|
||||||
private int dialogWidth;
|
private int dialogWidth;
|
||||||
private int dialogHeight;
|
private int dialogHeight;
|
||||||
|
private JFXTextArea textArea;
|
||||||
private Pane pane;
|
private Pane pane;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -61,9 +62,11 @@ public class JFXTextAreaInfoDialog {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void show() {
|
public void show() {
|
||||||
|
textArea = new JFXTextArea(bodyText);
|
||||||
|
|
||||||
JFXDialogLayout content = new JFXDialogLayout();
|
JFXDialogLayout content = new JFXDialogLayout();
|
||||||
content.setHeading(new Text(headingText));
|
content.setHeading(new Text(headingText));
|
||||||
content.setBody(new JFXTextArea(bodyText));
|
content.setBody(textArea);
|
||||||
content.setPrefSize(dialogWidth, dialogHeight);
|
content.setPrefSize(dialogWidth, dialogHeight);
|
||||||
StackPane stackPane = new StackPane();
|
StackPane stackPane = new StackPane();
|
||||||
stackPane.autosize();
|
stackPane.autosize();
|
||||||
|
@ -84,4 +87,12 @@ public class JFXTextAreaInfoDialog {
|
||||||
AnchorPane.setLeftAnchor(stackPane, (pane.getWidth() - content.getPrefWidth()) / 2);
|
AnchorPane.setLeftAnchor(stackPane, (pane.getWidth() - content.getPrefWidth()) / 2);
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public JFXTextArea getTextArea() {
|
||||||
|
return textArea;
|
||||||
|
}
|
||||||
|
|
||||||
|
public void setTextArea(JFXTextArea textArea) {
|
||||||
|
this.textArea = textArea;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue