Tooltip Issue
Closed this issue · 3 comments
tehnewb commented
Exception in thread "LWJGL Application" com.badlogic.gdx.utils.GdxRuntimeException: java.lang.NoSuchMethodError: 'com.badlogic.gdx.utils.Array com.badlogic.gdx.scenes.scene2d.Actor.getListeners()'
at com.badlogic.gdx.backends.lwjgl.LwjglApplication$1.run(LwjglApplication.java:134)
Caused by: java.lang.NoSuchMethodError: 'com.badlogic.gdx.utils.Array com.badlogic.gdx.scenes.scene2d.Actor.getListeners()
^ This happens when setting a tooltip. It does not matter which style you use, but this error ALWAYS happens. Found no work around so far.
czyzby commented
@tehnewb Which libGDX and VisUI versions are you using? It seems that Actor.getListeners
returns DelayedRemovalArray
rather than Array
in 1.10.0
, as well as the snapshot release. VisUI 1.5.0
was compiled against libGDX 1.10.0
, so it should work correctly.
czyzby commented
If upgrading doesn't work for you, you can use official libGDX tooltips as a workaround. Look into the following classes:
com.badlogic.gdx.scenes.scene2d.ui.TextTooltip
com.badlogic.gdx.scenes.scene2d.ui.Tooltip
com.badlogic.gdx.scenes.scene2d.ui.TooltipManager
tehnewb commented
Upgrading was the fix. Next time I wont be so ignorant -.-