mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-02-02 12:23:47 +07:00
Hide command mode popup on mobile
This commit is contained in:
parent
650b67365b
commit
d4b0c9da1b
@ -399,14 +399,17 @@ public class PlacementFragment{
|
||||
mainStack.update(() -> {
|
||||
if(control.input.commandMode != wasCommandMode){
|
||||
mainStack.clearChildren();
|
||||
if(!mobile || !control.input.commandMode){
|
||||
mainStack.addChild(control.input.commandMode ? commandTable : blockCatTable);
|
||||
wasCommandMode = control.input.commandMode;
|
||||
|
||||
//hacky, but forces command table to be same width as blocks
|
||||
if(wasCommandMode){
|
||||
if(control.input.commandMode){
|
||||
commandTable.getCells().peek().width(blockCatTable.getWidth());
|
||||
}
|
||||
}
|
||||
|
||||
wasCommandMode = control.input.commandMode;
|
||||
}
|
||||
});
|
||||
|
||||
frame.add(mainStack).colspan(3).fill();
|
||||
|
Loading…
Reference in New Issue
Block a user