From 44dc89e17161cf70fdf4d7932c7759fb7814455a Mon Sep 17 00:00:00 2001 From: MJ Date: Tue, 4 Jul 2023 23:10:08 +0200 Subject: [PATCH] Update to libGDX 1.12.0 (#381) --- build.gradle | 2 +- ui/CHANGES.md | 3 ++- ui/src/main/java/com/kotcrab/vis/ui/VisUI.java | 4 ++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/build.gradle b/build.gradle index df8d675d..3e56900f 100644 --- a/build.gradle +++ b/build.gradle @@ -27,7 +27,7 @@ allprojects { ext { appName = 'vis' - gdxVersion = '1.11.0' + gdxVersion = '1.12.0' jnaVersion = '4.1.0' jnaPlatformVersion = '3.5.2' appleJavaExtensionsVersion = '1.4' diff --git a/ui/CHANGES.md b/ui/CHANGES.md index 360a222e..ff5332b4 100644 --- a/ui/CHANGES.md +++ b/ui/CHANGES.md @@ -1,4 +1,5 @@ -#### Version: 1.5.2-SNAPSHOT (libGDX 1.11.0) +#### Version: 1.5.2-SNAPSHOT (libGDX 1.12.0) +- Updated to libGDX 1.12.0 - **Added**: [#373](https://github.com/kotcrab/vis-ui/issues/373) - `VisImageTextButton` an optional `Orientation` value can be set to change how the button label is positioned relative to the button image - Defaults to existing behavior (label to the right of image in the same row), and orientation can be changed via `VisImageTextButton.setOrientation()` diff --git a/ui/src/main/java/com/kotcrab/vis/ui/VisUI.java b/ui/src/main/java/com/kotcrab/vis/ui/VisUI.java index b17ca70f..cb8aea92 100644 --- a/ui/src/main/java/com/kotcrab/vis/ui/VisUI.java +++ b/ui/src/main/java/com/kotcrab/vis/ui/VisUI.java @@ -30,7 +30,7 @@ * @author Kotcrab */ public class VisUI { - private static final String TARGET_GDX_VERSION = "1.11.0"; + private static final String TARGET_GDX_VERSION = "1.12.0"; private static boolean skipGdxVersionCheck = false; private static int defaultTitleAlign = Align.left; @@ -95,7 +95,7 @@ public static void load (Skin skin) { private static void checkBeforeLoad () { if (skin != null) throw new GdxRuntimeException("VisUI cannot be loaded twice"); - if (skipGdxVersionCheck == false && Version.VERSION.equals(TARGET_GDX_VERSION) == false) { + if (!skipGdxVersionCheck && !Version.VERSION.equals(TARGET_GDX_VERSION)) { Gdx.app.log("VisUI", "Warning, using invalid libGDX version.\n" + "You are using libGDX " + Version.VERSION + " but you need " + TARGET_GDX_VERSION + ". This may cause " + "unexpected problems and runtime exceptions.");