This commit is contained in:
Anuken 2024-09-04 21:44:45 -04:00
parent 5fcc94fa09
commit e1759adcfe
2 changed files with 15 additions and 5 deletions

View File

@ -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),

View File

@ -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");