Bugfixes
This commit is contained in:
@@ -87,6 +87,10 @@ public class Renderer implements ApplicationListener{
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public boolean isLanding(){
|
||||||
|
return landTime > 0;
|
||||||
|
}
|
||||||
|
|
||||||
public float weatherAlpha(){
|
public float weatherAlpha(){
|
||||||
return weatherAlpha;
|
return weatherAlpha;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -173,8 +173,10 @@ public class WaveGraph extends Table{
|
|||||||
|
|
||||||
colors.clear();
|
colors.clear();
|
||||||
colors.left();
|
colors.left();
|
||||||
|
colors.pane(t -> {
|
||||||
|
t.left();
|
||||||
for(UnitType type : used){
|
for(UnitType type : used){
|
||||||
colors.button(b -> {
|
t.button(b -> {
|
||||||
Color tcolor = color(type).cpy();
|
Color tcolor = color(type).cpy();
|
||||||
b.image().size(32f).update(i -> i.setColor(b.isChecked() ? Tmp.c1.set(tcolor).mul(0.5f) : tcolor)).get().act(1);
|
b.image().size(32f).update(i -> i.setColor(b.isChecked() ? Tmp.c1.set(tcolor).mul(0.5f) : tcolor)).get().act(1);
|
||||||
b.image(type.icon(Cicon.medium)).padRight(20).update(i -> i.setColor(b.isChecked() ? Color.gray : Color.white)).get().act(1);
|
b.image(type.icon(Cicon.medium)).padRight(20).update(i -> i.setColor(b.isChecked() ? Color.gray : Color.white)).get().act(1);
|
||||||
@@ -189,6 +191,7 @@ public class WaveGraph extends Table{
|
|||||||
for(UnitType o : hidden) used.remove(o);
|
for(UnitType o : hidden) used.remove(o);
|
||||||
}).update(b -> b.setChecked(hidden.contains(type)));
|
}).update(b -> b.setChecked(hidden.contains(type)));
|
||||||
}
|
}
|
||||||
|
}).get().setScrollingDisabled(false, true);
|
||||||
|
|
||||||
for(UnitType type : hidden){
|
for(UnitType type : hidden){
|
||||||
used.remove(type);
|
used.remove(type);
|
||||||
|
|||||||
@@ -422,7 +422,6 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
lastSchematic = schem;
|
lastSchematic = schem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean touchDown(int screenX, int screenY, int pointer, KeyCode button){
|
public boolean touchDown(int screenX, int screenY, int pointer, KeyCode button){
|
||||||
if(state.isMenu()) return false;
|
if(state.isMenu()) return false;
|
||||||
@@ -497,9 +496,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
}else{
|
}else{
|
||||||
Tile tile = tileAt(screenX, screenY);
|
Tile tile = tileAt(screenX, screenY);
|
||||||
|
|
||||||
if(tile == null || tile.build == null) return false;
|
tryDropItems(tile == null ? null : tile.build, Core.input.mouseWorld(screenX, screenY).x, Core.input.mouseWorld(screenX, screenY).y);
|
||||||
|
|
||||||
tryDropItems(tile.build, Core.input.mouseWorld(screenX, screenY).x, Core.input.mouseWorld(screenX, screenY).y);
|
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -755,7 +752,7 @@ public class MobileInput extends InputHandler implements GestureListener{
|
|||||||
shiftDeltaX %= tilesize;
|
shiftDeltaX %= tilesize;
|
||||||
shiftDeltaY %= tilesize;
|
shiftDeltaY %= tilesize;
|
||||||
}
|
}
|
||||||
}else{
|
}else if(!renderer.isLanding()){
|
||||||
//pan player
|
//pan player
|
||||||
Core.camera.position.x -= deltaX;
|
Core.camera.position.x -= deltaX;
|
||||||
Core.camera.position.y -= deltaY;
|
Core.camera.position.y -= deltaY;
|
||||||
|
|||||||
Reference in New Issue
Block a user