Loadout selection + custom loadout schematics

This commit is contained in:
Anuken
2020-06-27 23:04:38 -04:00
parent 63356e96ec
commit bd274f804a
11 changed files with 137 additions and 15 deletions

View File

@@ -70,7 +70,7 @@ public class SchematicsDialog extends BaseDialog{
});
rebuildPane[0] = () -> {
int maxwidth = Math.max((int)(Core.graphics.getWidth() / Scl.scl(230)), 1);
int cols = Math.max((int)(Core.graphics.getWidth() / Scl.scl(230)), 1);
t.clear();
int i = 0;
@@ -153,7 +153,7 @@ public class SchematicsDialog extends BaseDialog{
sel[0].getStyle().up = Tex.pane;
if(++i % maxwidth == 0){
if(++i % cols == 0){
t.row();
}
}