- Update to libGDX 1.12.1
- The screen manager now no longer reuses screen instances to closer resemble libGDX's
Game
class. Previous users of the library should take note of the following:- Screens & transitions don't have to be registered anymore;
ScreenManager#push
now takes aManagedScreen
and aScreenTransition
instance as arguments ManagedGame#initialize
&ManagedGame#create
were removed to eliminate the confusion around the difference between constructors,#create()
and#show()
; old code should be put in the constructor or#show()
.#show()
might be preferred, since it is guaranteed to be always called on the active GL thread.ScreenTransition#reset
was removed in favour ofScreenTransition#show
and#hide
; old code should be put in#show()
ShaderTransition
s now compile their shader in the constructor; this means that the constructor has to be called on the OpenGL thread- Use
ScreenManager#setAutoDispose(true, true)
if you don't want to reuse your screens and transitions and thus they should be disposed automatically upon#hide()
- Screens & transitions don't have to be registered anymore;
- The GWT support was reworked; please check out the wiki for the new dependency structure
Common issues
Tracing compile failure path for type 'de.damios.guacamole.Stopwatch'
[ERROR] Errors in 'jar:file:/C:/Users/xyz/.gradle/caches/modules-2/files2.1/com.github.crykn.guacamole/core/0.3.5/36467acd0d6577ed9ca41b43ae0b6dabb3f45aba/core-0.3.5-sources.jar!/de/damios/guacamole/Stopwatch.java'
[ERROR] Line 48: The method nanoTime() is undefined for the type System
libgdx-screenmanager requires GWT 2.10.0 to work on the web. Support for this was only recently added in libGDX 1.12.2-SNAPSHOT
, but can be achieved for older versions of libGDX via tommyettinger/gdx-backends.