mirror of
https://github.com/Anuken/Mindustry.git
synced 2025-03-09 20:29:06 +07:00
Fixed #10173
This commit is contained in:
parent
5fcc94fa09
commit
e1759adcfe
@ -123,7 +123,7 @@ public class SerpuloTechTree{
|
||||
});
|
||||
|
||||
node(pyratiteMixer, () -> {
|
||||
node(blastMixer, () -> {
|
||||
node(blastMixer, Seq.with(new SectorComplete(facility32m)), () -> {
|
||||
|
||||
});
|
||||
});
|
||||
@ -503,11 +503,12 @@ public class SerpuloTechTree{
|
||||
});
|
||||
|
||||
node(facility32m, Seq.with(
|
||||
new Research(pneumaticDrill)
|
||||
new Research(pneumaticDrill),
|
||||
new SectorComplete(stainedMountains)
|
||||
), () -> {
|
||||
node(extractionOutpost, Seq.with(
|
||||
new SectorComplete(stainedMountains),
|
||||
new SectorComplete(windsweptIslands),
|
||||
new SectorComplete(facility32m),
|
||||
new Research(groundFactory),
|
||||
new Research(nova),
|
||||
new Research(airFactory),
|
||||
|
@ -28,6 +28,7 @@ public class LogicDialog extends BaseDialog{
|
||||
boolean privileged;
|
||||
@Nullable LExecutor executor;
|
||||
GlobalVarsDialog globalsDialog = new GlobalVarsDialog();
|
||||
boolean wasRows, wasPortrait;
|
||||
|
||||
public LogicDialog(){
|
||||
super("logic");
|
||||
@ -40,10 +41,18 @@ public class LogicDialog extends BaseDialog{
|
||||
addCloseListener();
|
||||
|
||||
shown(this::setup);
|
||||
shown(() -> {
|
||||
wasRows = LCanvas.useRows();
|
||||
wasPortrait = Core.graphics.isPortrait();
|
||||
});
|
||||
hidden(() -> consumer.get(canvas.save()));
|
||||
onResize(() -> {
|
||||
setup();
|
||||
canvas.rebuild();
|
||||
if(wasRows != LCanvas.useRows() || wasPortrait != Core.graphics.isPortrait()){
|
||||
setup();
|
||||
canvas.rebuild();
|
||||
wasPortrait = Core.graphics.isPortrait();
|
||||
wasRows = LCanvas.useRows();
|
||||
}
|
||||
});
|
||||
|
||||
add(canvas).grow().name("canvas");
|
||||
|
Loading…
Reference in New Issue
Block a user