Mobile UI fixes
This commit is contained in:
@@ -53,7 +53,6 @@ public class Control extends Module{
|
||||
private Throwable error;
|
||||
|
||||
public Control(){
|
||||
|
||||
saves = new Saves();
|
||||
unlocks = new Unlocks();
|
||||
|
||||
|
||||
@@ -11,6 +11,7 @@ import io.anuke.mindustry.core.GameState.State;
|
||||
import io.anuke.mindustry.game.EventType.StateChangeEvent;
|
||||
import io.anuke.mindustry.game.Team;
|
||||
import io.anuke.mindustry.gen.Call;
|
||||
import io.anuke.mindustry.graphics.Palette;
|
||||
import io.anuke.mindustry.net.Net;
|
||||
import io.anuke.mindustry.net.Packets.AdminAction;
|
||||
import io.anuke.mindustry.type.Recipe;
|
||||
@@ -94,6 +95,8 @@ public class HudFragment extends Fragment{
|
||||
i.getStyle().imageUp = Core.skin.getDrawable("icon-unlocks");
|
||||
}
|
||||
}).get();
|
||||
|
||||
select.addImage("blank").color(Palette.accent).width(6f).fillY();
|
||||
});
|
||||
|
||||
cont.row();
|
||||
@@ -106,7 +109,7 @@ public class HudFragment extends Fragment{
|
||||
});
|
||||
|
||||
Stack stack = new Stack();
|
||||
TextButton waves = new TextButton("");
|
||||
TextButton waves = new TextButton("", "wave");
|
||||
Table btable = new Table().margin(0);
|
||||
|
||||
stack.add(waves);
|
||||
@@ -116,7 +119,7 @@ public class HudFragment extends Fragment{
|
||||
|
||||
addWaveTable(waves);
|
||||
addPlayButton(btable);
|
||||
cont.add(stack).width(dsize * 4);
|
||||
cont.add(stack).width(dsize * 4 + 6f);
|
||||
|
||||
cont.row();
|
||||
|
||||
@@ -361,8 +364,6 @@ public class HudFragment extends Fragment{
|
||||
table.clearChildren();
|
||||
table.setTouchable(Touchable.enabled);
|
||||
|
||||
table.background("button");
|
||||
|
||||
table.labelWrap(() ->
|
||||
world.getSector() == null ?
|
||||
(state.enemies() > 0 && state.mode.disableWaveTimer ?
|
||||
|
||||
@@ -165,6 +165,7 @@ public class PlacementFragment extends Fragment{
|
||||
frame.addImage("blank").color(Palette.accent).colspan(3).height(3*2).growX();
|
||||
frame.row();
|
||||
frame.table("pane-2", blocksSelect -> {
|
||||
blocksSelect.margin(4).marginTop(0);
|
||||
blocksSelect.table(blocks -> blockTable = blocks).grow();
|
||||
blocksSelect.row();
|
||||
blocksSelect.table(input::buildUI).growX();
|
||||
|
||||
@@ -105,12 +105,12 @@ public class PlayerListFragment extends Fragment{
|
||||
float bs = (h + 14) / 2f;
|
||||
|
||||
button.table(t -> {
|
||||
t.defaults().size(bs - 1, bs + 3);
|
||||
t.defaults().size(bs);
|
||||
|
||||
t.addImageButton("icon-ban", 14 * 2,
|
||||
() -> ui.showConfirm("$text.confirm", "$text.confirmban", () -> Call.onAdminRequest(player, AdminAction.ban))).padBottom(-5.1f);
|
||||
() -> ui.showConfirm("$text.confirm", "$text.confirmban", () -> Call.onAdminRequest(player, AdminAction.ban)));
|
||||
t.addImageButton("icon-cancel", 16 * 2,
|
||||
() -> ui.showConfirm("$text.confirm", "$text.confirmkick", () -> Call.onAdminRequest(player, AdminAction.kick))).padBottom(-5.1f);
|
||||
() -> ui.showConfirm("$text.confirm", "$text.confirmkick", () -> Call.onAdminRequest(player, AdminAction.kick)));
|
||||
|
||||
t.row();
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@ package io.anuke.mindustry.world.blocks.storage;
|
||||
import io.anuke.mindustry.type.Item;
|
||||
import io.anuke.mindustry.world.Block;
|
||||
import io.anuke.mindustry.world.Tile;
|
||||
import io.anuke.mindustry.world.meta.BlockGroup;
|
||||
|
||||
public abstract class Unloader extends Block{
|
||||
protected final int timerUnload = timers++;
|
||||
@@ -13,7 +12,6 @@ public abstract class Unloader extends Block{
|
||||
update = true;
|
||||
solid = true;
|
||||
health = 70;
|
||||
group = BlockGroup.transportation;
|
||||
hasItems = true;
|
||||
}
|
||||
|
||||
@@ -24,6 +22,5 @@ public abstract class Unloader extends Block{
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setBars(){
|
||||
}
|
||||
public void setBars(){}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user