Skip to content

Commit

Permalink
Update to libGDX 1.12.0 (#381)
Browse files Browse the repository at this point in the history
  • Loading branch information
czyzby committed Jul 4, 2023
1 parent 80d1297 commit 44dc89e
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
3 changes: 2 additions & 1 deletion ui/CHANGES.md
Original file line number Diff line number Diff line change
@@ -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()`

Expand Down
4 changes: 2 additions & 2 deletions ui/src/main/java/com/kotcrab/vis/ui/VisUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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.");
Expand Down

0 comments on commit 44dc89e

Please sign in to comment.