Update VisUI
This commit is contained in:
+1
-1
@@ -3,7 +3,7 @@ gdxVersionBeta = 1.9.14
|
||||
box2dlightsVersion = 1.6-SNAPSHOT
|
||||
ashleyVersion = 1.7.4
|
||||
spineVersion = 3.8.55.1
|
||||
visuiVersion = 1.4.9-SNAPSHOT
|
||||
visuiVersion = 1.4.10
|
||||
typingLabelVersion = 1.2.0
|
||||
shapedrawerVersion = 2.4.0
|
||||
talosVersion = 1.3.1
|
||||
@@ -28,6 +28,7 @@ import com.badlogic.gdx.graphics.GL20;
|
||||
import com.badlogic.gdx.graphics.Texture;
|
||||
import com.badlogic.gdx.math.Interpolation;
|
||||
import com.badlogic.gdx.math.Vector2;
|
||||
import com.badlogic.gdx.scenes.scene2d.Touchable;
|
||||
import com.badlogic.gdx.scenes.scene2d.actions.Actions;
|
||||
import com.badlogic.gdx.scenes.scene2d.ui.Image;
|
||||
import games.rednblack.editor.HyperLap2DApp;
|
||||
@@ -206,7 +207,7 @@ public class HyperLap2DScreen implements Screen, InputProcessor {
|
||||
HyperLap2DApp.getInstance().hyperlap2D.closeRequested();
|
||||
break;
|
||||
case KeyBindingsLayout.HIDE_GUI:
|
||||
uiStage.addAction(Actions.fadeOut(0.1f));
|
||||
uiStage.addAction(Actions.parallel(Actions.fadeOut(0.1f), Actions.touchable(Touchable.disabled)));
|
||||
break;
|
||||
case KeyBindingsLayout.OPEN_CONSOLE:
|
||||
facade.sendNotification(MsgAPI.OPEN_CONSOLE);
|
||||
@@ -219,7 +220,7 @@ public class HyperLap2DScreen implements Screen, InputProcessor {
|
||||
public boolean keyUp(int keycode) {
|
||||
switch (KeyBindingsLayout.mapAction(keycode)) {
|
||||
case KeyBindingsLayout.HIDE_GUI:
|
||||
uiStage.addAction(Actions.fadeIn(0.1f));
|
||||
uiStage.addAction(Actions.parallel(Actions.touchable(Touchable.enabled), Actions.fadeIn(0.1f)));
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -18,14 +18,13 @@
|
||||
|
||||
package games.rednblack.editor.view.stage;
|
||||
|
||||
import com.badlogic.gdx.graphics.g2d.PolygonSpriteBatch;
|
||||
import com.badlogic.gdx.scenes.scene2d.*;
|
||||
import com.badlogic.gdx.utils.Align;
|
||||
import com.badlogic.gdx.utils.viewport.ScreenViewport;
|
||||
import com.kotcrab.vis.ui.util.ToastManager;
|
||||
import com.kotcrab.vis.ui.widget.VisTable;
|
||||
import games.rednblack.editor.HyperLap2DFacade;
|
||||
import games.rednblack.editor.utils.HyperLap2DUtils;
|
||||
import games.rednblack.editor.renderer.utils.CpuPolygonSpriteBatch;
|
||||
import games.rednblack.editor.view.ui.*;
|
||||
import games.rednblack.h2d.common.proxy.CursorManager;
|
||||
|
||||
@@ -44,7 +43,7 @@ public class UIStage extends Stage {
|
||||
public Group midUI;
|
||||
|
||||
public UIStage() {
|
||||
super(new ScreenViewport(), new PolygonSpriteBatch());
|
||||
super(new ScreenViewport(), new CpuPolygonSpriteBatch());
|
||||
|
||||
getViewport().getCamera().position.setZero();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user