Fixed #10785
This commit is contained in:
@@ -66,9 +66,8 @@ public class Logic implements ApplicationListener{
|
|||||||
Events.on(SaveLoadEvent.class, e -> {
|
Events.on(SaveLoadEvent.class, e -> {
|
||||||
if(state.isCampaign()){
|
if(state.isCampaign()){
|
||||||
state.rules.coreIncinerates = true;
|
state.rules.coreIncinerates = true;
|
||||||
|
|
||||||
//TODO why is this even a thing?
|
|
||||||
state.rules.canGameOver = true;
|
state.rules.canGameOver = true;
|
||||||
|
state.rules.allowEditRules = false;
|
||||||
|
|
||||||
//fresh map has no sector info
|
//fresh map has no sector info
|
||||||
if(!e.isMap){
|
if(!e.isMap){
|
||||||
@@ -132,6 +131,7 @@ public class Logic implements ApplicationListener{
|
|||||||
//enable building AI on campaign unless the preset disables it
|
//enable building AI on campaign unless the preset disables it
|
||||||
|
|
||||||
state.rules.coreIncinerates = true;
|
state.rules.coreIncinerates = true;
|
||||||
|
state.rules.allowEditRules = false;
|
||||||
state.rules.allowEditWorldProcessors = false;
|
state.rules.allowEditWorldProcessors = false;
|
||||||
state.rules.waveTeam.rules().infiniteResources = true;
|
state.rules.waveTeam.rules().infiniteResources = true;
|
||||||
state.rules.waveTeam.rules().fillItems = true;
|
state.rules.waveTeam.rules().fillItems = true;
|
||||||
|
|||||||
@@ -633,6 +633,11 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
|||||||
public void act(float delta){
|
public void act(float delta){
|
||||||
if(scene.getDialog() == PlanetDialog.this && (scene.getHoverElement() == null || !scene.getHoverElement().isDescendantOf(e -> e instanceof ScrollPane))){
|
if(scene.getDialog() == PlanetDialog.this && (scene.getHoverElement() == null || !scene.getHoverElement().isDescendantOf(e -> e instanceof ScrollPane))){
|
||||||
scene.setScrollFocus(PlanetDialog.this);
|
scene.setScrollFocus(PlanetDialog.this);
|
||||||
|
|
||||||
|
if(debugSectorAttackEdit && input.ctrl() && input.keyTap(KeyCode.c)){
|
||||||
|
Core.app.setClipboardText(state.planet.writeAttackSectorBits());
|
||||||
|
Vars.ui.showInfoFade("@copied");
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
super.act(delta);
|
super.act(delta);
|
||||||
|
|||||||
Reference in New Issue
Block a user