Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/main/java/gdx/liftoff/ui/panels/PathsPanel.java
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,13 @@ private void updateDeleteProjectPathButton() {
}

public void updateError() {

if (UserData.platforms.contains("html") && Configuration.Companion.parseJavaVersion(UserData.javaVersion) > 11) {
errorLabel.restart(prop.getProperty("htmlWrongJavaVersion"));
errorLabel.skipToTheEnd();
return;
}

if (UserData.platforms.contains("ios") && UserData.platforms.contains("teavm")) {
errorLabel.restart(prop.getProperty("iosTeavmIncompatible"));
errorLabel.skipToTheEnd();
Expand Down
3 changes: 2 additions & 1 deletion src/main/resources/ui-data/nls.properties
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,7 @@ androidTip=Android mobile backend. Needs Android SDK.
coreTip=Main module shared by all platforms.
iosTip=iOS mobile backend using RoboVM (Java 7-8 only).
ios-moeTip=iOS mobile backend using Multi-OS Engine.
htmlTip=Web backend using GWT; can only use Java.
htmlTip=Web backend using GWT; can only use Java 11 or lower.
headlessTip=Desktop backend without a graphical interface.
lwjgl2Tip=Legacy desktop backend using LWJGL2.
lwjgl3Tip=Primary desktop backend using LWJGL3.
Expand Down Expand Up @@ -767,6 +767,7 @@ notEmpty={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}%s name cannot be em
nameNotValid={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Project name must contain at least one alphanumeric char, and cannot contain a colon ( : ).{ENDGRADIENT}{ENDSICK}
classNotValid={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Main class name is not a valid Java identifier.{ENDGRADIENT}{ENDSICK}
packageNotValid={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Package name is not a valid Java package, or lacks a dot ( . ).{ENDGRADIENT}{ENDSICK}
htmlWrongJavaVersion={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Java version must be 11 or lower for HTML (GWT) compatibility.{ENDGRADIENT}{ENDSICK}
iosTeavmIncompatible={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}TeaVM and RoboVM (for iOS) are incompatible; consider MOE for iOS.{ENDGRADIENT}{ENDSICK}
iosWrongJavaVersion={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Java version must be 7 or 8 for iOS compatibility.{ENDGRADIENT}{ENDSICK}
teavmWrongJavaVersion={SICK=0.35;0.4}{GRADIENT=FIREBRICK;SCARLET;1.1;7.0}Java version must be 11 or greater for TeaVM compatibility.{ENDGRADIENT}{ENDSICK}
Expand Down