Stained mountains remake submission / WIP wave graph improvements
This commit is contained in:
@@ -6,6 +6,7 @@ import arc.graphics.*;
|
||||
import arc.input.*;
|
||||
import arc.math.*;
|
||||
import arc.math.geom.*;
|
||||
import arc.scene.*;
|
||||
import arc.scene.event.*;
|
||||
import arc.scene.style.*;
|
||||
import arc.scene.ui.*;
|
||||
@@ -201,6 +202,19 @@ public class WaveInfoDialog extends BaseDialog{
|
||||
|
||||
cont.add(graph = new WaveGraph()).grow();
|
||||
|
||||
graph.scrolled((scroll) -> {
|
||||
view(Mathf.sign(scroll));
|
||||
});
|
||||
|
||||
graph.touchable = Touchable.enabled;
|
||||
graph.addListener(new InputListener(){
|
||||
|
||||
@Override
|
||||
public void enter(InputEvent event, float x, float y, int pointer, Element fromActor){
|
||||
graph.requestScroll();
|
||||
}
|
||||
});
|
||||
|
||||
buildGroups();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user