Skip to content

Commit 1adb844

Browse files
committed
nifty: adapt to recent jme3-utilities-ui API changes
1 parent ab23146 commit 1adb844

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

nifty/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ dependencies {
2323
api 'com.github.nifty-gui:nifty:1.4.3'
2424
api 'com.github.nifty-gui:nifty-default-controls:1.4.3'
2525

26-
api 'com.github.stephengold:jme3-utilities-ui:' + jme3utilitiesuiVersion
27-
// api project(':ui')
26+
// api 'com.github.stephengold:jme3-utilities-ui:' + jme3utilitiesuiVersion
27+
api project(':ui')
2828
}
2929

3030
// publishing tasks

nifty/src/main/java/jme3utilities/nifty/bind/ActionItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2013-2017, Stephen Gold
2+
Copyright (c) 2013-2021, Stephen Gold
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without
@@ -92,7 +92,7 @@ String getActionName() {
9292
@Override
9393
public String toString() {
9494
String result = String.format(" %s", MyString.quote(actionName));
95-
Collection<String> names = mode.listHotkeys(actionName);
95+
Collection<String> names = mode.listHotkeysLocal(actionName);
9696
if (!names.isEmpty()) {
9797
result += String.format(": %s", formatList(names));
9898
}

nifty/src/main/java/jme3utilities/nifty/bind/HotkeyItem.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
Copyright (c) 2013-2020, Stephen Gold
2+
Copyright (c) 2013-2021, Stephen Gold
33
All rights reserved.
44
55
Redistribution and use in source and binary forms, with or without
@@ -120,7 +120,7 @@ public String toString() {
120120
if (mode == null) {
121121
return "";
122122
}
123-
String name = hotkey.name();
123+
String name = hotkey.localName();
124124
String result = String.format(" [ %s ] ... ", name);
125125
if (isBound()) {
126126
String action = mode.findActionName(hotkey);

0 commit comments

Comments
 (0)