diff --git a/Battle.j3o b/Battle.j3o new file mode 100644 index 0000000..9e1ef4d Binary files /dev/null and b/Battle.j3o differ diff --git a/BoatSmall.j3o b/BoatSmall.j3o new file mode 100644 index 0000000..c13785d Binary files /dev/null and b/BoatSmall.j3o differ diff --git a/CV.j3o b/CV.j3o new file mode 100644 index 0000000..c49ddb2 Binary files /dev/null and b/CV.j3o differ diff --git a/KingGeorgeV.j3o b/KingGeorgeV.j3o new file mode 100644 index 0000000..b030d91 Binary files /dev/null and b/KingGeorgeV.j3o differ diff --git a/Projekte/battleship/converter/src/main/java/pp/battleship/exporter/ModelExporter.java b/Projekte/battleship/converter/src/main/java/pp/battleship/exporter/ModelExporter.java index ae9350b..5a95a98 100644 --- a/Projekte/battleship/converter/src/main/java/pp/battleship/exporter/ModelExporter.java +++ b/Projekte/battleship/converter/src/main/java/pp/battleship/exporter/ModelExporter.java @@ -45,7 +45,12 @@ public class ModelExporter extends SimpleApplication { export("Models/BoatSmall/12219_boat_v2_L2.obj", "BoatSmall.j3o"); //NON-NLS export("Models/Battle/14084_WWII_Ship_German_Type_II_U-boat_v2_L1.obj", "Battle.j3o"); //NON-NLS export("Models/CV/essex_scb-125_generic.obj", "CV.j3o"); //NON-NLS - + export("Models/Figures/Würfel_blau.obj", "Würfel_blau.j30"); + export("Models/Figures/Würfel_gelb.obj", "Würfel_gelb.j30"); + export("Models/Figures/Würfel_grün.obj", "Würfel_grün.j30"); + export("Models/Figures/Würfel_rosa.obj", "Würfel_rosa.j30"); + export("Models/Figures/Würfel_rot.obj", "Würfel_rot.j30"); + export("Models/Figures/Würfel_schwarz.obj", "Würfel_schwarz.j30"); stop(); } diff --git a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy index 957bc68..36ee17e 100644 --- a/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy +++ b/Projekte/jme-common/src/main/resources/Interface/Lemur/pp-styles.groovy @@ -1,76 +1,69 @@ // Styling of Lemur components // For documentation, see: // https://github.com/jMonkeyEngine-Contributions/Lemur/wiki/Styling - import com.simsilica.lemur.* import com.simsilica.lemur.component.QuadBackgroundComponent +import com.simsilica.lemur.Button +import com.simsilica.lemur.Button.ButtonAction +import com.simsilica.lemur.Command +import com.simsilica.lemur.HAlignment +import com.simsilica.lemur.Insets3f +import com.simsilica.lemur.component.QuadBackgroundComponent +import com.simsilica.lemur.component.TbtQuadBackgroundComponent def bgColor = color(1, 1, 1, 1) -def buttonEnabledColor = color(0.8, 0.9, 1, 1) +def buttonEnabledColor = color(0, 0, 0, 1) def buttonDisabledColor = color(0.8, 0.9, 1, 0.2) -//def buttonBgColor = color(0, 0.75, 0.75, 1) +def buttonBgColor = color(1, 1, 1, 1) def sliderColor = color(0.6, 0.8, 0.8, 1) def sliderBgColor = color(0.5, 0.75, 0.75, 1) -def gradientColor = color(1, 1, 1, 1) +def gradientColor = color(0.5, 0.75, 0.85, 0.5) def tabbuttonEnabledColor = color(0.4, 0.45, 0.5, 1) -def playButtonBorderColor = color(1, 0.6, 0, 1) // For "Spielen" button -def blackColor = color(0, 0, 0, 1) // Define black color for border +def solidWhiteBackground = new QuadBackgroundComponent(color(1, 1, 1, 1)) // Solid white -def playButtonBorderColor = color(1, 0.6, 0, 1) // Orange border for "Spielen" button -def playButtonTextColor = color(0, 0, 0, 1) // Black text color for "Spielen" button -def buttonBgColor = color(1, 1, 1, 1) // White background for "Spiel beenden" and "Einstellungen" buttons -def buttonTextColor = color(0, 0, 0, 1) // Black text color for "Spiel beenden" and "Einstellungen" buttons -def borderColor = color(0, 0, 0, 1) // Black border for "Spiel beenden" and "Einstellungen" def gradient = TbtQuadBackgroundComponent.create( - texture(name: "/com/simsilica/lemur/icons/bordered-gradient.png", generateMips: false), - 1, 1, 1, 126, 126, 1f, false) + texture(name: "/com/simsilica/lemur/icons/bordered-gradient.png", + generateMips: false), + 1, 1, 1, 126, 126, + 1f, false) def doubleGradient = new QuadBackgroundComponent(gradientColor) -doubleGradient.texture = texture(name: "/com/simsilica/lemur/icons/double-gradient-128.png", generateMips: false) +doubleGradient.texture = texture(name: "/com/simsilica/lemur/icons/double-gradient-128.png", + generateMips: false) + +def orangeBorder = TbtQuadBackgroundComponent.create( + texture(name: "/com/simsilica/lemur/icons/bordered-gradient.png", // Replace with an appropriate texture if needed + generateMips: false), + 1, 1, 1, 126, 126, + 1f, false) +orangeBorder.color = color(1, 0.5, 0, 1) // Orange color -// Hauptstil für die Schriftart selector("pp") { font = font("Interface/Fonts/Metropolis/Metropolis-Regular-32.fnt") } -// Titel für "Einstellungen" -selector("settings-title", "pp") { - color = color(1, 1, 1, 1) - fontSize = 48 - textHAlignment = HAlignment.Center - insets = new Insets3f(5, 5, 5, 5) +selector("label", "pp") { + insets = new Insets3f(2, 2, 2, 2) + color = buttonEnabledColor +} + +selector("header", "pp") { + font = font("Interface/Fonts/Metropolis/Metropolis-Bold-42.fnt") + insets = new Insets3f(2, 2, 2, 2) + color = color(1, 0.5, 0, 1) + textHAlignment = HAlignment.Center } -// Container Stil selector("container", "pp") { - background = gradient.clone() + background = solidWhiteBackground.clone() background.setColor(bgColor) } -// Slider Stil selector("slider", "pp") { - insets = new Insets3f(5, 10, 5, 10) // Abstand - background = new QuadBackgroundComponent(sliderBgColor) -} - -selector("play-button", "pp") { - color = playButtonTextColor // Black text color - background = new QuadBackgroundComponent(playButtonBorderColor) // Orange border background - insets = new Insets3f(15, 25, 15, 25) // Padding for larger button size - background.setMargin(5, 5) // Thin border effect around the background color - fontSize = 36 // Larger font size for prominence -} - -selector("menu-button", "pp") { - color = buttonTextColor // Black text color - background = new QuadBackgroundComponent(buttonBgColor) // White background - insets = new Insets3f(10, 20, 10, 20) // Padding - background.setMargin(1, 1) // Thin black border - background.setColor(borderColor) // Set black border color - - fontSize = 24 // Standard font size + background = gradient.clone() + background.setColor(bgColor) } def pressedCommand = new Command