mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-01-07 05:50:58 +07:00
Fixed compat with new Animation class API
This commit is contained in:
parent
f7e6ef281c
commit
cb11853a26
@ -1095,7 +1095,8 @@ public class MPQViewer {
|
||||
String palette = paletteList.getSelected();
|
||||
Diablo.batch.setPalette(palettes.get(palette));
|
||||
|
||||
Animation anim = Animation.newAnimation(dc, (int) slDirection.getValue());
|
||||
Animation anim = Animation.newAnimation(dc);
|
||||
anim.setDirection((int) slDirection.getValue());
|
||||
anim.setFrameDuration(1 / slFrameDuration.getValue());
|
||||
setDelegate(anim);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user