mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-07-15 18:27:36 +07:00
Hide command mode popup on mobile
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user